Integration is the inverse of differentiation. I.e. for differentiation of linear expressions we multiply the coeifficient with the power of the unknown and then subract 1 from the power. Integration is the opposite - we add one to the power of the unknown and then divide the coefficient by the new power. Differentiation of trigonometric functions follows a similar rule - sin differentiates to cos and as the process is inverse cos integrates to sin.