Math Calculators, Lessons and Formulas

It is time to solve your math problem

mathportal.org

This calculator solves quadratic equations by completing the square or by using quadratic formula. It displays the work process and the detailed explanation. Every step will be explained in detail.

Solve equations of the form $ax^2 + bx + c = 0$
show help ↓↓ examples ↓↓
 Solve by completing the square (default) Solve by using quadratic formula
Find approximate solution
working...
examples
example 1:ex 1:
Solve for $x$:     $x^2 + 3x - 4 = 0$
example 2:ex 2:
Solve $4x^2 - x - 3 = 0$ by completing the square.
example 3:ex 3:
Solve $-2x^2 - 0.5x + 0.75 = 0$ using the quadratic formula.
example 4:ex 4:
Solve for $x$:     $$\frac{2}{3} x^2 - \frac{1}{3} x - 5 = 0$$.

## How to solve quadratic equation ?

A general quadratic equation can be written in the form $ax^2 + bx + c = 0$. This calculator solves quadratic equation using two methods.

### Method 1: Use the Quadratic Formula

When $a \ne 0$ , there are two solutions to $ax^2 + bx + c = 0$ and they are

$$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.$$

The formula can be used to solve any quadratic equation.

Example:

Solve equation $2x^2 + 7x - 15 = 0$ using the quadratic formula.

Solution:

Here we have : $a = 2 ~ b = 7 ~ c = -15$

$$x_{1,2} = \frac{ -b \pm \sqrt{b^2-4 a c} }{2a}$$
$$x_{1,2} = \frac{ -7 \pm \sqrt{7^2 - 4\cdot 2\cdot(-15)}}{2\cdot2}$$
$$x_{1,2} = \frac{ -7 \pm \sqrt{49 + 120}} {4}$$
$$x_{1,2} = \frac{ -7 \pm \sqrt{169}} {4}$$
$$x_{1,2} = \frac{ -7 \pm 13} {4}$$
 To calculate first solution we use "+" sign: To calculate second solution we use "-" sign: $$x_{1} = \frac{-7 + 13} {4}$$ $$x_{1} = \frac{6}{4}$$ $$x_{1} = \frac{3}{2}$$ $$x_{2} = \frac{-7 - 13} {4}$$ $$x_{2} = \frac{-20} {4}$$ $$x_{2} = -5$$

Exercise:

Solve equation 3x2 + 2x - 5 = 0. ( Use above calculator to check your solution. )

### Method 2: Completing the square

The best way to learn this method is by using an example.

Example:

Solve equation 2x2 + 7x - 15 = 0 by completing the square.

Solution:

 $$2x^2 + 7x - 15 = 0$$ $$2x^2 + 7x - 15 = 0 / : 2$$ $$x^2 + \frac{7}{2}x - \frac{15}{2} = 0$$ Step1: Divide all terms by the coefficient of x2. $$x^2 + \frac{7}{2}x = \frac{15}{2}$$ Step 2: Keep all terms containing x on one side. Move the constant to the right. $$x^2 + \frac{7}{2}x + {\left(\frac{7}{4}\right)}^2= \frac{15}{2}+{\left(\frac{7}{4}\right)}^2$$ Step 3: Take half of the x-term coefficient and square it. Add this value to both sides. $$x^2 + \frac{7}{2}x + {\left(\frac{7}{4}\right)}^2= \frac{169}{16}$$ Step 4: Simplify right side. $${\left(x + \frac{7}{4}\right)}^2= \frac{169}{16}$$ Step 5: Write the perfect square on the left. $$x + \frac{7}{4}= \pm\sqrt{\frac{169}{16}}$$ $$x + \frac{7}{4}= \pm\frac{13}{4}$$ Step 6: Take the square root on both sides of the equation. $$x_1 = - \frac{7}{4} + \frac{13}{4} = \frac{3}{2}$$ $$x_2 = - \frac{7}{4} - \frac{13}{4} = -5$$ Step 7: Solve for x.

Exercise:

Solve equation x2 - 4x + 3 = 0. ( Use above calculator to check your solution. )

Quick Calculator Search