In mathematics, a quadratic polynomial is a polynomial of degree two in one or more variables. A quadratic function is the polynomial function defined by a quadratic polynomial. Before the 20th century, the distinction was unclear between a polynomial and its associated polynomial function; so "quadratic polynomial" and "quadratic function" were almost synonymous. This is still the case in many elementary courses, where both terms are often abbreviated as "quadratic".
For example, a univariate (single-variable) quadratic function has the form[1]
f(x)=ax2+bx+c, a\ne0,
If a quadratic function is equated with zero, then the result is a quadratic equation. The solutions of a quadratic equation are the zeros of the corresponding quadratic function.
The bivariate case in terms of variables and has the form
f(x,y)=ax2+bxy+cy2+dx+ey+f,
A quadratic function in three variables,, and contains exclusively terms,,,, and a constant:
f(x,y,z)=ax2+by2+cz2+dxy+exz+fyz+gx+hy+iz+j,
where at least one of the coefficients of the second-degree terms is not zero.
A quadratic function can have an arbitrarily large number of variables. The set of its zero form a quadric, which is a surface in the case of three variables and a hypersurface in general case.
The adjective quadratic comes from the Latin word quadrātum ("square"). A term raised to the second power like is called a square in algebra because it is the area of a square with side .
The coefficients of a quadratic function are often taken to be real or complex numbers, but they may be taken in any ring, in which case the domain and the codomain are this ring (see polynomial evaluation).
When using the term "quadratic polynomial", authors sometimes mean "having degree exactly 2", and sometimes "having degree at most 2". If the degree is less than 2, this may be called a "degenerate case". Usually the context will establish which of the two is meant.
Sometimes the word "order" is used with the meaning of "degree", e.g. a second-order polynomial. However, where the "degree of a polynomial" refers to the largest degree of a non-zero term of the polynomial, more typically "order" refers to the lowest degree of a non-zero term of a power series.
A quadratic polynomial may involve a single variable x (the univariate case), or multiple variables such as x, y, and z (the multivariate case).
Any single-variable quadratic polynomial may be written as
ax2+bx+c,
ax2+bx+c=0.
Any quadratic polynomial with two variables may be written as
ax2+by2+cxy+dx+ey+f,
Quadratic polynomials that have only terms of degree two are called quadratic forms.
A univariate quadratic function can be expressed in three formats:[2]
f(x)=ax2+bx+c
f(x)=a(x-r1)(x-r2)
f(x)=a(x-h)2+k
The coefficient is the same value in all three forms. To convert the standard form to factored form, one needs only the quadratic formula to determine the two roots and . To convert the standard form to vertex form, one needs a process called completing the square. To convert the factored form (or vertex form) to standard form, one needs to multiply, expand and/or distribute the factors.
Regardless of the format, the graph of a univariate quadratic function
f(x)=ax2+bx+c
y=ax2+bx+c
The coefficient controls the degree of curvature of the graph; a larger magnitude of gives the graph a more closed (sharply curved) appearance.
The coefficients and together control the location of the axis of symmetry of the parabola (also the -coordinate of the vertex and the h parameter in the vertex form) which is at
x=-
b | |
2a |
.
The coefficient controls the height of the parabola; more specifically, it is the height of the parabola where it intercepts the -axis.
The vertex of a parabola is the place where it turns; hence, it is also called the turning point. If the quadratic function is in vertex form, the vertex is . Using the method of completing the square, one can turn the standard form
f(x)=ax2+bx+c
\begin{align} f(x)&=ax2+bx+c\\ &=a(x-h)2+k\\ &=a\left(x-
-b | |
2a |
\right)2+\left(c-
b2 | |
4a |
\right),\\ \end{align}
\left(- | b |
2a |
,c-
b2 | |
4a |
\right).
f(x)=a(x-r1)(x-r2)
r1+r2 | |
2 |
\left( | r1+r2 |
2 |
,f\left(
r1+r2 | |
2 |
\right)\right).
The vertex is also the maximum point if, or the minimum point if .
The vertical line
x=h=- | b |
2a |
that passes through the vertex is also the axis of symmetry of the parabola.
Using calculus, the vertex point, being a maximum or minimum of the function, can be obtained by finding the roots of the derivative:
f(x)=ax2+bx+c ⇒ f'(x)=2ax+b
x=- | b |
2a |
f(x)=a\left(-
b | |
2a |
\right)2+b\left(-
b | |
2a |
\right)+c=c-
b2 | |
4a |
,
\left(-
b | |
2a |
,c-
b2 | |
4a |
\right).
The roots (or zeros), and, of the univariate quadratic function
\begin{align} f(x)&=ax2+bx+c\ &=a(x-r1)(x-r2),\ \end{align}
are the values of for which .
When the coefficients,, and, are real or complex, the roots are
r | ||||
|
r | ||||
|
The modulus of the roots of a quadratic
ax2+bx+c
max(|a|,|b|,|c|) | |
|a| |
x \phi,
\phi
1+\sqrt{5 | |
The square root of a univariate quadratic function gives rise to one of the four conic sections, almost always either to an ellipse or to a hyperbola.
If
a>0,
y=\pm\sqrt{ax2+bx+c}
yp=ax2+bx+c.
If
a<0,
y=\pm\sqrt{ax2+bx+c}
yp=ax2+bx+c
f(x)=ax2+bx+c
One cannot always deduce the analytic form of
f(n)(x)
f(x)
f(x)
For example, for the iterative equation
f(x)=a(x-c)2+c
one has
f(x)=a(x-c)2+c=h(-1)(g(h(x))),
g(x)=ax2
h(x)=x-c.
f(n)(x)=h(-1)(g(n)(h(x)))
g(n)(x)
g(n)
2n-1 | |
(x)=a |
2n | |
x |
.
f(n)
2n-1 | |
(x)=a |
2n | |
(x-c) |
+c
as the solution.
See Topological conjugacy for more detail about the relationship between f and g. And see Complex quadratic polynomial for the chaotic behavior in the general iteration.
The logistic map
xn+1=rxn(1-xn), 0\leqx0<1
with parameter 2<r<4 can be solved in certain cases, one of which is chaotic and one of which is not. In the chaotic case r=4 the solution is
xn=\sin2(2n\theta\pi)
where the initial condition parameter
\theta
\theta=\tfrac{1}{\pi}\sin-1
1/2 | |
(x | |
0 |
)
\theta
xn
\theta
\theta
xn
The solution of the logistic map when r=2 is
xn=
1 | |
2 |
-
1 | |
2 |
2n | |
(1-2x | |
0) |
for
x0\in[0,1)
(1-2x0)\in(-1,1)
x0
2n | |
(1-2x | |
0) |
xn
\tfrac{1}{2}.
A bivariate quadratic function is a second-degree polynomial of the form
f(x,y)=Ax2+By2+Cx+Dy+Exy+F,
f(x,y)
z=0,
If
4AB-E2<0,
If
4AB-E2>0,
(xm,ym),
xm=-
2BC-DE | |
4AB-E2 |
,
ym=-
2AD-CE | |
4AB-E2 |
.
If
4AB-E2=0
DE-2CB=2AD-CE\ne0,
If
4AB-E2=0
DE-2CB=2AD-CE=0,