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

Miscellaneous · Q7: ∫sin⁡xsin⁡(x−a) dx\int\frac{\sin x}{\sin(x-a)}\,dx

Miscellaneous ExerciseSubstitution and the sine addition formula · Miscellaneous Exercise on Chapter 7
The question

Integrate the functions in Exercises 1 to 23.

7. sin⁡xsin⁡(x−a)\dfrac{\sin x}{\sin(x-a)}

Exam answer

Let I=∫sin⁡xsin⁡(x−a) dxI = \displaystyle\int\frac{\sin x}{\sin(x - a)}\,dx⁠.

Put x−a=tx - a = t⁠. Then dx=dtdx = dt⁠.

I=∫sin⁡(t+a)sin⁡t dt=∫sin⁡tcos⁡a+cos⁡tsin⁡asin⁡t dt=∫(cos⁡a+sin⁡acot⁡t) dt=tcos⁡a+sin⁡alog⁡∣sin⁡t∣+C1=(x−a)cos⁡a+sin⁡alog⁡∣sin⁡(x−a)∣+C1\begin{aligned} I &= \int\frac{\sin(t + a)}{\sin t}\,dt \\ &= \int\frac{\sin t\cos a + \cos t\sin a}{\sin t}\,dt \\ &= \int(\cos a + \sin a\cot t)\,dt \\ &= t\cos a + \sin a\log|\sin t| + C_1 \\ &= (x - a)\cos a \\ &\quad + \sin a\log|\sin(x - a)| + C_1 \end{aligned}

Writing C=C1−acos⁡aC = C_1 - a\cos a⁠,

∴ I=sin⁡alog⁡∣sin⁡(x−a)∣\therefore\ I = \sin a\log|\sin(x - a)| +xcos⁡a+C+ x\cos a + C⁠.

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

The one idea this problem is built on

Write the numerator's angle in terms of the denominator's: x=(x−a)+ax = (x - a) + a⁠. The substitution t=x−at = x - a and the addition formula sin⁡(t+a)\sin(t + a) =sin⁡tcos⁡a+cos⁡tsin⁡a= \sin t\cos a + \cos t\sin a split the fraction into a constant plus a constant times cot⁡t\cot t⁠, both of which are standard integrals. This is the method of Example 6(ii) in the book.

Given, to find, and the plan
Given
f(x)=sin⁡xsin⁡(x−a)f(x) = \dfrac{\sin x}{\sin(x-a)}⁠, aa a constant; defined where sin⁡(x−a)≠0\sin(x - a) \ne 0⁠, that is x≠a+nπx \ne a + n\pi for integers nn⁠.
To find
∫sin⁡xsin⁡(x−a) dx\displaystyle\int\frac{\sin x}{\sin(x-a)}\,dx⁠.
Plan
(1) Why this method. (2) Substitute t=x−at = x - a⁠. (3) Expand with the addition formula and split. (4) Integrate. (5) Return to xx⁠. (6) Differentiate back.

Basics you need

1Addition formula

sin⁡(A+B)\sin(A + B) =sin⁡Acos⁡B+cos⁡Asin⁡B= \sin A\cos B + \cos A\sin B⁠. Basics: trigonometric identities

2∫cot⁡t dt\int\cot t\,dt

∫cot⁡t dt=log⁡∣sin⁡t∣+C\int\cot t\,dt = \log|\sin t| + C⁠, one of the standard trigonometric integrals of Section 7.3.1 (result (ii) there). Lesson: integration by substitution

Solution

  1. Why this method

    The top and bottom involve the different angles xx and x−ax - a⁠, so nothing cancels as it stands. Expressing xx as (x−a)+a(x - a) + a puts everything in terms of the one angle x−ax - a (and the constant aa⁠).

    No standard formula has sin⁡xsin⁡(x−a)\frac{\sin x}{\sin(x-a)}⁠, and sin⁡x\sin x is not the derivative of sin⁡(x−a)\sin(x-a)⁠. But once both are written in the same angle, the fraction separates into simple terms. Example 6(ii) of the book does exactly this for sin⁡xsin⁡(x+a)\frac{\sin x}{\sin(x+a)}⁠.
    Example 6(ii), Section 7.3.1 (Example 6).
  2. Substitute t=x−at = x - a

    Then x=t+ax = t + a and dx=dtdx = dt (since aa is constant):

    ∫sin⁡xsin⁡(x−a) dx=∫sin⁡(t+a)sin⁡t dt.\int\frac{\sin x}{\sin(x-a)}\,dx = \int\frac{\sin(t + a)}{\sin t}\,dt.
    The shift t=x−at = x - a is one-one and differentiable for all xx⁠, and sin⁡t≠0\sin t \ne 0 exactly where the original integrand is defined.
    Substitution, Section 7.3.1. Basics: substitution
  3. Expand and split

    sin⁡(t+a)sin⁡t=sin⁡tcos⁡a+cos⁡tsin⁡asin⁡t=cos⁡a+sin⁡a cos⁡tsin⁡t=cos⁡a+sin⁡acot⁡t.\begin{aligned} \frac{\sin(t+a)}{\sin t} &= \frac{\sin t\cos a + \cos t\sin a}{\sin t} \\ &= \cos a + \sin a\,\frac{\cos t}{\sin t} \\ &= \cos a + \sin a\cot t. \end{aligned}
    The addition formula with A=tA = t⁠, B=aB = a⁠. Dividing each term of the numerator by sin⁡t\sin t splits the fraction; cos⁡a\cos a and sin⁡a\sin a are constants because aa is.
    Addition formula (Basic 1). Basics: trigonometric identities
  4. Integrate

    ∫(cos⁡a+sin⁡acot⁡t) dt=tcos⁡a+sin⁡alog⁡∣sin⁡t∣+C1.\begin{aligned} &\int(\cos a + \sin a\cot t)\,dt \\ &= t\cos a + \sin a\log|\sin t| + C_1. \end{aligned}
    A constant integrates to itself times tt⁠; ∫cot⁡t dt=log⁡∣sin⁡t∣\int\cot t\,dt = \log|\sin t| (Basic 2). The constant sin⁡a\sin a comes outside the integral by property (IV).
    Standard formula (i) with n=0n = 0⁠, Section 7.2; ∫cot⁡t dt\int\cot t\,dt⁠, Section 7.3.1.
  5. Return to xx

    Put t=x−at = x - a⁠:

    (x−a)cos⁡a+sin⁡alog⁡∣sin⁡(x−a)∣+C1=xcos⁡a+sin⁡alog⁡∣sin⁡(x−a)∣+C,\begin{aligned} &(x - a)\cos a + \sin a\log|\sin(x-a)| + C_1 \\ &= x\cos a + \sin a\log|\sin(x-a)| + C, \end{aligned}

    where C=C1−acos⁡aC = C_1 - a\cos a⁠.

    The term −acos⁡a-a\cos a is a constant, so it is absorbed into the constant of integration. That is why the textbook's answer has xcos⁡ax\cos a rather than (x−a)cos⁡a(x - a)\cos a⁠; the two differ only by a constant.
    Any constant may be absorbed into CC (Section 7.2).
  6. Check: differentiate the answer

    ddx(xcos⁡a+sin⁡alog⁡∣sin⁡(x−a)∣)=cos⁡a+sin⁡a⋅cos⁡(x−a)sin⁡(x−a)=sin⁡(x−a)cos⁡a+cos⁡(x−a)sin⁡asin⁡(x−a)=sin⁡((x−a)+a)sin⁡(x−a)=sin⁡xsin⁡(x−a). ✓\begin{aligned} &\frac{d}{dx}\big(x\cos a + \sin a\log|\sin(x-a)|\big) \\ &= \cos a + \sin a\cdot\frac{\cos(x-a)}{\sin(x-a)} \\ &= \frac{\sin(x-a)\cos a + \cos(x-a)\sin a}{\sin(x-a)} \\ &= \frac{\sin\big((x-a) + a\big)}{\sin(x-a)} = \frac{\sin x}{\sin(x-a)}. \ \checkmark \end{aligned}
    The derivative of log⁡∣sin⁡u∣\log|\sin u| is cot⁡u\cot u times u′u'⁠, with u=x−au = x - a⁠, u′=1u' = 1⁠. Recombining with the addition formula returns the integrand on every interval where sin⁡(x−a)≠0\sin(x - a) \ne 0⁠.
    Chain rule, Chapter 5; addition formula. Basics: integration undoes differentiation
Result

For sin⁡(x−a)≠0\sin(x - a) \ne 0⁠:

∫sin⁡xsin⁡(x−a) dx=sin⁡alog⁡∣sin⁡(x−a)∣+xcos⁡a+C.\begin{aligned} &\int\frac{\sin x}{\sin(x-a)}\,dx \\ &= \sin a\log|\sin(x-a)| + x\cos a + C. \end{aligned}

Textbook answer:

sin⁡alog⁡∣sin⁡(x−a)∣+xcos⁡a+C,\sin a\log|\sin(x-a)| + x\cos a + C,

the same.

Check it with numbers

Take a=π6a = \frac\pi6 and integrate from π2\frac\pi2 to 2π3\frac{2\pi}{3} (so x−ax - a runs from π3\frac\pi3 to π2\frac\pi2⁠, where sin⁡(x−a)>0\sin(x - a) > 0⁠):

F(2π3)−F(π2)=π6⋅32+12(log⁡1−log⁡32)≈0.5253704.\begin{aligned} F\big(\tfrac{2\pi}3\big) - F\big(\tfrac\pi2\big) &= \tfrac\pi6\cdot\tfrac{\sqrt3}{2} + \tfrac12\big(\log 1 - \log\tfrac{\sqrt3}{2}\big) \\ &\approx 0.5253704. \end{aligned}

Numerical integration over the same interval also gives 0.52537040.5253704⁠.

Common mistakes
  1. Expanding sin⁡(x−a)\sin(x - a) in the denominator instead of writing the numerator in terms of x−ax - a⁠. The fraction then does not split.
  2. Writing ∫cot⁡t dt=log⁡∣cos⁡t∣\int\cot t\,dt = \log|\cos t|. It is log⁡∣sin⁡t∣\log|\sin t|⁠, because ddtsin⁡t=cos⁡t\frac{d}{dt}\sin t = \cos t⁠.
  3. Thinking (x−a)cos⁡a(x - a)\cos a and xcos⁡ax\cos a give different answers. They differ by the constant acos⁡aa\cos a⁠.
What to take away
  1. For sin⁡xsin⁡(x±a)\frac{\sin x}{\sin(x \pm a)}⁠, cos⁡xcos⁡(x±a)\frac{\cos x}{\cos(x \pm a)} and similar, rewrite the numerator's angle as the denominator's angle plus a constant.
  2. Terms like −acos⁡a-a\cos a that appear on returning to xx are constants and go into CC⁠.

Every fact used, and where it comes from

FactUsed inSource
Substitution t=x−at = x - a⁠, dt=dxdt = dxStep 2Section 7.3.1; Example 6(ii)
sin⁡(A+B)\sin(A + B) =sin⁡Acos⁡B+cos⁡Asin⁡B= \sin A\cos B + \cos A\sin BSteps 3, 6Trigonometry (Class XI) (Basics)
∫cot⁡t dt=log⁡∣sin⁡t∣+C\int\cot t\,dt = \log|\sin t| + CStep 4Section 7.3.1, result (ii)
Constants outside; ∫dt=t+C\int dt = t + CStep 4Property (IV), Section 7.2.1; standard formula (i)
Chain rule; derivative of log⁡∣sin⁡u∣\log|\sin u|Step 6Chapter 5
All decimalsCheckRecomputed in the site's verification script
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 →