Complete the square

Rewrites an expression or equation by completing the square.

Syntax

completeSquare(Expression, Variable)
completeSquare(Equation, Variable)
completeSquare(Expression, Variable^Power)
completeSquare(Equation, Variable^Power)
completeSquare(Expression, Variable1, Variable2, ...)
completeSquare(Equation, Variable1, Variable2, ...)

Examples

Solving a quadratic equation step by step

With CAS, calculations can be done step by step, helping to develop your own thinking. You can use ans to refer to the previous equation or copy it. Make sure to enclose the entire equation in parentheses.