Component diagram

please how I can do the analysis before making the diagram composants.I know that before making the use case diagram we should analyse the system but is it the same with the components diagram and thanks for any help