The key idea is to rewrite the numerator sinx as sin((x−a)+a) and expand using the sine addition formula. This splits the integrand into a constant term and a simple cotangent term, leading to the result xcosa+sinalog∣sin(x−a)∣+C.
Why This Approach Works
When you see an integrand like sin(x−a)sinx, your first instinct might be to try a direct substitution. But the denominator sin(x−a) is a shifted version of the sine function, and the numerator is just sinx. The trick is to notice that x=(x−a)+a — a simple shift. This lets us express sinx in terms of sin(x−a) and cos(x−a), which will cancel beautifully with the denominator.
The sine addition formula is your friend here: sin(A+B)=sinAcosB+cosAsinB. By setting A=x−a and B=a, we get sinx=sin((x−a)+a)=sin(x−a)cosa+cos(x−a)sina. This turns a messy fraction into a sum of two simple terms.
Step-by-Step Solution
- Rewrite the numerator using the angle addition formula.
Let u=x−a, so x=u+a. Then:
sinx=sin(u+a)=sinucosa+cosusina.
The integrand becomes:
sin(x−a)sinx=sinusinucosa+cosusina=cosa+sina⋅sinucosu.
- Simplify the resulting expression.
Since sinucosu=cotu, we have:
sin(x−a)sinx=cosa+sina⋅cotu.
Now substitute back u=x−a:
sin(x−a)sinx=cosa+sina⋅cot(x−a).
- Integrate term by term.
The integral becomes:
∫sin(x−a)sinxdx=∫cosadx+sina∫cot(x−a)dx.
The first integral is straightforward: ∫cosadx=xcosa+C1.
- Handle the cotangent integral.
Recall that ∫cotθdθ=log∣sinθ∣+C. For cot(x−a), let t=x−a, so dt=dx, and:
∫cot(x−a)dx=∫cottdt=log∣sint∣+C2=log∣sin(x−a)∣+C2.
Therefore: …