Anti-differentiation of trigonometric functions
In Year 12 Mathematical Methods (Queensland, QCAA), the two anti-derivatives of the trigonometric functions are \(\displaystyle\int \sin x\,dx=-\cos x+C\) and \(\displaystyle\int \cos x\,dx=\sin x+C\). Mind the minus sign on the \(\sin\) integral and always add the constant of integration \(+C\). For \(\sin(kx)\) or \(\cos(ax+b)\) apply the \(\dfrac{1}{a}\) factor, integrate a sum term by term using linearity, fix \(C\) from a boundary point, and evaluate definite integrals over exact-value limits.
Anti-differentiation (finding the indefinite integral) reverses differentiation: given a gradient function \(f'(x)\), you find a function \(f(x)\) whose derivative is \(f'(x)\), written \(\displaystyle\int f'(x)\,dx\).
For sine and cosine the two standard results are:
\(\displaystyle\int \sin x\,dx=-\cos x+C,\qquad \int \cos x\,dx=\sin x+C.\)
Anti-differentiating \(\sin\) introduces a minus sign (because \(\dfrac{d}{dx}\cos x=-\sin x\)), while \(\cos\) does not. Every indefinite integral carries the constant of integration \(+C\). When the angle is a linear function \(kx\) or \(ax+b\), divide by the coefficient of \(x\); by linearity, a sum of sine and cosine terms integrates term by term. All angles are measured in radians.
The two standard anti-derivatives (angles in radians):
Linear inner function — divide by the coefficient \(a\) of \(x\):
Linearity — integrate term by term and pull out constant multiples:
Definite integral — anti-differentiate, then substitute the limits (no \(+C\)):
How to anti-differentiate sine and cosine
- Apply the standard form. \(\displaystyle\int \sin x\,dx=-\cos x+C\) (minus) and \(\displaystyle\int \cos x\,dx=\sin x+C\) (no minus).
- Handle a linear inner function. For \(\sin(ax+b)\) or \(\cos(ax+b)\), divide by the coefficient \(a\) of \(x\); the \(+b\) does not change that factor.
- Use linearity. Integrate a sum term by term and take constant multiples out the front, keeping a single \(+C\).
- Fix \(C\) if a point is given. Substitute the boundary point \((a,b)\) and solve for \(C\) to get the particular anti-derivative.
- For a definite integral, anti-differentiate (no \(+C\)), then substitute the upper and lower limits and subtract, using exact values.
Integrate each term; \(-2\sin x\) gives \(-2(-\cos x)=+2\cos x\).
| \(\displaystyle\int (3\cos x-2\sin x)\,dx\) | \(=\) | \(3\sin x-2(-\cos x)+C\) |
| \(=\) | \(3\sin x+2\cos x+C\) |
Divide by the coefficient of \(x\), here \(k=4\).
| \(\displaystyle\int 8\cos 4x\,dx\) | \(=\) | \(8\times\dfrac{1}{4}\sin 4x+C\) |
| \(=\) | \(2\sin 4x+C\) |
Integrate, then substitute the point to find \(C\).
| \(f(x)\) | \(=\) | \(2\sin 2x+C\) |
| \(3\) | \(=\) | \(2\sin\dfrac{\pi}{2}+C=2(1)+C\Rightarrow C=1\) |
| \(f(x)\) | \(=\) | \(2\sin 2x+1\) |
Anti-differentiate to \(-\cos x\), then substitute the limits.
| \(\displaystyle\int_{0}^{\pi} \sin x\,dx\) | \(=\) | \(\Big[-\cos x\Big]_{0}^{\pi}\) |
| \(=\) | \((-\cos\pi)-(-\cos 0)=1-(-1)=2\) |
Common pitfalls
Frequently asked questions
What are the anti-derivatives of sine and cosine?
\(\displaystyle\int \sin x\,dx=-\cos x+C\) and \(\displaystyle\int \cos x\,dx=\sin x+C\). Anti-differentiating \(\sin\) introduces a minus sign; \(\cos\) does not.
Why does the integral of sine have a minus sign?
Because \(\dfrac{d}{dx}\cos x=-\sin x\). To get \(\sin x\) back when you differentiate, you must start from \(-\cos x\), so \(\displaystyle\int \sin x\,dx=-\cos x+C\).
How do you anti-differentiate sin(kx) or cos(ax+b)?
Anti-differentiate as if the inner were \(x\), then divide by the coefficient of \(x\). So \(\displaystyle\int \cos(ax+b)\,dx=\dfrac{1}{a}\sin(ax+b)+C\); the \(+b\) does not change the factor.
Why do you always add plus C?
Because the derivative of any constant is \(0\), so infinitely many functions share the same derivative. The \(+C\) captures that whole family; a boundary point pins down one member.
How do you find the particular anti-derivative through a point?
Integrate to the general form ending in \(+C\), then substitute the point and solve for \(C\). E.g. \(f'=4\cos 2x\) through \(\left(\dfrac{\pi}{4},3\right)\) gives \(C=1\), so \(f=2\sin 2x+1\).
How do you evaluate a definite integral of sine or cosine?
Anti-differentiate (no \(+C\)), then substitute the limits and subtract. E.g. \(\displaystyle\int_{0}^{\pi}\sin x\,dx=\big[-\cos x\big]_{0}^{\pi}=1-(-1)=2\).