Why the Inner Slope Matters
The derivative of a trigonometric composite includes a factor from the derivative of its inner angle. Reversing differentiation to find an antiderivative therefore requires accounting for that factor. For a linear inner angle, the factor is constant, so the adjustment is especially direct.
Throughout this tutorial, trigonometric angles are measured in radians, as required for the standard derivative formulas for sine and cosine. The goal is to recognize an integrand such as \(\sin(3x-\pi/4)\) or \(\cos(5-2x)\), find an antiderivative, and verify that the inner slope has been handled correctly.
The Two Basic Formulas
For real constants \(a\ne 0\) and \(b\), the antiderivatives are
Here \(C\) is an arbitrary constant. The condition \(a\ne 0\) is essential to these formulas: the factor \(1/a\) is not defined when the inner angle is constant. If \(a=0\), the integrands are the constants \(\sin(b)\) and \(\cos(b)\), so their antiderivatives are \(x\sin(b)+C\) and \(x\cos(b)+C\), respectively.
The sign in the sine formula comes from the derivative of cosine, while the denominator comes from differentiating the inner angle. The sign of \(a\) must be retained: if \(a\) is negative, then \(1/a\) is negative as well.
Why the Formulas Work
The chain rule says that the derivative of a composite is the derivative of its outer function, evaluated at the inner function, multiplied by the derivative of the inner function. In particular,
and
To obtain \(\sin(ax+b)\) as a derivative, the first expression must be multiplied by \(-1/a\). To obtain \(\cos(ax+b)\), the second must be multiplied by \(1/a\). Since \(a\) is a nonzero constant, these factors are valid. This proves both formulas.
A Reliable Calculation Pattern
For an integral involving a sine or cosine of a linear angle, identify the coefficient \(a\) of \(x\) before integrating. Apply the appropriate formula with that coefficient, including its sign. If the integrand has a constant multiplier, carry it through the calculation. For a definite integral, evaluate the antiderivative at the upper bound and subtract its value at the lower bound.
Write it as \(ax+b\), and record the slope \(a\).
Sine gives a negative cosine; cosine gives a positive sine. Divide by \(a\) in either case.
Differentiate the proposed antiderivative and confirm that every factor and sign returns the original integrand.
Worked Examples
Worked Example: Sine with a Positive Inner Slope
Find an antiderivative of \(\sin(3x-\pi/4)\).
The inner angle is \(3x-\pi/4\), so \(a=3\) and \(b=-\pi/4\). The sine formula gives
Check by differentiating the proposed antiderivative:
The factor \(-1/3\) cancels the negative sign from differentiating cosine and the factor \(3\) from the inner angle. The derivative matches the integrand, so the antiderivative is correct.
Worked Example: Cosine with a Negative Inner Slope
Find an antiderivative of \(\cos(5-2x)\).
Rewrite the inner angle as \(-2x+5\). Its slope is \(a=-2\), so the cosine formula gives
The negative sign in the result is required because the inner slope is negative. Differentiate to check:
The two negative factors multiply to a positive one, leaving exactly the original integrand.
Worked Example: A Definite Sine Integral
Evaluate \(\int_0^{\pi/6}\sin(3x+\pi/6)\,dx\).
The inner slope is \(3\), so an antiderivative is \(-\frac{1}{3}\cos(3x+\pi/6)\). By the Fundamental Theorem of Calculus, the definite integral is the upper-bound value of this antiderivative minus its lower-bound value:
To check the antiderivative used here, differentiate it:
The endpoint calculation also uses the correct order: upper value minus lower value. The resulting exact value is \((1+\sqrt{3})/6\).
Worked Example: Integrating a Sum
Find an antiderivative of \(4\sin(2x)+3\cos(2x)\).
An antiderivative of a sum is the sum of antiderivatives, and constant factors can be kept outside each integral. The slope of each inner angle \(2x\) is \(2\):
Differentiate each term:
Both terms return their corresponding parts of the integrand, confirming the result.
A Common Mistake: Omitting the Inner Slope
A frequent error is to integrate \(\sin(4x)\) as if its inner angle were just \(x\). For example, the calculation
is incorrect. Differentiating the proposed answer reveals the extra factor:
which is four times the required integrand. The inner slope is \(4\), so the correct antiderivative includes a factor of \(1/4\):
The same check catches sign errors when the slope is negative. Do not replace \(a\) by its absolute value: the formulas use the signed coefficient \(a\).
When the Method Applies
These formulas apply directly when the entire angle is linear in \(x\), such as \(7x+2\) or \(3-5x\). A constant factor multiplying the sine or cosine causes no difficulty, because it can be carried through the integral. Sums of terms can be handled term by term when each term has this form.
The formulas do not directly cover an angle whose derivative depends on \(x\), such as \(x^2\), because there is no single constant inner slope to divide by. The chain-rule check is a useful way to decide whether a proposed expression works: its derivative must reproduce the integrand exactly, not merely a multiple or a sign-reversed version.
For definite integrals, the same antiderivative formulas apply, provided the integrand is continuous on the interval of integration; sine and cosine of linear angles are continuous everywhere. The Fundamental Theorem of Calculus then evaluates the integral by subtracting the antiderivative at the lower limit from its value at the upper limit.
Check Your Understanding
Try each question, and check any proposed antiderivative by differentiating it.
- Find an antiderivative of \(\sin(6x+1)\).
- Find an antiderivative of \(\cos(7-3x)\). Why does the coefficient of the resulting sine term have a negative sign?
- Evaluate \(\int_0^{\pi/4}\cos(2x)\,dx\) exactly.
- Differentiate \(\frac{1}{5}\sin(5x-\pi)\). Which integrand does it give?
- What is an antiderivative of \(\sin(2)\), and why is the nonzero-slope formula inapplicable?