Find $\int \frac{x^{2}+x+1}{(x+2)(x^{2}+1)} dx$.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
(N/A) The integrand is a proper rational function. We decompose it into partial fractions as follows:
Form of the rational function Form of the partial fraction
$\frac{px^{2}+qx+r}{(x-a)(x^{2}+bx+c)}$ $\frac{A}{x-a}+\frac{Bx+C}{x^{2}+bx+c}$

$\frac{x^{2}+x+1}{(x+2)(x^{2}+1)} = \frac{A}{x+2} + \frac{Bx+C}{x^{2}+1}$
Multiplying both sides by $(x+2)(x^{2}+1)$,we get:
$x^{2}+x+1 = A(x^{2}+1) + (Bx+C)(x+2)$
$x^{2}+x+1 = A(x^{2}+1) + Bx^{2} + 2Bx + Cx + 2C$
$x^{2}+x+1 = (A+B)x^{2} + (2B+C)x + (A+2C)$
Equating the coefficients of $x^{2}, x$ and the constant term,we get:
$A+B = 1$
$2B+C = 1$
$A+2C = 1$
Solving these equations:
From $A+B=1$,$B=1-A$.
From $A+2C=1$,$C=\frac{1-A}{2}$.
Substituting into $2B+C=1$:
$2(1-A) + \frac{1-A}{2} = 1$
$4-4A+1-A = 2$
$5-5A = 2 \implies 5A = 3 \implies A = \frac{3}{5}$.
Then $B = 1 - \frac{3}{5} = \frac{2}{5}$ and $C = \frac{1 - 3/5}{2} = \frac{2/5}{2} = \frac{1}{5}$.
Thus,$\int \frac{x^{2}+x+1}{(x+2)(x^{2}+1)} dx = \int \left( \frac{3/5}{x+2} + \frac{2/5x + 1/5}{x^{2}+1} \right) dx$
$= \frac{3}{5} \int \frac{1}{x+2} dx + \frac{1}{5} \int \frac{2x}{x^{2}+1} dx + \frac{1}{5} \int \frac{1}{x^{2}+1} dx$
$= \frac{3}{5} \ln|x+2| + \frac{1}{5} \ln(x^{2}+1) + \frac{1}{5} \tan^{-1}(x) + C$.

Explore More

Similar Questions

If $\int \frac{x^2}{(x-1)(x-2)(x-3)} dx = \log_e f(x) + C$,then $f(x) =$

If $f(x)$ is a polynomial of the second degree in $x$ such that $f(0)=3, f(1)=3, f(2)=-3$. Then,$\int \frac{f(x)}{x^3-1} d x=$

$\int \frac{dx}{1 - x^2} = $

$\int \frac{x^{2}}{(x+1)(x+2)^{2}} d x=$

Integrate the rational function: $\frac{3x-1}{(x+2)^{2}}$

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo