So everyone knows that when $ax^2+bx+c=0$,$$x = \dfrac{-b\pm\sqrt{b^2-4ac}}{2a}.$$ But why does it equal this? I learned this in maths not 2 weeks ago and it makes no sense to me
Derivation of the quadratic equation
1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 5 best solutions below
On
$ax^2+bx+c = a(x^2+\frac{bx}{a}+\frac{c}{a})=a((x+\frac{b}{2a})^2+\frac{c}{a}-\frac{b^2}{4a^2})$
Equate this to zero
NOTE: $a\neq0, $ if it is then the equation will not be quadratic.
you get $(x+\frac{b}{2a})^2=\frac{b^2}{4a^2}-\frac{4ac}{4a^2}$
which gives the desired $$x = \dfrac{-b\pm\sqrt{b^2-4ac}}{2a}.$$
On
Modern texts tell you how to find the roots by completing the square. It makes a nice proof but a terrible derivation. This is how the quadratic equation is found from a more reasoned and historical point of view.
Multiplying $f(x)$ by a constant does not change the location of the roots. So feel free to divide $ax^2 + bx + c$ through by $a$ and forget that you did it.
You should know how to shift equations to the left and right. $f(x - k)$ is $f$ shifted to the right $k$ amount.
You should know the sum of the roots of any polynomial just by looking at it. For a polynomial with the first coefficient being 1, The second coefficient (in this case b) is the (negative) sum of the roots, the last coefficient is the product.
Shift the polynomial to the right so that the roots are equidistant from the y axis. How to do this? Shift the polynomial left by the average of the roots, or $-b/2$. The is the same as finding $g(x) = f(x - b/2)$. Now it is easy to find the roots of $g(x)$. Then just remember to shift the roots back to the right by substracting $b/2$ from your final answer.
On
For a lot of ways to solve quadratic equations, see Pat Ballew's manuscript Solving Quadratic Equations.
Here's a way to get the quadratic formula if you partially remember it. (I don't know off-hand if this is one of the methods in Pat Ballew's list.)
We remember that the quadratic formula gives us results that can be put into the form $A \pm \sqrt{B}.$ Note that we don't need to incorporate a constant factor with the square root, since we can bring the square of any such factor inside the square root: $7\sqrt{3}$ is equal to $\sqrt{7^2 \cdot 3}.$
Thus, we know the answer will be
$$x \; = \; A \pm \sqrt{B}$$
Isolating the radical and squaring gives:
$$(x - A)^2 \; = \; \left( \pm \sqrt{B} \right)^2$$
$$(x - A)^2 \; = \; B$$
$$(x - A)^2 - B \; = \; 0$$
$$ x^2 - 2Ax + (A^2 - B) \; = \; 0 $$
Now let's solve $x^2 + bx + c = 0.$ [By dividing through by the coefficient of $x^2,$ we may assume the coefficient of $x^2$ is $1.]$
Comparing the coefficients of $x^2 + bx + c = 0$ with the coefficients of the last displayed equation, we see that $x = A \pm \sqrt{B},$ where $-2A = b$ and $(A^2 - B) = c.$ Solving for $A$ and $B,$ we get $A = -\frac{b}{2}$ and $B = \frac{b^2}{4} - c,$ and now we have the solution for $x$ in terms of the equation's coefficients $b$ and $c.$
On
Maybe we don't know that we should create a term that can be squared. But we do know that it would be easy to solve if we eliminate the $x$ term. We can use substitution of variables to eliminate it.
$ax^2+bx+c=0$
$x=y+d$
$a(y^2+2dy+d^2)+b(y+d)+c=0$
$ay^2+ad^2+(2ad+b)y+bd+c=0$
We want: $2ad+b=0$
$d=-\frac{b}{2a}$
$x=y-\frac{b}{2a}$
Substitute for $x$ in the original:
$a(y-\frac{b}{2a})^2+b(y-\frac{b}{2a})+c=0$
$ay^2-by+\frac{b^2}{4a}+by-\frac{b^2}{2a}+c=0$
$ay^2-\frac{b^2}{4a}+\frac{4ac}{4a}=0$
$y^2=\frac{b^2}{4a^2}-\frac{4ac}{4a^2}$
$y=\pm\frac{\sqrt{b^2-4ac}}{2a}$
Substitute for $y$ in $x=y-\frac{b}{2a}$:
$x=\pm\frac{\sqrt{b^2-4ac}}{2a}-\frac{b}{2a}$
$\therefore x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$
$ax^2+bx+c=0 (a\neq0)$
$x^2+\frac{b}{a}x+\frac{c}{a}=0$
$x^2+\frac{b}{a}x=-\frac{c}{a}$
$x^2+\frac{b}{a}x+\frac{b^2}{4a^2}=-\frac{c}{a}+\frac{b^2}{4a^2}$
$(x+\frac{b}{2a})^2=\frac{b^2-4ac}{4a^2}$
$(x+\frac{b}{2a})=\pm\frac{\sqrt{b^2-4ac}}{\sqrt{4a^2}}$
$\therefore x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$