Professional Documents
Culture Documents
The quadratic formula for the roots of the general quadratic equation
In algebra, a quadratic equation (from the Latin quadratus for "square") is any equation having the
form
where x represents an unknown, and a, b, and c represent known numbers such that a is not
equal to 0. If a = 0, then the equation is linear, not quadratic. The numbers a, b, and c are
the coefficients of the equation, and may be distinguished by calling them, respectively,
the quadratic coefficient, the linear coefficient and the constant or free term.
[1]
Because the quadratic equation involves only one unknown, it is called "univariate". The
quadratic equation only contains powers of x that are non-negative integers, and therefore it is
a polynomial equation, and in particular it is a second degree polynomial equation since the
greatest power is two.
Quadratic equations can be solved by a process known in American English as factoring and in
other varieties of English as factorising, by completing the square, by using the quadratic
formula, or by graphing. Solutions to problems equivalent to the quadratic equation were known
as early as 2000 BC.
Contents
[hide]
Figure 1. Plots of quadratic function y = ax2 + bx + c, varying each coefficient separately while the other coefficients are fixed (at
values a = 1, b = 0, c = 0)
A quadratic equation with real or complex coefficients has two solutions, called roots. These two
solutions may or may not be distinct, and they may or may not be real.
Factoring by inspection[edit]
It may be possible to express a quadratic equation ax2 + bx + c = 0 as a product (px + q)(rx + s) = 0. In
some cases, it is possible, by simple inspection, to determine values of p, q, r, and s that make
the two forms equivalent to one another. If the quadratic equation is written in the second form,
then the "Zero Factor Property" states that the quadratic equation is satisfied if px + q =
0 or rx + s = 0. Solving these two linear equations provides the roots of the quadratic.
For most students, factoring by inspection is the first method of solving quadratic equations to
which they are exposed. If one is given a quadratic equation in the form x2 + bx + c = 0, the
[2]:202–207
sought factorization has the form (x + q)(x + s), and one has to find two numbers q and s that add
up to b and whose product is c (this is sometimes called "Vieta's rule" and is related to Vieta's [3]
formulas). As an example, x2 + 5x + 6 factors as (x + 3)(x + 2). The more general case where a does
not equal 1 can require a considerable effort in trial and error guess-and-check, assuming that it
can be factored at all by inspection.
Except for special cases such as where b = 0 or c = 0, factoring by inspection only works for
quadratic equations that have rational roots. This means that the great majority of quadratic
equations that arise in practical applications cannot be solved by factoring by inspection. [2]:207
The process of completing the square makes use of the algebraic identity
which represents a well-defined algorithm that can be used to solve any quadratic
equation. Starting with a quadratic equation in standard form, ax2 + bx + c = 0
[2]:207
needed]
where if and otherwise.
Reduced quadratic equation[edit]
It is sometimes convenient to reduce a quadratic
equation so that its leading coefficient is one. This
is done by dividing both sides by a, which is
always possible since a is non-zero. This produces
the reduced quadratic equation: [8]
or equivalently:
Discriminant[edit]
A quadratic equation
with real coefficients can have
either one or two distinct real
roots, or two distinct complex
roots. In this case the discriminant
determines the number and
nature of the roots. There are
three cases:
both of which are real numbers. For quadratic equations with rational coefficients, if the
discriminant is a square number, then the roots are rational—in other cases they may
be quadratic irrationals.
If the discriminant is
zero, then there is
exactly one real root
If the
discriminant
is negative,
then there
are no real
roots. Rather,
there are two
distinct (non-
real) complex
roots[10]
which are complex conjugates of each other. In these expressions i is the imaginary unit.
Thus the
roots are
distinct if
and only
if the
discrimin
ant is
non-zero,
and the
roots are
real if
and only
if the
discrimin
ant is
non-
negative.
Geome
tric
interpr
etation[
edit]
Graph
of y = ax
2
+ bx +
c,
where a
and the
discrimin
ant b2 −
4ac are
positive,
with
Ro
ots
an
y-
int
er
ce
pt
in
re
d
Ve
rte
an
axi
of
sy
etr
in
blu
Fo
cu
an
dir
ect
rix
in
pin
k
Visualisa
tion of
the
complex
roots
of y = ax
2
+ bx +
c: the
parabola
is rotated
180°
about its
vertex
(orange).
Its x-
intercept
s are
rotated
90°
around
their
mid-
point,
and the
Cartesia
n plane
is
interpret
ed as the
complex
plane
(green).[1
1]
The
function f(
x)
= ax2 + bx
+ c is
the quadr
atic
function. [12
]
The
graph of
any
quadratic
function
has the
same
general
shape,
which is
called
a parabol
a. The
location
and size
of the
parabola,
and how
it opens,
depend
on the
values
of a, b,
and c. As
shown in
Figure 1,
if a > 0,
the
parabola
has a
minimum
point and
opens
upward.
If a < 0,
the
parabola
has a
maximum
point and
opens
downwar
d. The
extreme
point of
the
parabola,
whether
minimum
or
maximum
,
correspo
nds to
its vertex.
The x-
coordinat
e of the
vertex
will be
located
at ,
and
the y-
coordinat
e of the
vertex
may be
found by
substituti
ng this x-
value into
the
function.
The y-
intercept i
s located
at the
point (0, c
).
The
solutions
of the
quadratic
equation
ax2 + bx + c
=
0 corresp
ond to
the roots
of the
function f(
x)
= ax2 + bx
+ c, since
they are
the
values
of x for
which f(x)
= 0. As
shown in
Figure 2,
if a, b,
and c are
real
numbers
and
the doma
in of f is
the set of
real
numbers,
then the
roots
of f are
exactly
the x-
coordinat
es of the
points
where
the graph
touches
the x-
axis. As
shown in
Figure 3,
if the
discrimin
ant is
positive,
the graph
touches
the x-
axis at
two
points; if
zero, the
graph
touches
at one
point;
and if
negative,
the graph
does not
touch
the x-
axis.
Quadra
tic
factoriz
ation[e
dit]
The term
is a
factor
of the
polyn
omial
if
a
n
d
o
n
l
y
if
r
i
s
a
r
o
o
t
o
f
t
h
e
q
u
a
d
r
a
ti
c
e
q
u
a
ti
o
n
I
t
f
o
l
l
o
w
s
f
r
o
m
t
h
e
q
u
a
d
r
a
t
i
c
f
o
r
m
u
l
a
t
h
a
t
I
n
t
h
e
s
p
e
c
i
a
l
c
a
s
e
b
2
4
a
c
w
h
e
r
e
t
h
e
q
u
a
d
r
a
t
i
c
h
a
s
o
n
l
y
o
n
e
d
i
s
t
i
n
c
t
r
o
o
t
(
i
.
e
.
t
h
e
d
i
s
c
r
i
m
i
n
a
n
t
i
s
z
e
r
o
)
,
t
h
e
q
u
a
d
r
a
t
i
c
p
o
l
y
n
o
m
i
a
l
c
a
n
b
e
f
a
c
t
o
r
e
d
a
s
G
r
a
p
h
i
n
g
f
o
r
r
e
a
l
r
o
o
t
s
[
e
d
i
t
]
i
g
o
n
r
a
2
x
2
4
x
u
g
i
c
e
d
x
c
r
a
F
o
r
m
o
s
t
o
f
t
h
e
2
0
t
h
c
e
n
t
u
r
y
,
g
r
a
p
h
i
n
g
w
a
s
r
a
r
e
l
y
m
e
n
t
i
o
n
e
d
a
s
m
e
t
h
o
d
f
o
r
s
o
l
v
i
n
g
q
u
a
d
r
a
t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
i
s
a
l
g
o
r
i
t
h
m
a
s
f
a
r
b
a
c
k
a
s
t
h
e
T
h
i
r
d
D
y
n
a
s
t
y
o
f
U
r
.
[
1
5
]
I
n
m
o
d
e
r
n
n
o
t
a
t
i
o
n
,
t
h
e
p
r
o
b
l
e
m
s
t
y
p
i
c
a
l
l
y
i
n
v
o
l
v
e
d
s
o
l
v
i
n
g
p
a
i
r
o
f
s
i
m
u
l
t
a
n
e
o
u
s
e
q
u
a
t
i
o
n
s
o
f
t
h
e
f
o
r
m
:
w
h
i
c
h
a
r
e
e
q
u
i
v
a
l
e
n
t
t
o
t
h
e
e
q
u
a
t
i
o
n
:
[
1
6
]
:
8
6
To illustrate, let us assume we had available seven-place logarithm and trigonometric tables,
and wished to solve the following to six-significant-figure accuracy: