Skip to content
NCERT Exemplar · Q3

Q.Evaluate: ∫x2+2x+1 dx\int \dfrac{x^2+2}{x+1}\,dx

Punjab PsebShort· 3mImportance★★★★★est
82% · 305/373 Questions
✓ Free question

The integral ∫x2+2x+1 dx\int \frac{x^2+2}{x+1}\,dx is solved by polynomial long division (since the numerator's degree is higher than the denominator's), rewriting the integrand as x−1+3x+1x - 1 + \frac{3}{x+1}, then integrating term by term to get x22−x+3log⁡∣x+1∣+C\frac{x^2}{2} - x + 3\log|x+1| + C.

When you see a rational function where the numerator’s degree is greater than or equal to the denominator’s degree, your first instinct should be: divide first. The fraction x2+2x+1\frac{x^2+2}{x+1} has a quadratic numerator and a linear denominator — the degree of the numerator (2) is higher than that of the denominator (1). That means the fraction is “improper” in the rational-function sense. You can’t directly apply partial fractions until you’ve extracted the polynomial part.

Why does this work? Think of it like converting an improper fraction in arithmetic, say 73\frac{7}{3}: you write it as 2+132 + \frac{1}{3} because 7÷37 \div 3 gives quotient 2 and remainder 1. Here, we do the same with polynomials: divide x2+2x^2+2 by x+1x+1 to get a quotient (a polynomial) and a remainder (a proper fraction). The remainder will have a lower degree than the denominator, and that part can be integrated using a simple log.

Let’s do it step by step.


1. Perform polynomial long division

Divide x2+0x+2x^2 + 0x + 2 by x+1x+1:

  • x2÷x=xx^2 \div x = x. Multiply: x(x+1)=x2+xx(x+1) = x^2 + x. Subtract from x2+2x^2 + 2: (x2+2)−(x2+x)=−x+2(x^2 + 2) - (x^2 + x) = -x + 2.
  • Now divide −x÷x=−1-x \div x = -1. Multiply: −1(x+1)=−x−1-1(x+1) = -x - 1. Subtract: (−x+2)−(−x−1)=3(-x + 2) - (-x - 1) = 3.

So the quotient is x−1x - 1 and the remainder is 33. Therefore:

x2+2x+1=x−1+3x+1\frac{x^2+2}{x+1} = x - 1 + \frac{3}{x+1}

Tip

You can also do this by adding and subtracting in the numerator: x2+2=x2+x−x+2=x(x+1)−(x+1)+3x^2+2 = x^2 + x - x + 2 = x(x+1) - (x+1) + 3, which directly gives the same decomposition. This trick is faster once you’re comfortable.


2. Rewrite the integral

Now the integral becomes:

∫x2+2x+1 dx=∫(x−1+3x+1)dx\int \frac{x^2+2}{x+1}\,dx = \int \left( x - 1 + \frac{3}{x+1} \right) dx

This splits into three simple integrals:

∫x dx−∫1 dx+3∫1x+1 dx\int x\,dx - \int 1\,dx + 3\int \frac{1}{x+1}\,dx


3. Integrate each term

  • ∫x dx=x22\int x\,dx = \frac{x^2}{2}
  • ∫1 dx=x\int 1\,dx = x
  • ∫1x+1 dx=log⁡∣x+1∣\int \frac{1}{x+1}\,dx = \log|x+1| (don’t forget the absolute value — the denominator could be negative for x<−1x < -1)

So:

∫x2+2x+1 dx=x22−x+3log⁡∣x+1∣+C\int \frac{x^2+2}{x+1}\,dx = \frac{x^2}{2} - x + 3\log|x+1| + C

Watch out

A common mistake is to forget the absolute value in log⁡∣x+1∣\log|x+1|. The integral of 1u\frac{1}{u} is log⁡∣u∣\log|u|, not log⁡u\log u, because the domain includes negative values. Also, don’t forget the constant of integration CC — it’s required for indefinite integrals.


4. Check by differentiating (optional but good practice)

Differentiate x22−x+3log⁡∣x+1∣+C\frac{x^2}{2} - x + 3\log|x+1| + C:

  • Derivative of x22\frac{x^2}{2} is xx
  • Derivative of −x-x is −1-1
  • Derivative of 3log⁡∣x+1∣3\log|x+1| is 3x+1\frac{3}{x+1}

Sum: x−1+3x+1x - 1 + \frac{3}{x+1}, which is exactly the original integrand. So it’s correct.


✓Final answer

The integral evaluates to x22−x+3log⁡∣x+1∣+C\boxed{\frac{x^2}{2} - x + 3\log|x+1| + C}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.