(a)
If the integrand had x x x 's instead of e x e^x e x 's it would be a rational function,
ripe for the application of partial fractions. So let's start by making the
substitution u = e x u=e^x u = e x , d u = e x d x \mathrm{d}u=e^x\,\mathrm{d}x d u = e x d x :
∫ e x ( e x + 1 ) ( e x − 3 ) d x = ∫ d u ( u + 1 ) ( u − 3 ) \begin{aligned}
\int \frac{e^x}{(e^x+1)(e^x-3)} \mathrm{d}x
= \int \frac{\mathrm{d}u}{(u+1)(u-3)}
\end{aligned} ∫ ( e x + 1 ) ( e x − 3 ) e x d x = ∫ ( u + 1 ) ( u − 3 ) d u
Now, we follow the partial fractions protocol, starting with expressing
1 ( u + 1 ) ( u − 3 ) = A u + 1 + B u − 3 \begin{aligned}
\frac{1}{(u+1)(u-3)} = \frac{A}{u+1} + \frac{B}{u-3}
\end{aligned} ( u + 1 ) ( u − 3 ) 1 = u + 1 A + u − 3 B
To find A A A and B B B , the sneaky way, we cross multiply by the denominator
1 = A ( u − 3 ) + B ( u + 1 ) \begin{aligned}
1 = A(u-3) + B(u+1)
\end{aligned} 1 = A ( u − 3 ) + B ( u + 1 )
and find A A A and B B B by evaluating at u = − 1 u=-1 u = − 1 and u = 3 u=3 u = 3 , respectively.
1 = A ( − 1 − 3 ) + B ( − 1 + 1 ) ⟺ A = − 1 4 1 = A ( 3 − 3 ) + B ( 3 + 1 ) ⟺ B = 1 4 \begin{aligned}
1 = A(-1-3) + B(-1+1) &\iff A=-\frac{1}{4} \\
1 = A(3-3) + B(3+1) &\iff B=\frac{1}{4} \\
\end{aligned} 1 = A ( − 1 − 3 ) + B ( − 1 + 1 ) 1 = A ( 3 − 3 ) + B ( 3 + 1 ) ⟺ A = − 4 1 ⟺ B = 4 1
Finally, we can do the integral:
∫ e x ( e x + 1 ) ( e x − 3 ) d x = ∫ d u ( u + 1 ) ( u − 3 ) = ∫ ( − 1 / 4 u + 1 + 1 / 4 u − 3 ) d u = − 1 4 log ∣ u + 1 ∣ + 1 4 log ∣ u − 3 ∣ + C = − 1 4 log ∣ e x + 1 ∣ + 1 4 log ∣ e x − 3 ∣ + C \begin{aligned}
\int \frac{e^x}{(e^x+1)(e^x-3)} \mathrm{d}x
&= \int \frac{\mathrm{d}u}{(u+1)(u-3)}
= \int \Big(\frac{ -1/4}{u+1} + \frac{ 1/4}{u-3}\Big)\mathrm{d}u \\
&=-\frac{1}{4}\log|u+1| +\frac{1}{4}\log|u-3| + C \\
&=-\frac{1}{4}\log|e^x+1| +\frac{1}{4}\log|e^x-3| + C
\end{aligned} ∫ ( e x + 1 ) ( e x − 3 ) e x d x = ∫ ( u + 1 ) ( u − 3 ) d u = ∫ ( u + 1 − 1/4 + u − 3 1/4 ) d u = − 4 1 log ∣ u + 1∣ + 4 1 log ∣ u − 3∣ + C = − 4 1 log ∣ e x + 1∣ + 4 1 log ∣ e x − 3∣ + C
(b) The argument of the square root is
12 + 4 x − x 2 = 12 − ( x − 2 ) 2 + 4 = 16 − ( x − 2 ) 2 \begin{aligned}
12+4x-x^2
=12-(x-2)^2 +4
=16-(x-2)^2
\end{aligned} 12 + 4 x − x 2 = 12 − ( x − 2 ) 2 + 4 = 16 − ( x − 2 ) 2
Hmmm. The numerator is x 2 − 4 x + 4 = ( x − 2 ) 2 x^2-4x+4=(x-2)^2 x 2 − 4 x + 4 = ( x − 2 ) 2 . So let's make the integral look somewhat simpler by substituting u = x − 2 u=x-2 u = x − 2 , d u = d x \mathrm{d}u=\mathrm{d}x d u = d x .
When x = 2 x=2 x = 2 we have u = 0 u=0 u = 0 , and when x = 4 x=4 x = 4 we have u = 2 u=2 u = 2 , so:
∫ x = 2 x = 4 x 2 − 4 x + 4 12 + 4 x − x 2 d x = ∫ u = 0 u = 2 u 2 16 − u 2 d u \begin{aligned}
\int_{x=2}^{x=4} \frac{x^2-4x+4}{\sqrt{12+4x-x^2}} \mathrm{d}x
=\int_{u=0}^{u=2} \frac{u^2}{\sqrt{16-u^2}} \mathrm{d}u
\end{aligned} ∫ x = 2 x = 4 12 + 4 x − x 2 x 2 − 4 x + 4 d x = ∫ u = 0 u = 2 16 − u 2 u 2 d u
This is perfect for the trig substitution u = 4 sin θ u=4\sin\theta u = 4 sin θ ,
d u = 4 cos ( θ ) d θ \mathrm{d}u = 4\cos(\theta)\,\mathrm{d}\theta d u = 4 cos ( θ ) d θ . When u = 0 u=0 u = 0 we have 4 sin θ = 0 4\sin\theta = 0 4 sin θ = 0
and hence θ = 0 \theta=0 θ = 0 . When u = 2 u=2 u = 2 we have 4 sin θ = 2 4\sin\theta = 2 4 sin θ = 2
and hence θ = π 6 \theta=\frac{\pi}{6} θ = 6 π . So
∫ u = 0 u = 2 u 2 16 − u 2 d u = ∫ θ = 0 θ = π / 6 16 sin 2 θ 16 − 16 sin 2 θ 4 cos θ d θ = 16 ∫ 0 π / 6 sin 2 θ d θ = 8 ∫ 0 π / 6 ( 1 − cos ( 2 θ ) ) d θ = 8 [ θ − 1 2 sin ( 2 θ ) ] 0 π / 6 = 8 [ π 6 − 1 2 ⋅ 3 2 ] = 4 π 3 − 2 3 \begin{aligned}
\int_{u=0}^{u=2} \frac{u^2}{\sqrt{16-u^2}} \mathrm{d}u
&=\int_{\theta=0}^{\theta=\pi/6}
\frac{16\sin^2\theta}{\sqrt{16-16\sin^2\theta}}
4\cos\theta\mathrm{d}\theta \\
&=16\int_{0}^{\pi/6} \sin^2\theta\ \mathrm{d}\theta \\
&=8\int_{0}^{\pi/6} \big(1-\cos(2\theta)\big)\ \mathrm{d}\theta \\
&=8 \bigg[\theta-\frac{1}{2}\sin(2\theta)\bigg]_{0}^{\pi/6}
=8 \bigg[\frac{\pi}{6}-\frac{1}{2}\cdot \frac{\sqrt{3}}{2} \bigg] \\
& = \frac{4\pi}{3}-2\sqrt{3}
\end{aligned} ∫ u = 0 u = 2 16 − u 2 u 2 d u = ∫ θ = 0 θ = π /6 16 − 16 sin 2 θ 16 sin 2 θ 4 cos θ d θ = 16 ∫ 0 π /6 sin 2 θ d θ = 8 ∫ 0 π /6 ( 1 − cos ( 2 θ ) ) d θ = 8 [ θ − 2 1 sin ( 2 θ ) ] 0 π /6 = 8 [ 6 π − 2 1 ⋅ 2 3 ] = 3 4 π − 2 3