Completing the Square Calculator
Enter a quadratic expression with one or two variables (x, y) to complete the square and see the step-by-step procedure.
Quick Examples
Instructions for Use
This online completing the square calculator is an algebraic tool designed to transform any quadratic expression, whether it has one or two variables (x and y). In addition to providing the exact final result, the solver generates the step-by-step analytical process to help you understand the underlying mathematical procedure.
Using the tool is simple through a single input field:
- Entering the expression: Type your polynomial expression (for example, 2x2 + 3x + 5) into the text box. The expression does not need to be arranged or simplified beforehand; the algebraic program will automatically group like terms. The system is flexible and accepts all types of coefficients: integers, decimals, fractions (rational numbers), and irrational values (like roots).
- Main result: When processing your input, the tool will display a highlighted box with the equivalent expression after completing the square. The solver works with exact precision; this means it will respect and preserve fractions and roots in their original symbolic form, avoiding any loss of information due to decimal rounding.
- Step-by-step solution: Just below the direct answer, a detailed explanation of the exercise will be displayed. You will be able to clearly see how the terms are grouped, and how the specific value needed to build a perfect square trinomial is calculated and introduced (by adding and subtracting it). Finally, the process will show you how that trinomial is factored to rewrite it as a binomial squared and how the remaining constant terms are simplified to arrive at the final expression.
Solved Exercises
The following are examples of problems solved by the calculator.
Complete the square for the expression x2 + 6x + 5.
Result
Step-by-step solution
1. Identify the expression.
The expression we will work with is:
2. Prepare to complete the square.
We want to rewrite the expression to form a perfect square trinomial. To do this, we take half of the linear term's coefficient, square it, and then add and subtract that value so as not to change the original expression:
3. Factor and simplify.
We group the first three terms, which now form the perfect square trinomial \( x^2 \pm 2ax + a^2 \), and rewrite them as a binomial squared \( (x \pm a)^2 \).
We simplify the constant terms:
Complete the square for 2x2 + 3x + 6.
Result
Step-by-step solution
1. Identify the expression.
The expression we will work with is:
2. Factor out the leading coefficient.
We factor out the leading coefficient, applying it only to the terms containing the variable. We keep the constant term outside the parentheses:
3. Prepare to complete the square.
We want to rewrite the expression to form a perfect square trinomial. To do this, we take half of the linear term's coefficient, square it, and then add and subtract that value so as not to change the original expression:
4. Factor and simplify.
We group the first three terms, which now form the perfect square trinomial \( x^2 \pm 2ax + a^2 \), and rewrite them as a binomial squared \( (x \pm a)^2 \).
5. Distribute and simplify.
We distribute the factor outside the parentheses and simplify:
Complete the perfect square trinomial in the expression -5x2 + 4x - 8.
Result
Step-by-step solution
1. Identify the expression.
The expression we will work with is:
2. Factor out the leading coefficient.
We factor out the leading coefficient, applying it only to the terms containing the variable. We keep the constant term outside the parentheses:
3. Prepare to complete the square.
We want to rewrite the expression to form a perfect square trinomial. To do this, we take half of the linear term's coefficient, square it, and then add and subtract that value so as not to change the original expression:
4. Factor and simplify.
We group the first three terms, which now form the perfect square trinomial \( x^2 \pm 2ax + a^2 \), and rewrite them as a binomial squared \( (x \pm a)^2 \).
5. Distribute and simplify.
We distribute the factor outside the parentheses and simplify:
Rewrite by completing the squares in the two-variable formula x2 + y2 - 4x + 6y - 12.
Result
Step-by-step solution
1. Identify the expression.
The expression we will work with is:
2. Identify and group by variables.
The expression contains multiple variables. We group the terms corresponding to each variable in parentheses to work with them independently:
3. Prepare to complete the squares.
We want to rewrite each group to form perfect square trinomials. To do this, we take half of the linear term's coefficient, square it, and then add and subtract that value within its respective group so as not to change the original expression:
4. Factor the groups.
We group the first three terms for each variable, which now form perfect square trinomials \( v^2 \pm 2av + a^2 \), and rewrite them as binomials squared \( (v \pm a)^2 \).
5. Simplify.
We remove the outer grouping parentheses and add the remaining constant terms:
