ALGEBRAAlgebraMathematics Calculator
📐

Completing the Square

Completing the square converts ax²+bx+c to vertex form a(x-h)²+k. The vertex (h,k) is at h=-b/(2a), k=c-b²/(4a). Reveals axis of symmetry and min/max directly.

Concept Fundamentals
a(x-h)² + k
Vertex form
h = -b/(2a), k = c - b²/(4a)
Vertex
x² + bx + (b/2)² = (x + b/2)²
Perfect square
x = h
Axis

Did our AI summary help? Let us know.

Vertex (h,k) gives the turning point of the parabola. Quadratic formula derives from completing the square. a > 0: minimum; a < 0: maximum.

Key quantities
a(x-h)² + k
Vertex form
Key relation
h = -b/(2a), k = c - b²/(4a)
Vertex
Key relation
x² + bx + (b/2)² = (x + b/2)²
Perfect square
Key relation
x = h
Axis
Key relation

Ready to run the numbers?

Why: Vertex form reveals the parabola's vertex, axis of symmetry, and whether it opens up or down. Essential for graphing and optimization.

How: Add and subtract (b/2)² to create a perfect square trinomial. Factor and simplify to vertex form.

Vertex (h,k) gives the turning point of the parabola.Quadratic formula derives from completing the square.

Run the calculator when you are ready.

Complete the SquareEnter coefficients a, b, c

📐 Examples — Click to Load

Coefficients: ax² + bx + c

completing_square.sh
CALCULATED
$ complete_square --a=1 --b=6 --c=5
Vertex Form
(x + 3.0000)² - 4.0000
Vertex (h, k)
(-3.00, -4.00)
Axis of Symmetry
x = -3.0000
Direction
↑ Opens up
Min/Max Value
-4.0000
Discriminant
16.00
x-Intercepts
x = -5.00, -1.00
Share:

Coefficients vs Vertex Values

Discriminant Composition

📐 Calculation Steps

RESULT
Vertex Form
(x + 3.0000)² - 4.0000
Vertex (h, k)
(-3.0000, -4.0000)
h = -b/(2a), k = c - b^{2}/(4a)
Axis of Symmetry
x = -3.0000
Direction
Opens upward
a > 0
Min/Max Value
-4.0000
Minimum
ROOTS
Discriminant
16.0000
b^{2} - 4ac
x-Intercepts
x = -5.0000, -1.0000

For educational and informational purposes only. Verify with a qualified professional.

🧮 Fascinating Math Facts

📐

Vertex (h,k) at h = -b/(2a)

Axis of symmetry: x = h

📋 Key Takeaways

  • Vertex form a(x-h)²+k reveals the vertex (h,k) and axis of symmetry x = h directly
  • • Completing the square transforms ax²+bx+c by adding (b/2a)² to create a perfect square trinomial
  • • The quadratic formula is derived by completing the square on the general quadratic
  • • When a > 0 the parabola opens up (minimum at vertex); when a < 0 it opens down (maximum)
  • • The discriminant b²-4ac determines: Δ>0 two roots, Δ=0 one root, Δ<0 no real roots

💡 Did You Know?

📐The vertex form a(x-h)²+k shows the parabola's turning point (h,k) — no solving neededSource: Algebra II
🔗Completing the square and the quadratic formula are equivalent — both solve ax²+bx+c=0Source: Algebra
🚀Projectile motion h=-16t²+vt+h₀ uses vertex form to find max height and time to peakSource: Physics
📊Profit = -ax²+bx+c has maximum at the vertex — completing the square finds optimal priceSource: Business
📏The axis of symmetry x=-b/(2a) splits the parabola into mirror halvesSource: Geometry
🧮Perfect square trinomials x²+2px+p² = (x+p)² are the key to completing the squareSource: Factoring

📖 How Completing the Square Works

To convert ax²+bx+c to vertex form: (1) Factor out a if a≠1. (2) Take half of the x-coefficient, square it. (3) Add and subtract that value inside the parentheses. (4) The first three terms become a perfect square (x + b/2a)². (5) Simplify the constant.

Example: x²+6x+5

x²+6x+5 = x²+6x+9 - 9+5 = (x+3)² - 4. Vertex: (-3, -4). Axis: x = -3.

Connection to Quadratic Formula

Solving ax²+bx+c=0 by completing the square yields x = (-b ± √(b²-4ac))/(2a) — the quadratic formula.

📝 Worked Example: 2x²-8x+3

Step 1: Factor out a=2: 2(x² - 4x) + 3

Step 2: Take half of -4: (-4/2) = -2. Square it: (-2)² = 4.

Step 3: Add and subtract 4 inside: 2(x² - 4x + 4 - 4) + 3 = 2((x-2)² - 4) + 3

Step 4: Distribute: 2(x-2)² - 8 + 3 = 2(x-2)² - 5

Step 5: Vertex form: 2(x-2)² - 5. Vertex: (2, -5). Axis: x = 2.

🚀 Real-World Applications

Projectile Motion

Height h = -16t² + vt + h₀. Vertex gives max height and time to reach it. Critical for physics and sports.

Profit Optimization

Profit = -ax² + bx + c. Vertex = optimal price or quantity. Used in business and economics.

Engineering & Design

Parabolic arches, antenna reflectors, and suspension bridges use vertex form for structural analysis.

⚠️ Common Mistakes to Avoid

  • Forgetting to add AND subtract (b/2a)² — you must add it to complete the square and subtract to keep the equation balanced.
  • When a≠1, only add (b/2a)² inside the parentheses — the value to add is (b/(2a))², not (b/2)².
  • Sign errors: h = -b/(2a), so when b is negative, h is positive. Double-check vertex coordinates.
  • Confusing vertex form a(x-h)²+k: the vertex is (h,k), so (x-3)² means h=3, not h=-3.

🎯 Expert Tips

💡 Vertex from Formula

h = -b/(2a), k = f(h). No need to complete the square if you only need the vertex.

💡 When a≠1

Factor out a first. Complete the square on x²+(b/a)x, then multiply back by a.

💡 Geometric View

(b/2)² is the area of a square that "completes" the rectangle to a perfect square.

💡 Check Discriminant First

If Δ<0, no real x-intercepts. If Δ=0, vertex lies on the x-axis.

📊 Reference: Vertex Form

FormFormula
Standardax² + bx + c
Vertexa(x - h)² + k
Vertex (h,k)h = -b/(2a), k = c - b²/(4a)
Axis of Symmetryx = h

⚖️ When to Use Completing the Square vs Quadratic Formula

Use Completing the SquareUse Quadratic Formula
Need vertex form for graphingOnly need roots/solutions
Deriving formulas or proofsQuick numerical solution
Understanding the processa, b, c are messy decimals
Converting to vertex for optimizationStandard form already given

❓ FAQ

What is completing the square?

An algebraic technique to convert ax²+bx+c into vertex form a(x-h)²+k by adding (b/2a)² to create a perfect square trinomial.

Why use vertex form?

Vertex form reveals the vertex (h,k) and axis of symmetry x=h directly, making graphing and optimization easier.

How does completing the square relate to the quadratic formula?

The quadratic formula is derived by completing the square on the general equation ax²+bx+c=0.

When does a parabola have no real roots?

When the discriminant b²-4ac < 0, the parabola does not cross the x-axis.

How do I complete the square when a≠1?

Factor out a first: a(x² + (b/a)x) + c. Complete the square on the expression in parentheses, then simplify.

What is the axis of symmetry?

The vertical line x = -b/(2a) that passes through the vertex. The parabola is symmetric about this line.

🔢 Discriminant Quick Guide

Δ = b² - 4ac determines the number of real roots: Δ > 0 → two distinct roots; Δ = 0 → one repeated root (vertex on x-axis); Δ < 0 → no real roots (parabola does not cross x-axis). The discriminant also appears under the square root in the quadratic formula.

📐 Quick Reference

h
Vertex x = -b/2a
k
Vertex y = f(h)
Δ
Discriminant b²-4ac
a
Direction (up/down)

📚 Derivation of the Quadratic Formula

Starting from ax²+bx+c=0: (1) Divide by a: x²+(b/a)x+(c/a)=0. (2) Move constant: x²+(b/a)x = -c/a. (3) Add (b/2a)²: x²+(b/a)x+(b/2a)² = -c/a+(b/2a)². (4) Left side is (x+b/2a)². (5) Take square root: x+b/2a = ±√(b²-4ac)/(2a). (6) Solve: x = (-b±√(b²-4ac))/(2a). This is the quadratic formula.

🎓 Practice Problems (Try in Calculator)

x²+4x+3 → Vertex (-2,-1)
x²-6x+9 → Perfect square (x-3)²
3x²+12x+5 → a≠1 case
-x²+4x-1 → Opens down, max at (2,3)

📌 Summary

Completing the square transforms any quadratic into vertex form, revealing the vertex (h,k) and axis of symmetry. It connects algebra to geometry, underlies the quadratic formula, and is essential for graphing parabolas, solving optimization problems, and understanding projectile motion. Master this technique for success in algebra, pre-calculus, and beyond.

Key formulas to remember: h = -b/(2a) for the vertex x-coordinate, k = c - b²/(4a) for the y-coordinate, and Δ = b² - 4ac for the discriminant. The vertex form a(x-h)²+k makes graphing straightforward: start at (h,k) and use a to determine width and direction.

✅ Verification Tip

To verify your vertex form, expand a(x-h)²+k and check it equals ax²+bx+c. Alternatively, substitute x=h into the original equation — you should get y=k. This quick check catches sign errors and arithmetic mistakes.

Use this calculator to practice with the six built-in examples, from basic x²+6x+5 to projectile motion and optimization problems. Each example loads with one click.

🔗 Next Steps

After mastering completing the square, explore the Quadratic Formula Calculator for direct root-finding, or the Box Method Calculator for polynomial multiplication.

⚠️ Disclaimer: This calculator converts quadratics to vertex form and finds key properties. For equations with no real roots, x-intercepts are reported as "No real roots." Educational use only.

👈 START HERE
⬅️Jump in and explore the concept!
AI

Related Calculators