Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.2 · Q5: ∫sin⁡(ax+b)cos⁡(ax+b) dx\int \sin(ax+b)\cos(ax+b)\,dx

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function:

sin⁡(ax+b) cos⁡(ax+b)\sin(ax+b)\,\cos(ax+b)
Exam answer

Let

I=∫sin⁡(ax+b)cos⁡(ax+b) dxI = \int\sin(ax + b)\cos(ax + b)\,dx

Using 2sin⁡θcos⁡θ=sin⁡2θ2\sin\theta\cos\theta = \sin 2\theta⁠,

I=12∫sin⁡2(ax+b) dxI = \frac12\int\sin 2(ax + b)\,dx

Put 2(ax+b)=t2(ax + b) = t⁠. Then 2a dx=dt2a\,dx = dt⁠.

∴ I=14a∫sin⁡t dt=−14acos⁡t+C\begin{aligned} \therefore\ I &= \frac{1}{4a}\int\sin t\,dt \\ &= -\frac{1}{4a}\cos t + C \end{aligned}

∴ I=−14acos⁡2(ax+b)+C\therefore\ I = -\dfrac{1}{4a}\cos 2(ax + b) + C (a≠0a \ne 0⁠).

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A product sin⁡θcos⁡θ\sin\theta\cos\theta is half of sin⁡2θ\sin 2\theta⁠. With θ=ax+b\theta = ax+b the integrand becomes 12sin⁡(2ax+2b)\frac12\sin(2ax+2b)⁠, the sine of a linear expression, which a one-line substitution integrates. A second route, t=sin⁡(ax+b)t = \sin(ax+b)⁠, gives an answer that looks different but differs only by a constant.

Given, to find, and the plan
Given
f(x)=sin⁡(ax+b)cos⁡(ax+b)f(x) = \sin(ax+b)\cos(ax+b)⁠, with constants aa⁠, bb⁠; defined and continuous for all real xx⁠. We take a≠0a \ne 0 (the answer divides by aa⁠; the case a=0a = 0 is dealt with at the end).
To find
∫sin⁡(ax+b)cos⁡(ax+b) dx\displaystyle\int \sin(ax+b)\cos(ax+b)\,dx⁠.
Plan
(1) Use the double-angle identity. (2) Substitute t=2(ax+b)t = 2(ax+b)⁠. (3) Integrate sin⁡t\sin t⁠. (4) Return to xx⁠. (5) Differentiate to check. (6) Compare with the route t=sin⁡(ax+b)t = \sin(ax+b)⁠.

Basics you need

1Double-angle identity

sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta⁠, so sin⁡θcos⁡θ=12sin⁡2θ\sin\theta\cos\theta = \frac12\sin 2\theta⁠. Also cos⁡2θ=1−2sin⁡2θ\cos 2\theta = 1 - 2\sin^2\theta⁠. Basics: trigonometric identities

2Substitution for a linear inside

With t=px+qt = px+q (p≠0p \ne 0⁠), dt=p dxdt = p\,dx⁠, so dx=dtpdx = \frac{dt}{p}⁠. This is how Example 5(i) does ∫sin⁡mx dx\int\sin mx\,dx⁠. Basics: substitution

3Standard integrals

∫sin⁡t dt=−cos⁡t+C\int\sin t\,dt = -\cos t + C (standard formula (iii)) and ∫t dt=t22+C\int t\,dt = \frac{t^2}{2} + C (formula (i)), Section 7.2.

Solution

  1. Rewrite the product with the double-angle identity

    Put θ=ax+b\theta = ax+b in sin⁡θcos⁡θ=12sin⁡2θ\sin\theta\cos\theta = \frac12\sin 2\theta⁠:

    sin⁡(ax+b)cos⁡(ax+b)=12sin⁡(2(ax+b)).\sin(ax+b)\cos(ax+b) = \tfrac12\sin\big(2(ax+b)\big).
    A product of two trigonometric functions has no standard formula, but a single sine of a linear expression does. The identity converts one into the other at no cost.
    sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta (Class XI trigonometry). Basics: trigonometric identities
  2. Substitute t=2(ax+b)t = 2(ax+b)

    t=2ax+2b,dtdx=2a,dx=dt2a.\begin{aligned} t &= 2ax + 2b, \\ \frac{dt}{dx} &= 2a, \\ dx &= \frac{dt}{2a}. \end{aligned}

    Therefore

    ∫12sin⁡(2(ax+b)) dx=12∫sin⁡t⋅dt2a=14a∫sin⁡t dt.\begin{aligned} \int \tfrac12\sin\big(2(ax+b)\big)\,dx &= \tfrac12\int\sin t\cdot\frac{dt}{2a} \\ &= \frac{1}{4a}\int \sin t\,dt. \end{aligned}
    The inner expression 2ax+2b2ax+2b is linear, so its derivative 2a2a is a constant. We can divide by it because a≠0a \ne 0⁠. The constants 12\frac12 and 12a\frac{1}{2a} move outside the integral.
    Substitution, Section 7.3.1 (compare Example 5(i)); Property (IV), Section 7.2.1. Lesson: integration by substitution
  3. Integrate sin⁡t\sin t

    14a∫sin⁡t dt=14a(−cos⁡t)+C=−cos⁡t4a+C.\frac{1}{4a}\int\sin t\,dt = \frac{1}{4a}\left(-\cos t\right) + C = -\frac{\cos t}{4a} + C.
    Standard formula (iii) gives ∫sin⁡t dt=−cos⁡t+C\int\sin t\,dt = -\cos t + C⁠. The constant 14a\frac{1}{4a} in front simply multiplies that result; a constant times an arbitrary constant is again written CC⁠.
    Standard formula (iii), Section 7.2.
  4. Return to xx

    −cos⁡t4a+C=−14acos⁡2(ax+b)+C.-\frac{\cos t}{4a} + C = -\frac{1}{4a}\cos 2(ax+b) + C.
    Replace tt by 2(ax+b)2(ax+b)⁠. This is valid for all real xx (with a≠0a \ne 0⁠).
  5. Check: differentiate the answer

    Let F(x)=−14acos⁡(2ax+2b)F(x) = -\frac{1}{4a}\cos(2ax+2b)⁠. Chain rule with inner u=2ax+2bu = 2ax+2b (so u′=2au' = 2a⁠) and outer cos⁡u\cos u⁠:

    F′(x)=−14a⋅(−sin⁡(2ax+2b))⋅2a=2a4a sin⁡(2ax+2b)=12sin⁡(2(ax+b))=sin⁡(ax+b)cos⁡(ax+b).\begin{aligned} F'(x) &= -\frac{1}{4a}\cdot\big(-\sin(2ax+2b)\big)\cdot 2a \\ &= \frac{2a}{4a}\,\sin(2ax+2b) \\ &= \tfrac12\sin\big(2(ax+b)\big) \\ &= \sin(ax+b)\cos(ax+b). \end{aligned}

    The last line uses the identity of Step 1 backwards. We are back at the integrand.

    Getting the integrand back is exactly what makes FF an antiderivative (Property (I), Section 7.2.1). The inner derivative 2a2a cancels the aa in 14a\frac{1}{4a}⁠, which is why the method needs a≠0a \ne 0⁠.
    Chain rule, Chapter 5, Theorem 4; (cos⁡u)′=−sin⁡u(\cos u)' = -\sin u⁠, Table 5.3. Basics: integration undoes differentiation
  6. Another route gives a different-looking answer

    Instead, put s=sin⁡(ax+b)s = \sin(ax+b)⁠. Then ds=acos⁡(ax+b) dxds = a\cos(ax+b)\,dx⁠, and

    ∫sin⁡(ax+b)cos⁡(ax+b) dx=1a∫s ds=s22a+C′=sin⁡2(ax+b)2a+C′.\begin{aligned} \int \sin(ax+b)\cos(ax+b)\,dx &= \frac1a\int s\,ds \\ &= \frac{s^2}{2a} + C' \\ &= \frac{\sin^2(ax+b)}{2a} + C'. \end{aligned}

    Using sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1-\cos 2\theta}{2} with θ=ax+b\theta = ax+b⁠:

    sin⁡2(ax+b)2a=14a−cos⁡2(ax+b)4a.\frac{\sin^2(ax+b)}{2a} = \frac{1}{4a} - \frac{\cos 2(ax+b)}{4a}.

    So the two answers differ by the constant 14a\frac{1}{4a}⁠, which is absorbed into the arbitrary constant. Both are correct.

    Indefinite integrals are families of functions. Two antiderivatives of the same function always differ by a constant (Property (II), Section 7.2.1), so different methods may give answers that look different. Showing the difference is a constant proves they agree.
    cos⁡2θ=1−2sin⁡2θ\cos 2\theta = 1 - 2\sin^2\theta⁠. Basics: trigonometric identities
Result

For a≠0a \ne 0 and every real xx⁠,

∫sin⁡(ax+b)cos⁡(ax+b) dx=−14acos⁡2(ax+b)+C,\begin{aligned} &\int \sin(ax+b)\cos(ax+b)\,dx \\ &\quad = -\frac{1}{4a}\cos 2(ax+b) + C, \end{aligned}

or equivalently 12asin⁡2(ax+b)+C\frac{1}{2a}\sin^2(ax+b) + C (Step 6). (Textbook answer: −14acos⁡2(ax+b)+C-\frac{1}{4a}\cos 2(ax+b) + C⁠.) If a=0a = 0⁠, the integrand is the constant sin⁡bcos⁡b\sin b\cos b and its integral is xsin⁡bcos⁡b+Cx\sin b\cos b + C⁠.

Check it with numbers

Take a=2a = 2⁠, b=1b = 1⁠, so F(x)=−18cos⁡(4x+2)F(x) = -\frac18\cos(4x+2)⁠. At x=0.5x = 0.5 the integrand is sin⁡2cos⁡2≈−0.378401\sin 2\cos 2 \approx -0.378401⁠. With h=0.0001h = 0.0001⁠:

F(0.5001)≈0.08166760595,F(0.4999)≈0.08174328620,F(0.5001)−F(0.4999)0.0002≈−0.378401.\begin{aligned} F(0.5001) &\approx 0.08166760595, \\ F(0.4999) &\approx 0.08174328620, \\ \frac{F(0.5001)-F(0.4999)}{0.0002} &\approx -0.378401. \end{aligned}

The slope of our answer equals the integrand, negative sign included.

Common mistakes
  1. Forgetting to divide by the inner derivative. ∫sin⁡(2ax+2b) dx\int\sin(2ax+2b)\,dx is −cos⁡(2ax+2b)2a-\frac{\cos(2ax+2b)}{2a}⁠, not −cos⁡(2ax+2b)-\cos(2ax+2b)⁠.
  2. Losing the 12\frac12 from the identity. sin⁡θcos⁡θ\sin\theta\cos\theta is 12sin⁡2θ\frac12\sin 2\theta⁠, not sin⁡2θ\sin 2\theta⁠.
  3. Thinking a different-looking answer is wrong. sin⁡2(ax+b)2a\frac{\sin^2(ax+b)}{2a} is also correct; check by showing the difference is constant.
What to take away
  1. Turn products of sines and cosines into single trigonometric functions with identities before integrating.
  2. For any constant p≠0p \ne 0⁠: ∫sin⁡(px+q) dx=−1pcos⁡(px+q)+C.\int\sin(px+q)\,dx = -\frac1p\cos(px+q) + C.
  3. Answers to indefinite integrals can legitimately differ by a constant.

Every fact used, and where it comes from

FactUsed inSource
sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta⁠; cos⁡2θ=1−2sin⁡2θ\cos 2\theta = 1 - 2\sin^2\thetaSteps 1, 5, 6Class XI trigonometry (Basics)
Substitution with a linear inner functionSteps 2, 6Section 7.3.1, Example 5(i)
∫sin⁡t dt=−cos⁡t+C\int\sin t\,dt = -\cos t + C⁠; ∫s ds=s22+C\int s\,ds = \frac{s^2}{2} + CSteps 3, 6Standard formulae (iii) and (i), Section 7.2
Constant factors move outsideSteps 2, 6Property (IV), Section 7.2.1
Chain ruleStep 5Chapter 5, Theorem 4
Antiderivatives differ by a constantStep 6Property (II), Section 7.2.1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →