Integration by Completing the Square

Calculate integrals of rational functions using completing the square and substitution methods

Calculate Integration by Completing the Square

∫ 1/(x² + 1)1 dx

Cannot be zero

Positive integer (1-5)

Integration Result

(1/1) × (1/1) × arctan((x + 0.000)/1.000) + C

Solution Steps:

Step 1: Original Function
∫ 1/(x² + 1)1 dx
Step 2: Complete the Square
Factor out coefficient: 1 × (x² + 0.000x + 1.000)
Complete the square: 1 × ((x + 0.000)² + 1.000)
Step 3: Substitution
Let u = x + 0.000, then du = dx
Step 4: Simplified Integral
∫ 1/[1.000 × (u² + 1.000)1] du
Step 5: Apply Integration Formula
Use ∫ 1/(u² + k²) du = (1/k) × arctan(u/k) + C

Analysis

Discriminant: Δ = -4.000
Vertex of parabola: (0.000, 1.000)
✅ No real roots - completing the square method is optimal

Example Calculation

Example: ∫ 1/(x² + 4x + 13) dx

Given: a = 1, b = 4, c = 13

Step 1: Complete the square: x² + 4x + 13 = (x + 2)² + 9

Step 2: Substitute u = x + 2, du = dx

Step 3: ∫ 1/(u² + 9) du = (1/3) × arctan(u/3) + C

Result: (1/3) × arctan((x + 2)/3) + C

Integration Methods

1

Completing the Square

For irreducible quadratics

2

Substitution

u = x + h transformation

3

Standard Forms

Apply known integral formulas

Common Integral Forms

∫ 1/(x² + a²) dx
= (1/a) arctan(x/a) + C
∫ 1/(x² - a²) dx
= (1/2a) ln|(x-a)/(x+a)| + C
∫ 1/x² dx
= -1/x + C

Understanding Integration by Completing the Square

What is Completing the Square?

Completing the square is a method used to rewrite quadratic expressions in the form a(x + h)² + k. This technique is particularly useful for integrating rational functions where the denominator is an irreducible quadratic.

When to Use This Method?

  • The denominator is a quadratic expression
  • The quadratic cannot be factored easily
  • The discriminant is negative (no real roots)
  • Partial fraction decomposition is complex

Step-by-Step Process

Step 1: Factor out coefficient

If a ≠ 1, factor it out from the quadratic

Step 2: Complete the square

Add and subtract (b/2a)² to form a perfect square

Step 3: Substitute

Let u = x + h to simplify the expression

Step 4: Apply formula

Use standard integral formulas for the result