Completing the Square Solver
Rewrites ax² + bx + c as a(x - h)² + k with every step, solves the equation from the square, gives exact and decimal roots and draws the parabola.
Chạy trong trình duyệt của bạn. Tệp không bao giờ rời khỏi thiết bị. Xem cách tự kiểm tra
…
Cách thực hiện
- 1Enter the quadratic
Type it, for example 2x^2 - 8x + 3, or press an example.
- 2Read vertex form
The boxes show the vertex form, turning point and roots.
- 3Follow the steps
Each step shows taking out a, halving and squaring, and simplifying.
- 4Look at the graph
The parabola marks the turning point, roots, axis and y-intercept.
- 5Practise
Practice asks you to complete the square on new quadratics at two levels.
- 6Save or print
Save keeps the quadratic; Print / PDF gives a copy of the steps.
Giới thiệu công cụ này
Completing the square turns a quadratic into vertex form a(x - h)² + k, which shows the turning point at a glance and leads directly to the roots. It is also how the quadratic formula is derived and how circles and other conics are put into standard form. This solver takes any quadratic, including ones with a ≠ 1, negative a or fractional coefficients, and writes out each step: take a out of the x terms, halve the coefficient of x and square it, add and subtract that square inside the bracket, write the perfect square and simplify the constants. It then solves a(x - h)² + k = 0 by square roots, giving the roots exactly as h ± √(…) and as decimals, or the complex roots when the square would have to be negative. The parabola is drawn with the turning point, roots, axis of symmetry and y-intercept marked, and a practice mode asks you to complete the square on fresh quadratics.
Why it works
(x + p)² = x² + 2px + p². So x² + bx is the start of a perfect square with p = b/2, missing only p² = (b/2)². Adding (b/2)² completes the square, and subtracting the same amount keeps the expression equal to what it was.
When a is not 1
Factor a out of the x² and x terms first: 2x² - 8x + 3 = 2(x² - 4x) + 3. Complete the square inside the bracket, then multiply the subtracted square by a when it comes out: 2((x - 2)² - 4) + 3 = 2(x - 2)² - 5.
Reading vertex form
In a(x - h)² + k the turning point is (h, k) and the axis of symmetry is x = h. If a > 0 the parabola opens up and k is the minimum value; if a < 0 it opens down and k is the maximum. Setting the expression to zero gives (x - h)² = -k/a, which has real solutions only when -k/a ≥ 0.
Worked example
2x² - 8x + 3 = 2(x² - 4x) + 3 = 2(x² - 4x + 4 - 4) + 3 = 2(x - 2)² - 5. The minimum point is (2, -5). Solving 2(x - 2)² = 5 gives x = 2 ± √(5/2) ≈ 0.418861 or 3.581139.
Limits
The input must be a quadratic in x with numeric coefficients. Coefficients with letters, such as completing the square on ax² + bx + c in general, are not handled symbolically. Decimal coefficients are shown as fractions where possible, which can look long. Use the steps to learn the method and still show your own working.
Ví dụ có lời giải
2x² - 8x + 3 = 2(x - 2)² - 5: turning point (2, -5), roots 2 ± √(5/2) ≈ 0.4189 and 3.5811.
Tóm tắt
- Danh mục: Toán và khoa học
- Chạy trong trình duyệt, không đăng ký, không tải lên.
- Thông tin bạn nhập ở lại trên thiết bị.
- Có bằng tiếng Anh.
- Nội dung được rà soát lần cuối:
- Nguồn chính thức: OpenStax Intermediate Algebra 2e, section 9.2: solve quadratic equations by completing the square
Câu hỏi thường gặp
What is vertex form?
a(x - h)² + k. It shows the turning point (h, k), the axis of symmetry x = h and whether the graph opens up or down.
What number do I add to complete the square?
Half the coefficient of x, squared, after taking out a. For x² - 4x that is (-4/2)² = 4.
How do I handle a ≠ 1?
Factor a out of the x² and x terms, complete the square inside the bracket, and multiply the subtracted square by a.
What if there are no real roots?
Then (x - h)² would have to equal a negative number. The tool reports the complex roots h ± (…)i instead.
Is this the same as the quadratic formula?
Yes in result. The quadratic formula is what you get by completing the square on ax² + bx + c with letters.
Can I practise?
Practice gives quadratics with whole-number turning points; type the answer as a(x - h)^2 + k.
