Algebra before integrating: division and completing the square

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Calculus AB (AP-aligned) › Techniques: substitution

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Algebra before integrating: division and completing the square

Techniques: substitution.

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=ln⁡(9x)f(x) = \ln(9x) for x>0x > 0. Find f′(x)f'(x).
  2. f(x)=ln⁡(x2+2)f(x) = \ln(x^2 + 2). Find f′(x)f'(x).
  3. f(x)=arctan⁡(7x)f(x) = \arctan(7x). Find f′(x)f'(x).

Discover

1x2+4x+5\dfrac{1}{x^2 + 4x + 5} has no obvious inside function. Which rewriting helps?

  1. 1(x+2)2+1\dfrac{1}{(x + 2)^2 + 1}
  2. 1x2+14x+15\dfrac{1}{x^2} + \dfrac{1}{4x} + \dfrac{1}{5}

Key idea

Rewrite first, then integrate.

Divide when the top has a degree at least that of the bottom, or the bottom is one term: x2+1x=x+1x\dfrac{x^2 + 1}{x} = x + \dfrac{1}{x}. Complete the square to reach ∫duu2+a2=1aarctan⁡ua+C\displaystyle\int \dfrac{du}{u^2 + a^2} = \dfrac{1}{a}\arctan\dfrac{u}{a} + C.

Worked example

∫dxx2+6x+13\displaystyle\int \dfrac{dx}{x^2 + 6x + 13}.

x2+6x+13=(x+3)2+4x^2 + 6x + 13 = (x + 3)^2 + 4
x² + 6x + 9 + 4.
∫duu2+4\displaystyle\int \dfrac{du}{u^2 + 4}
u = x + 3, a = 2.
12arctan⁡x+32+C\tfrac{1}{2}\arctan\dfrac{x + 3}{2} + C
The arctan formula.

Your turn, guided

Your turn: ∫x2+2x dx\displaystyle\int \dfrac{x^2 + 2}{x}\,dx for x>0x > 0.

x22+2ln⁡x+C\dfrac{x^2}{2} + 2\ln x + C
x + 2/x.

Practice ★

  1. Find FF with F′(x)=1x2+9F'(x) = \dfrac{1}{x^2 + 9} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=1x2+4F'(x) = \dfrac{1}{x^2 + 4} and F(0)=0F(0) = 0.
  1. Evaluate ∫12x2+5x+1x dx\displaystyle\int_1^2 \dfrac{x^2 + 5x + 1}{x}\,dx.
  2. Evaluate ∫12x2+4x+1x dx\displaystyle\int_1^2 \dfrac{x^2 + 4x + 1}{x}\,dx.

Watch out!

Practice ★★

  1. Find FF with F′(x)=1x2+6x+10F'(x) = \dfrac{1}{x^2 + 6x + 10} and F(−3)=0F(-3) = 0.
  2. Find FF with F′(x)=1x2+8x+17F'(x) = \dfrac{1}{x^2 + 8x + 17} and F(−4)=0F(-4) = 0.

Exit ticket

Three questions to check you have got it.

  1. Find FF with F′(x)=1x2+9F'(x) = \dfrac{1}{x^2 + 9} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=1x2+4F'(x) = \dfrac{1}{x^2 + 4} and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=1x2+36F'(x) = \dfrac{1}{x^2 + 36} and F(0)=0F(0) = 0.

Summary card

Algebra first

  • Divide term by term when the bottom is one term.
  • Complete the square for 1x2+bx+c\dfrac{1}{x^2 + bx + c}, then arctan.

Watch out: 1a+b≠1a+1b\dfrac{1}{a + b} \ne \dfrac{1}{a} + \dfrac{1}{b}.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫1e9x+2x dx\displaystyle\int_1^{e} \dfrac{ 9x + 2 }{x}\,dx (exact).
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits