Question
Find: $\int \frac{x^{2}+x+1}{(x+2)\left(x^{2}+1\right)} d x$

Answer

Let, $I=\int \frac{x^{2}+x+1}{(x+2)\left(x^{2}+1\right)} d x$
By partial fractions
$\frac{x^{2}+x+1}{(x+2)\left(x^{2}+1\right)}=\frac{A}{x+2}+\frac{B x+C}{x^{2}+1}$
x2 + x + 1 = A(x+ 1) + Bx + C(x + 2)
=Ax+ A + Bx+ 2Bx + Cx + 2Cx+ x + 1
= x2(A + B) + x(2B + C) + A + 2C
On comparing coefficients of equation (i), we get
1 = A + B and 1 = 2B + C
On solving above three equations, we get
$A=\frac{3}{5}$, $ B=\frac{2}{5} $ and $C=\frac{1}{5}$
Hence, $\frac{x^{2}+x+1}{(x+2)\left(x^{2}+1\right)}=\frac{3}{5(x+2)}+\frac{\frac{2}{5} x+\frac{1}{5}}{x^{2}+1}$
Therefore, $\int \frac{\left(x^{2}+x+1\right) d x}{(x+2)\left(x^{2}+1\right)}=\frac{3}{5} \int \frac{1}{x+2} d x+\frac{2}{5} \int \frac{x}{x^{2}+1} d x +\frac{1}{5} \int \frac{1}{\left(x^{2}+1\right)} d x$
= $\frac{3}{5} \log |x+2|+\frac{1}{5} \int \frac{2 x}{x^{2}+1}+\frac{1}{5} \int \frac{d x}{x^{2}+1}$
= $\frac{3}{5} \log |x+2|+\frac{1}{5} \log \left|x^{2}+1\right|+\frac{1}{5} \tan ^{-1} x+c$
 

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

If matrix $A=\left[\begin{array}{lll}2 & 4 & 6 \\ 1 & 2 & 1\end{array}\right]$, and $2 A+B=\left[\begin{array}{lll}3 & 4 & 2 \\ 4 & 1 & 2\end{array}\right]$ then find matrix $B$.
If $\vec{\text{a}}\text{ and }\vec{\text{b}}$ are two non-collinear vectors such that $\text{x}\vec{\text{a}}+\text{y}\vec{\text{b}}=\vec0$, Then write the values of x and y.
Find the distance between the planes 2x – y + 2z = 5 and 5x – 2.5y + 5z = 20.
Find all points of discontinuity of f, where $f(x)=\left\{\begin{array}{l}\frac{\sin x}{x}, \text { if } x<0 \\ x+1, \text { if } x \geq 0\end{array}\right.$
In a hostel, 60% of the students read Hindi newspaper, 40% read English newspaper and 20% read both Hindi and English newspapers. A student is selected at random. If she reads Hindi newspaper, find the probability that she reads English newspaper.
Find an anti derivative (or integral) of the following function by the method of inspection.

 

$\text{e}^{2\text{x}}$

C and R represent set of complex numbers and real numbers. Show that $f: C \rightarrow R , f(z)=|z| \forall z \in C$ is neither one-one nor onto.
Integrate the function: $\frac{\cos x}{\sqrt{4-\sin ^{2} x}}$
P and Q are two points with position vectors 3$\overrightarrow{\text{a}}$ - 2$\overrightarrow{\text{b}}$ and $\overrightarrow{\text{a}} + \overrightarrow{\text{b}}$respectively. Write the position vector of a point R which divides the line segment PQ in the ratio 2:1 externally.
 $\text{Find} \lambda, \text{if the vectors} \overrightarrow{\text{a}} = \hat{\text{i}} + 3\hat{\text{j}} + \hat{\text{k}}, \overrightarrow{\text{b}} = 2\hat{\text{i}} - \hat{\text{j}} - \hat{\text{k}}$ $\text{and} \overrightarrow{\text{c}} = \lambda \hat{\text{j}} + 3\hat{\text{k}} $ $\text{are coplanar}.$