Exercise 3.4 Examples – 12th Class Math Federal Board (Integration by Parts)

All textbook examples for Exercise 3.4 (Integration by Parts) of Chapter 3: Integration, 12th class Mathematics, Federal Board (FBISE). All 4 examples are worked step by step, with the final answers highlighted.
Worked textbook examples
Example 13Evaluate $\int xe^x\,dx$.
Solution:
Example 14Evaluate the following integrals.
Solution:
(i) $\int x^2\ln x\,dx$
(ii) $\int x\tan^{-1}x\,dx$
Example 15Evaluate the following integrals.
Solution:
(i) $\int\sqrt{a^2-x^2}\,dx$
Move the last $I$ to the left.
(ii) $\int\sqrt{a^2+x^2}\,dx$
Example 16Evaluate $\int e^{ax}\sin bx\,dx$.
Solution:
Let $I=\int e^{ax}\sin bx\,dx$, with $a\ne0$. Take $\sin bx$ as the first function and $e^{ax}$ as the second function.
Apply integration by parts again, with $\cos bx$ as the first function.
Move the $I$ term to the left side.
Multiply both sides by $\dfrac{a^2}{a^2+b^2}$ and add the constant.