Free Integration by Completing the Square Calculator
Enter coefficients a, b, c to compute the integral
Rational Function Integration via Completing the Square
When integrating rational functions, one often encounters quadratic denominators that resist simple antiderivatives. The completing square substitution—also known as complete the square integration—transforms expressions like into a standard form that yields inverse trigonometric functions or can be tackled via reduction formulas.
Preliminary Steps
Before applying the completing‑square technique, examine the degrees of the numerator and denominator:
- If the numerator’s degree equals or exceeds the denominator’s degree, perform polynomial long division. The quotient is a polynomial (easily integrated with the power rule), and the remainder becomes a proper rational function.
- Express that proper rational function as a sum of partial fractions. For each irreducible quadratic factor (or, more generally, ), the corresponding term in the partial‑fraction decomposition is . The method of completing the square handles precisely these denominators.
Completing the Square Substitution for
Consider the integral
where the quadratic does not factor over the reals. The procedure consists of three actions:
-
Complete the square in the denominator:
Denote the constant term . For the simplest case , this reduces to .
-
Perform a linear substitution that eliminates the linear term. Set
Concretely, when , let ; then . Substituting yields
-
Evaluate the reduced integral .
- For , the result is .
- For , integration‑by‑parts or reduction formulas from an integral table are required.
Practical Remarks
- The same substitution works for any quadratic coefficient after a slight re‑scaling; the final expression always involves (for ) or more complex rational‑trigonometric forms.
- A quadratic integral calculator typically automates these steps, but understanding the algebra behind the completing square integration makes it easier to handle variations and to verify results.
- Mastering this method is a key milestone in rational function integration, and practicing a few examples will help internalise the procedure.
In summary, the completing square substitution turns a seemingly intractable integral of into a manageable form, leveraging the well‑known integral of . Whether computed by hand or with the aid of a calculator, this technique is indispensable in calculus.
FAQ
1. How do you integrate 1/(ax^2+bx+c) using completing the square?
First complete the square to rewrite the denominator as (x+p)^2+q. Then substitute u = (x+p)/sqrt(q); dx becomes sqrt(q) du. The integral reduces to (1/sqrt(q)) times the integral of du/(1+u^2), which equals (1/sqrt(q)) arctan(u) + C.
2. When is polynomial long division necessary before applying completing square integration?
Long division is needed when the degree of the numerator is greater than or equal to the degree of the denominator. After division, the remainder is a proper rational function that can be decomposed into partial fractions.
3. What is the antiderivative of du/(1+u^2)^n for n=1, and for n>1?
For n=1, the antiderivative is arctan(u) + C. For n>1, you need reduction formulas or tables of integrals because the integration becomes more complex.
4. Can online quadratic integral calculators compute these integrals automatically?
Yes, many online calculators labeled as quadratic integral calculators can perform the completing square substitution and give the final antiderivative, which helps verify manual work.
How to Use
- Enter the coefficients a, b, c of the quadratic denominator ax² + bx + c in the input fields.
- Adjust the precision setting to control decimal places in the displayed result.
- The completed square form, discriminant, and step-by-step integral result are computed instantly.