How could we integrate e−xsinnx?
Question
- Show that dxd(cosxsinn−1x)=(n−1)sinn−2x−nsinnx.
- Given that In=∫021πe−xsinnxdx, show that In=−e−21π+n∫021πe−xcosxsinn−1xdx,(n≥1).
- By using the results of (i) and (ii), or otherwise, show that (n2+1)In=−e−21π+n(n−1)In−2,(n≥2).
- Show that I4=851(24−41e−21π).
Suggestion
Would it help us to use s for sinx and c for cosx?
How can we differentiate a product?
How could we convert any cosx terms into sinx terms?
Do we know a ‘product rule’ for integration?
Could we use our ‘product rule’ for integration a second time?
How would the earlier parts help us here?
Solution
How can we differentiate a product?
What techniques could we use to remove any occurrence of cosx from the resulting expression?
Differentiating using the product rule gives
dxd(cosxsinn−1x)=−sinxsinn−1x+(n−1)cos2xsinn−2x,
and then by using the identity
cos2x=1−sin2x
we get
dxd(cosxsinn−1x)=−sinnx+(n−1)(1−sin2x)sinn−2x=(n−1)sinn−2x−nsinnx,
as required.
Writing
s=sinx
and
c=cosx
can be helpful. We have
dxd(csn−1)=−ssn−1+(n−1)c2sn−2.
Using
c2=1−s2
we get
dxd(csn−1)=−sn+(n−1)(1−s2)sn−2=(n−1)sn−2−nsn=(n−1)sinn−2x−nsinnx
as required.
Here we want to integrate by parts (our ‘product rule’ for integration).
The general formula for integration by parts is ∫abudxdvdx=[uv]ab−∫abvdxdudx.
We know how to integrate
e−x
and differentiate
sinnx
, so we take
u=sinnx
and
dxdv=e−x
, giving
v=−e−x
. Then integration by parts yields
In=[−e−xsinnx]021π−∫021π−e−xnsinn−1xcosxdx,
which, after evaluating the limits, becomes
In=−e−21π+n∫021πe−xcosxsinn−1xdx.
Integrating the integral in
(1)
by parts, taking
u=cosxsinn−1x
and
dxdv=e−x
(and noticing that we’ve already worked out
dxdu
in part (i)) gives
∫021πe−xcosxsinn−1xdx=[−e−xcosxsinn−1x]021π+∫021πe−x((n−1)sinn−2x−nsinnx)dx=(n−1)∫021πe−xsinn−2xdx−n∫021πe−xsinnxdx=(n−1)In−2−nIn
(The third line follows by evaluating the limits, which are both zero as long as n>1; we are specifically told n≥2 here.)
Substituting this into (1) now gives In=−e−21π+n(n−1)In−2−n2In.
Rearranging gives
(n2+1)In=−e−21π+n(n−1)In−2
as required.
Rearranging (2) gives In=n2+11(−e−21π+n(n−1)In−2).
So by setting n=4 we get I4=171(−e−21π+12I2), and similarly, setting n=2 gives I2=51(−e−21π+2I0).
By substituting the expression for I2 into that for I4 we get I4=171(−e−21π+12(51(−e−21π+2I0))), which rearranges to give I4=851(24I0−17e−21π).
Now, by the definition of
In
,
I0=∫021πe−xdx=[−e−x]021π=1−e−21π,
so the expression for I4 becomes I4=851(24−41e−21π).