Difference between revisions of "Quadratic formula"
(→General Solution For A Quadratic by Completing the Square) |
Erics son07 (talk | contribs) (→General Solution For A Quadratic by Completing the Square) |
||
Line 2: | Line 2: | ||
===General Solution For A Quadratic by Completing the Square=== | ===General Solution For A Quadratic by Completing the Square=== | ||
− | + | We start with | |
− | <cmath>ax^2+bx= | + | <cmath>ax^{2}+bx+c=0</cmath> |
− | + | Divide by <math>a</math>: | |
− | <cmath>x^2+\frac{b}{a}x+ | + | <cmath>x^{2}+\frac{b}{a}x+\frac{c}{a}=0</cmath> |
− | + | Add <math>\frac{b^{2}}{4a^{2}}</math> to both sides in order to complete the square: | |
− | <cmath>\left(x+\frac{b}{ | + | <cmath>\left(x^{2}+\frac{b}{a}x+\frac{b^{2}}{4a^{2}}\right)+\frac{c}{a}=\frac{b^{2}}{4a^{2}}</cmath> |
− | + | Complete the square: | |
− | <cmath> | + | <cmath>\left(x+\frac{b}{2a}\right)^{2}+\frac{c}{a}=\frac{b^{2}}{4a^{2}}</cmath> |
− | + | Move <math>\frac{c}{a}</math> to the other side: | |
+ | |||
+ | <cmath>\left(x+\frac{b}{2a}\right)^{2}=\frac{b^{2}}{4a^{2}}-\frac{c}{a}=\frac{ab^{2}-4a^{2}c}{4a^{3}}=\frac{b^{2}-4ac}{4a^{2}}</cmath> | ||
+ | |||
+ | Take the square root of both sides: | ||
+ | |||
+ | <cmath>x+\frac{b}{2a}=\pm\sqrt{\frac{b^{2}-4ac}{4a^{2}}}=\frac{\pm\sqrt{b^{2}-4ac}}{2a}</cmath> | ||
+ | |||
+ | Finally, move the <math>\frac{b}{2a}</math> to the other side: | ||
+ | |||
+ | <cmath>x=-\frac{b}{2a}+\frac{\pm\sqrt{b^{2}-4ac}}{2a}=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}</cmath> | ||
+ | |||
+ | This is the quadratic formula, and we are done. | ||
=== Variation === | === Variation === |
Revision as of 04:38, 29 June 2022
The quadratic formula is a general expression for the solutions to a quadratic equation. It is used when other methods, such as completing the square, factoring, and square root property do not work or are too tedious.
General Solution For A Quadratic by Completing the Square
We start with
Divide by :
Add to both sides in order to complete the square:
Complete the square:
Move to the other side:
Take the square root of both sides:
Finally, move the to the other side:
This is the quadratic formula, and we are done.
Variation
In some situations, it is preferable to use this variation of the quadratic formula: