Integrals: functions and by parts

Integrals of trigonometric functions

The integral of sinx\sin x is cosx+C-\cos x+C, and the integral of cosx\cos x is sinx+C\sin x+C.

sinxdx=cosx+C,cosxdx=sinx+C\begin{gathered} \int \sin x\,dx=-\cos x+C, \\[4pt] \int \cos x\,dx=\sin x+C \end{gathered}

Read the derivative formulas backwards. Since cos\cos differentiates to sin-\sin, sin\sin integrates to cos-\cos. Since sin\sin differentiates to cos\cos, cos\cos integrates to sin\sin.

sinxdx=cosx+C,cosxdx=sinx+C\begin{gathered} \int \sin x\,dx=-\cos x+C, \\[4pt] \int \cos x\,dx=\sin x+C \end{gathered}

The sign is the whole game: check by differentiating your answer.

Examples

  1. 01Find the value0π/3cosxdx\displaystyle \int_0^{\pi/3} \cos x \, dxAnswerHide
    Answer32\displaystyle \frac{\sqrt{3}}{2}
  2. 02Integratesinxdx\displaystyle \int \sin x \, dxAnswerHide
    Answercosx+C\displaystyle -\cos x + C
  3. 03Find the value0π/4cosxdx\displaystyle \int_0^{\pi/4} \cos x \, dxAnswerHide
    Answer22\displaystyle \frac{\sqrt{2}}{2}
  4. 04Integratecosxdx\displaystyle \int \cos x \, dxAnswerHide
    Answersinx+C\displaystyle \sin x + C
  5. 05What is this?2cosxdx\displaystyle \int 2\cos x\,dxAnswerHide
    Answer2sinx+C\displaystyle 2\sin x+C
  6. 06Find the value0π/6cosxdx\displaystyle \int_0^{\pi/6} \cos x \, dxAnswerHide
    Answer12\displaystyle \frac{1}{2}

FAQ

Q1Why does sinxdx\int \sin x\,dx have a minus sign?Show answerHide
A
Because differentiating cosx-\cos x gives back sinx\sin x. Differentiating your answer to check it prevents sign mistakes.

Practice this pattern in the app, 5 problems a day.

Download on the App Store
This topic
Integrals of trigonometric functions
Next
Last in this chapter

Published 2026-09-03 · Updated 2026-09-05