Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 6.10

Integrating Functions Using Long Division and Completing the Square

How do we integrate a fraction of polynomials?

What you will learn

  • Understand that dividing or completing the square rewrites a fraction into rules you know.
  • Know the arctangent form with its 1 ÷ a factor.
  • Understand how to split a numerator into a multiple of the derivative plus a constant.

You must be able to

  1. Divide an improper fraction before integrating.
  2. Complete the square in an irreducible quadratic denominator.
  3. Integrate with arctangent and include the 1 ÷ a.
  4. Integrate a root of a completed square with arcsine.
  5. Evaluate a definite integral with the original limits.

In the exam. Section I multiple choice, Part A: an indefinite or definite integral of a rational function, such as ∫x2+1x−1 dx\int \frac{x^2 + 1}{x - 1}\,dx or ∫1x2+4x+13 dx\int \frac{1}{x^2 + 4x + 13}\,dx, usually with exact options. These questions are short, and the whole question is recognizing which rewrite to use. In free response the techniques turn up inside area and accumulation parts.

1Long division

Proper fraction = numerator degree is less than denominator degree. Improper fraction = numerator degree is greater than or equal to the denominator degree.

Improper fractions are divided first.

numeratordenominator=quotient+remainderdenominator \frac{\text{numerator}}{\text{denominator}} = \text{quotient} + \frac{\text{remainder}}{\text{denominator}}

Example (invented): ∫x2+3x+5x+2 dx\displaystyle\int \frac{x^2 + 3x + 5}{x + 2}\,dx. Divide:

x2+3x+5=(x+2)(x+1)+3⇒x2+3x+5x+2=x+1+3x+2 x^2 + 3x + 5 = (x + 2)(x + 1) + 3 \quad\Rightarrow\quad \frac{x^2 + 3x + 5}{x + 2} = x + 1 + \frac{3}{x + 2}

Then integrate each term.

∫(x+1+3x+2)dx=x22+x+3ln⁡∣x+2∣+C \int \left(x + 1 + \frac{3}{x + 2}\right)dx = \frac{x^2}{2} + x + 3\ln\lvert x + 2\rvert + C

The remainder term 3x+2\frac{3}{x + 2} is a constant over a linear function. Its integral is a logarithm: ∫kax+b dx=kaln⁡∣ax+b∣+C\int \frac{k}{ax + b}\,dx = \frac{k}{a}\ln\lvert ax + b\rvert + C.

Example (invented): ∫x2+1x−1 dx\displaystyle\int \frac{x^2 + 1}{x - 1}\,dx. Divide: x2+1=(x−1)(x+1)+2x^2 + 1 = (x - 1)(x + 1) + 2, so the fraction is x+1+2x−1x + 1 + \frac{2}{x - 1}. The integral is x22+x+2ln⁡∣x−1∣+C\frac{x^2}{2} + x + 2\ln\lvert x - 1\rvert + C.

Example (invented): ∫2x+5x+1 dx\displaystyle\int \frac{2x + 5}{x + 1}\,dx. Here 2x+5=2(x+1)+32x + 5 = 2(x + 1) + 3, so the fraction is 2+3x+12 + \frac{3}{x + 1}, and the integral is 2x+3ln⁡∣x+1∣+C2x + 3\ln\lvert x + 1\rvert + C.

For a definite integral, divide first and then use the limits on the antiderivative.

Example (invented): ∫02x+3x+1 dx\displaystyle\int_0^2 \frac{x + 3}{x + 1}\,dx. Here x+3=(x+1)+2x + 3 = (x + 1) + 2, so the integrand is 1+2x+11 + \frac{2}{x + 1}.

∫02(1+2x+1)dx=[x+2ln⁡∣x+1∣]02=(2+2ln⁡3)−0=2+2ln⁡3 \int_0^2 \left(1 + \frac{2}{x + 1}\right)dx = \Bigl[x + 2\ln\lvert x + 1\rvert\Bigr]_0^2 = (2 + 2\ln 3) - 0 = 2 + 2\ln 3

A quick way to divide when the denominator is linear: write the numerator in terms of the denominator, as in 2x+5=2(x+1)+32x + 5 = 2(x + 1) + 3. Check by multiplying out.

2Completing the square

When the denominator is a quadratic with no real roots, it cannot be factored over the real numbers. Rewrite it as a square plus a positive constant.

x2+bx+c=(x+b2)2+(c−b24) x^2 + bx + c = \left(x + \tfrac{b}{2}\right)^2 + \left(c - \tfrac{b^2}{4}\right)

Example: x2+4x+13=(x+2)2+9x^2 + 4x + 13 = (x + 2)^2 + 9.

Now the integral looks like ∫1u2+a2 du\int \frac{1}{u^2 + a^2}\,du, which has a known answer.

The arctangent form.

∫1x2+a2 dx=1aarctan⁡xa+C \int \frac{1}{x^2 + a^2}\,dx = \frac{1}{a}\arctan\frac{x}{a} + C

To see why, substitute x=awx = aw, so dx=a dwdx = a\,dw. The integral becomes ∫a dwa2(w2+1)=1a∫dww2+1=1aarctan⁡w\int \frac{a\,dw}{a^2(w^2 + 1)} = \frac{1}{a}\int \frac{dw}{w^2 + 1} = \frac{1}{a}\arctan w.

Example (invented): ∫1x2+4x+13 dx=∫1(x+2)2+9 dx\displaystyle\int \frac{1}{x^2 + 4x + 13}\,dx = \int \frac{1}{(x + 2)^2 + 9}\,dx.

  • Let u=x+2u = x + 2, so du=dxdu = dx. The integral is ∫1u2+32 du\int \frac{1}{u^2 + 3^2}\,du.
  • With a=3a = 3: 13arctan⁡u3+C\frac{1}{3}\arctan\frac{u}{3} + C.
  • Back in xx: 13arctan⁡x+23+C\dfrac{1}{3}\arctan\dfrac{x + 2}{3} + C.

The constant 1a\frac{1}{a} is the one students forget. Check by differentiating: ddx[13arctan⁡x+23]=13⋅1/31+(x+23)2=1(x+2)2+9\frac{d}{dx}\left[\frac{1}{3}\arctan\frac{x + 2}{3}\right] = \frac{1}{3}\cdot\frac{1/3}{1 + \left(\frac{x + 2}{3}\right)^2} = \frac{1}{(x + 2)^2 + 9}.

For a definite integral, use the antiderivative with the original limits.

Example (invented): ∫011x2+2x+2 dx=∫011(x+1)2+1 dx=[arctan⁡(x+1)]01=arctan⁡2−π4≈0.322\displaystyle\int_0^1 \frac{1}{x^2 + 2x + 2}\,dx = \int_0^1 \frac{1}{(x + 1)^2 + 1}\,dx = \Bigl[\arctan(x + 1)\Bigr]_0^1 = \arctan 2 - \frac{\pi}{4} \approx 0.322.

Example (invented): ∫031x2+9 dx=[13arctan⁡x3]03=13⋅π4=π12\displaystyle\int_0^3 \frac{1}{x^2 + 9}\,dx = \left[\tfrac{1}{3}\arctan\tfrac{x}{3}\right]_0^3 = \tfrac{1}{3}\cdot\tfrac{\pi}{4} = \tfrac{\pi}{12}.

3The arcsine form

A square root of a quadratic, 1 \frac{1}{\sqrt{\ }}, uses the other inverse trig integral.

∫1a2−u2 du=arcsin⁡ua+C \int \frac{1}{\sqrt{a^2 - u^2}}\,du = \arcsin\frac{u}{a} + C

Example (invented): ∫16x−x2 dx\displaystyle\int \frac{1}{\sqrt{6x - x^2}}\,dx. Complete the square: 6x−x2=9−(x−3)26x - x^2 = 9 - (x - 3)^2. With u=x−3u = x - 3 and a=3a = 3, the answer is arcsin⁡x−33+C\arcsin\dfrac{x - 3}{3} + C.

4When the numerator is not constant

If the denominator is an irreducible quadratic and the numerator is a linear term, split the numerator into a multiple of the denominator's derivative plus a constant.

Example (invented): ∫3x+1x2+2x+5 dx\displaystyle\int \frac{3x + 1}{x^2 + 2x + 5}\,dx. The derivative of the denominator is 2x+22x + 2, and 3x+1=32(2x+2)−23x + 1 = \tfrac{3}{2}(2x + 2) - 2. So

∫3x+1x2+2x+5 dx=32∫2x+2x2+2x+5 dx−2∫1(x+1)2+4 dx \int \frac{3x + 1}{x^2 + 2x + 5}\,dx = \tfrac{3}{2}\int \frac{2x + 2}{x^2 + 2x + 5}\,dx - 2\int \frac{1}{(x + 1)^2 + 4}\,dx

The first part is 32ln⁡(x2+2x+5)\tfrac{3}{2}\ln(x^2 + 2x + 5), by substitution with u=x2+2x+5u = x^2 + 2x + 5. The second is −2⋅12arctan⁡x+12-2\cdot\tfrac{1}{2}\arctan\tfrac{x + 1}{2}. The result is

32ln⁡(x2+2x+5)−arctan⁡x+12+C \tfrac{3}{2}\ln(x^2 + 2x + 5) - \arctan\frac{x + 1}{2} + C

5Choosing the technique

For a rational integrand p(x)q(x)\frac{p(x)}{q(x)}, ask these questions in order.

  1. Is the numerator's degree at least the denominator's? Divide first.
  2. Is the numerator (up to a constant) the derivative of the denominator? Use u=q(x)u = q(x) and get a logarithm (6.9).
  3. Is the denominator an irreducible quadratic with a constant numerator? Complete the square and use arctangent.
  4. Does the denominator factor into different linear factors? Partial fractions (6.12, BC only).

Only the first three are needed for AB.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.