Integrals Involving Quadratics
Every quadratic is a shifted square plus a constant. Completing the square shows that, turning an awkward into , a shape you've already learned to integrate with an arctangent, a logarithm or a trig substitution.
What the symbols mean
- Center
The shift from completing the square: where the quadratic is smallest.
- Spread
The square root of what's left over after completing the square.
Explanation
Completing the square is simply rewriting a quadratic like as a perfect square plus a leftover number, . The name comes from geometry: picture as a square plus two strips, and you add the small corner piece that completes a bigger square. It's good for integrating fractions and roots with quadratics that won't factor, and for finding the peak of a circuit's response or the center of a bell curve. All we're really saying with is: (how far the parabola is slid sideways, where its lowest point sits) and (how far above zero that lowest point is) turn the integral into 's arctangent, just shifted and stretched. It looks heavy, but an old algebra trick is doing all the work; bear with it.
Look at . You can't use partial fractions, because has no real roots (). But you do know . If only the denominator were a square plus a number... and it is, once you complete the square.
Completing the square:
For example, . Now substitute , so , and it's the arctangent integral exactly. The shift costs nothing, which is why this works so cleanly.
A linear numerator. For , there's one more step. Remember the log rule from substitution: when the top is the derivative of the bottom, you get a log,
So write the numerator as a multiple of the denominator's derivative, , plus whatever constant is left over. The derivative part gives the logarithm, and the leftover constant gives an arctangent after you complete the square.
Inside a root. Completing the square also sets up trig substitution. is ready for , and is ready for .
A common mistake. With a leading minus sign, as in , it's tempting to complete the square as if the minus weren't there. Factor it out first: . Getting this sign wrong flips which trig substitution you need.
See it
Worked examples
Find .
- 1
The denominator has no real roots, so complete the square: , which means and .
Find .
- 1
The derivative of the denominator is , so split the top into a multiple of that plus a constant: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find .
Evaluate .
Find .
Find .
A radio receiver's sensitivity to frequency (MHz) is proportional to . What fraction of its total sensitivity, over all frequencies, lies between and MHz?
The hardest one here. Get it, and you've got this lesson.
Find .
Where it's used
Completing the square finds the vertex of any parabola, the resonant peak in a circuit's frequency response, and the mean and spread hidden inside a Gaussian , which is why it shows up all over statistics.