# Quadratic function

__: Polynomial function of degree two__

**Short description**In algebra, a **quadratic function**, a **quadratic polynomial**, a **polynomial of degree 2**, or simply a **quadratic**, is a polynomial function with one or more variables in which the highest-degree term is of the second degree.

For example, a *univariate* (single-variable) quadratic function has the form^{[1]}

- [math]\displaystyle{ f(x)=ax^2+bx+c,\quad a \ne 0 }[/math]

in the single variable *x*. The graph of a univariate quadratic function is a parabola whose axis of symmetry is parallel to the *y*-axis, as shown at right.

If the quadratic function is set equal to zero, then the result is a quadratic equation. The solutions to the univariate equation are called the roots of the univariate function.

The bivariate case in terms of variables *x* and *y* has the form

- [math]\displaystyle{ f(x,y) = a x^2 + by^2 + cx y+ d x+ ey + f \,\! }[/math]

with at least one of *a, b, c* not equal to zero, and an equation setting this function equal to zero gives rise to a conic section (a circle or other ellipse, a parabola, or a hyperbola).

A quadratic function in three variables *x*, *y,* and *z* contains exclusively terms *x*^{2}, *y*^{2}, *z*^{2}, *xy*, *xz*, *yz*, *x*, *y*, *z*, and a constant:

- [math]\displaystyle{ f(x,y,z)=ax^2+by^2+cz^2+dxy+exz+fyz+gx+hy+iz +j, }[/math]

with at least one of the coefficients *a, b, c, d, e,* or *f* of the second-degree terms being non-zero.

In general there can be an arbitrarily large number of variables, in which case the resulting surface of setting a quadratic function to zero is called a quadric, but the highest degree term must be of degree 2, such as *x*^{2}, *xy*, *yz*, etc.

## Etymology

The adjective *quadratic* comes from the Latin word *quadrātum* ("square"). A term like *x*^{2} is called a square in algebra because it is the area of a *square* with side *x*.

## Terminology

### Coefficients

The coefficients of a polynomial are often taken to be real or complex numbers, but in fact, a polynomial may be defined over any ring.

### Degree

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.

### Variables

A quadratic polynomial may involve a single variable *x* (the univariate case), or multiple variables such as *x*, *y*, and *z* (the multivariate case).

#### The one-variable case

Any single-variable quadratic polynomial may be written as

- [math]\displaystyle{ ax^2 + bx + c,\,\! }[/math]

where *x* is the variable, and *a*, *b*, and *c* represent the coefficients. In elementary algebra, such polynomials often arise in the form of a quadratic equation [math]\displaystyle{ ax^2 + bx + c = 0 }[/math]. The solutions to this equation are called the roots of the quadratic polynomial, and may be found through factorization, completing the square, graphing, Newton's method, or through the use of the quadratic formula. Each quadratic polynomial has an associated quadratic function, whose graph is a parabola.

#### Bivariate case

Any quadratic polynomial with two variables may be written as

- [math]\displaystyle{ f(x,y) = a x^2 + b y^2 + cxy + dx+ e y + f, \,\! }[/math]

where *x* and *y* are the variables and *a*, *b*, *c*, *d*, *e*, and *f* are the coefficients. Such polynomials are fundamental to the study of conic sections, which are characterized by equating the expression for *f* (*x*, *y*) to zero.
Similarly, quadratic polynomials with three or more variables correspond to quadric surfaces and hypersurfaces. In linear algebra, quadratic polynomials can be generalized to the notion of a quadratic form on a vector space.

## Forms of a univariate quadratic function

A univariate quadratic function can be expressed in three formats:^{[2]}

- [math]\displaystyle{ f(x) = a x^2 + b x + c \,\! }[/math] is called the
**standard form**, - [math]\displaystyle{ f(x) = a(x - r_1)(x - r_2)\,\! }[/math] is called the
**factored form**, where*r*_{1}and*r*_{2}are the roots of the quadratic function and the solutions of the corresponding quadratic equation. - [math]\displaystyle{ f(x) = a(x - h)^2 + k \,\! }[/math] is called the
**vertex form**, where*h*and*k*are the*x*and*y*coordinates of the vertex, respectively.

The coefficient *a* 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 *r*_{1} and *r*_{2}. 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.

## Graph of the univariate function

Regardless of the format, the graph of a univariate quadratic function [math]\displaystyle{ f(x) = ax^2 + bx + c }[/math] is a parabola (as shown at the right). Equivalently, this is the graph of the bivariate quadratic equation [math]\displaystyle{ y = ax^2 + bx + c }[/math].

- If
*a*> 0, the parabola opens upwards. - If
*a*< 0, the parabola opens downwards.

The coefficient *a* controls the degree of curvature of the graph; a larger magnitude of *a* gives the graph a more closed (sharply curved) appearance.

The coefficients *b* and *a* together control the location of the axis of symmetry of the parabola (also the *x*-coordinate of the vertex and the *h* parameter in the vertex form) which is at

- [math]\displaystyle{ x = -\frac{b}{2a}. }[/math]

The coefficient *c* controls the height of the parabola; more specifically, it is the height of the parabola where it intercepts the *y*-axis.

### Vertex

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 (*h*, *k*). Using the method of completing the square, one can turn the standard form

- [math]\displaystyle{ f(x) = a x^2 + b x + c \,\! }[/math]

into

- [math]\displaystyle{ \begin{align} f(x) &= a x^2 + b x + c \\ &= a (x - h)^2 + k \\ &= a\left(x - \frac{-b}{2a}\right)^2 + \left(c - \frac{b^2}{4a}\right),\\ \end{align} }[/math]

so the vertex, (*h*, *k*), of the parabola in standard form is

- [math]\displaystyle{ \left(-\frac{b}{2a}, c - \frac{b^2}{4a}\right). }[/math]

If the quadratic function is in factored form

- [math]\displaystyle{ f(x) = a(x - r_1)(x - r_2) \,\! }[/math]

the average of the two roots, i.e.,

- [math]\displaystyle{ \frac{r_1 + r_2}{2} \,\! }[/math]

is the *x*-coordinate of the vertex, and hence the vertex (*h*, *k*) is

- [math]\displaystyle{ \left(\frac{r_1 + r_2}{2}, f\left(\frac{r_1 + r_2}{2}\right)\right).\! }[/math]

The vertex is also the maximum point if *a* < 0, or the minimum point if *a* > 0.

The vertical line

- [math]\displaystyle{ x=h=-\frac{b}{2a} }[/math]

that passes through the vertex is also the **axis of symmetry** of the parabola.

#### Maximum and minimum points

Using calculus, the vertex point, being a maximum or minimum of the function, can be obtained by finding the roots of the derivative:

- [math]\displaystyle{ f(x)=ax^2+bx+c \quad \Rightarrow \quad f'(x)=2ax+b \,\!. }[/math]

*x* is a root of *f* '(*x*) if *f* '(*x*) = 0
resulting in

- [math]\displaystyle{ x=-\frac{b}{2a} }[/math]

with the corresponding function value

- [math]\displaystyle{ f(x) = a \left (-\frac{b}{2a} \right)^2+b \left (-\frac{b}{2a} \right)+c = c-\frac{b^2}{4a} \,\!, }[/math]

so again the vertex point coordinates, (*h*, *k*), can be expressed as

- [math]\displaystyle{ \left (-\frac {b}{2a}, c-\frac {b^2}{4a} \right). }[/math]

## Roots of the univariate function

### Exact roots

The roots (or *zeros*), *r*_{1} and *r*_{2}, of the univariate quadratic function

- [math]\displaystyle{ \begin{align} f(x) &= ax^2+bx+c \\ &= a(x-r_1)(x-r_2), \\ \end{align} }[/math]

are the values of *x* for which *f*(*x*) = 0.

When the coefficients *a*, *b*, and *c*, are real or complex, the roots are

- [math]\displaystyle{ r_1=\frac{-b - \sqrt{b^2-4ac}}{2a}, }[/math]

- [math]\displaystyle{ r_2=\frac{-b + \sqrt{b^2-4ac}}{2a}. }[/math]

### Upper bound on the magnitude of the roots

The modulus of the roots of a quadratic [math]\displaystyle{ ax^2+bx+c\, }[/math] can be no greater than [math]\displaystyle{ \frac{\max(|a|, |b|, |c|)}{|a|}\times \phi,\, }[/math] where [math]\displaystyle{ \phi }[/math] is the golden ratio [math]\displaystyle{ \frac{1+\sqrt{5}}{2}. }[/math]^{[4]}

## The square root of a univariate quadratic function

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 [math]\displaystyle{ a\gt 0\,\! }[/math] then the equation [math]\displaystyle{ y = \pm \sqrt{a x^2 + b x + c} }[/math] describes a hyperbola, as can be seen by squaring both sides. The directions of the axes of the hyperbola are determined by the ordinate of the minimum point of the corresponding parabola [math]\displaystyle{ y_p = a x^2 + b x + c \,\! }[/math]. If the ordinate is negative, then the hyperbola's major axis (through its vertices) is horizontal, while if the ordinate is positive then the hyperbola's major axis is vertical.

If [math]\displaystyle{ a\lt 0\,\! }[/math] then the equation [math]\displaystyle{ y = \pm \sqrt{a x^2 + b x + c} }[/math] describes either a circle or other ellipse or nothing at all. If the ordinate of the maximum point of the corresponding parabola [math]\displaystyle{ y_p = a x^2 + b x + c \,\! }[/math] is positive, then its square root describes an ellipse, but if the ordinate is negative then it describes an empty locus of points.

## Iteration

To iterate a function [math]\displaystyle{ f(x)=ax^2+bx+c }[/math], one applies the function repeatedly, using the output from one iteration as the input to the next.

One cannot always deduce the analytic form of [math]\displaystyle{ f^{(n)}(x) }[/math], which means the *n*^{th} iteration of [math]\displaystyle{ f(x) }[/math]. (The superscript can be extended to negative numbers, referring to the iteration of the inverse of [math]\displaystyle{ f(x) }[/math] if the inverse exists.) But there are some analytically tractable cases.

For example, for the iterative equation

- [math]\displaystyle{ f(x)=a(x-c)^2+c }[/math]

one has

- [math]\displaystyle{ f(x)=a(x-c)^2+c=h^{(-1)}(g(h(x))),\,\! }[/math]

where

- [math]\displaystyle{ g(x)=ax^2\,\! }[/math] and [math]\displaystyle{ h(x)=x-c.\,\! }[/math]

So by induction,

- [math]\displaystyle{ f^{(n)}(x)=h^{(-1)}(g^{(n)}(h(x)))\,\! }[/math]

can be obtained, where [math]\displaystyle{ g^{(n)}(x) }[/math] can be easily computed as

- [math]\displaystyle{ g^{(n)}(x)=a^{2^{n}-1}x^{2^{n}}.\,\! }[/math]

Finally, we have

- [math]\displaystyle{ f^{(n)}(x)=a^{2^n-1}(x-c)^{2^n}+c\,\! }[/math]

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

- [math]\displaystyle{ x_{n+1} = r x_n (1-x_n), \quad 0\leq x_0\lt 1 }[/math]

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

- [math]\displaystyle{ x_{n}=\sin^{2}(2^{n} \theta \pi) }[/math]

where the initial condition parameter [math]\displaystyle{ \theta }[/math] is given by [math]\displaystyle{ \theta = \tfrac{1}{\pi}\sin^{-1}(x_0^{1/2}) }[/math]. For rational [math]\displaystyle{ \theta }[/math], after a finite number of iterations [math]\displaystyle{ x_n }[/math] maps into a periodic sequence. But almost all [math]\displaystyle{ \theta }[/math] are irrational, and, for irrational [math]\displaystyle{ \theta }[/math], [math]\displaystyle{ x_n }[/math] never repeats itself – it is non-periodic and exhibits sensitive dependence on initial conditions, so it is said to be chaotic.

The solution of the logistic map when *r*=2 is

[math]\displaystyle{ x_n = \frac{1}{2} - \frac{1}{2}(1-2x_0)^{2^{n}} }[/math]

for [math]\displaystyle{ x_0 \in [0,1) }[/math]. Since [math]\displaystyle{ (1-2x_0)\in (-1,1) }[/math] for any value of [math]\displaystyle{ x_0 }[/math] other than the unstable fixed point 0, the term [math]\displaystyle{ (1-2x_0)^{2^{n}} }[/math] goes to 0 as *n* goes to infinity, so [math]\displaystyle{ x_n }[/math] goes to the stable fixed point [math]\displaystyle{ \tfrac{1}{2}. }[/math]

## Bivariate (two variable) quadratic function

A **bivariate quadratic function** is a second-degree polynomial of the form

- [math]\displaystyle{ f(x,y) = A x^2 + B y^2 + C x + D y + E x y + F \,\! }[/math]

where *A, B, C, D*, and *E* are fixed coefficients and *F* is the constant term.
Such a function describes a quadratic surface. Setting [math]\displaystyle{ f(x,y)\,\! }[/math] equal to zero describes the intersection of the surface with the plane [math]\displaystyle{ z=0\,\! }[/math], which is a locus of points equivalent to a conic section.

### Minimum/maximum

If [math]\displaystyle{ 4AB-E^2 \lt 0 \, }[/math] the function has no maximum or minimum; its graph forms a hyperbolic paraboloid.

If [math]\displaystyle{ 4AB-E^2 \gt 0 \, }[/math] the function has a minimum if *A*>0, and a maximum if *A*<0; its graph forms an elliptic paraboloid. In this case the minimum or maximum occurs at [math]\displaystyle{ (x_m, y_m) \, }[/math] where:

- [math]\displaystyle{ x_m = -\frac{2BC-DE}{4AB-E^2}, }[/math]

- [math]\displaystyle{ y_m = -\frac{2AD-CE}{4AB-E^2}. }[/math]

If [math]\displaystyle{ 4AB- E^2 =0 \, }[/math] and [math]\displaystyle{ DE-2CB=2AD-CE \ne 0 \, }[/math] the function has no maximum or minimum; its graph forms a parabolic cylinder.

If [math]\displaystyle{ 4AB- E^2 =0 \, }[/math] and [math]\displaystyle{ DE-2CB=2AD-CE =0 \, }[/math] the function achieves the maximum/minimum at a line—a minimum if *A*>0 and a maximum if *A*<0; its graph forms a parabolic cylinder.

## See also

- Quadratic form
- Quadratic equation
- Matrix representation of conic sections
- Quadric
- Periodic points of complex quadratic mappings
- List of mathematical functions

## References

- ↑ "Quadratic Equation from Wolfram MathWorld". http://mathworld.wolfram.com/QuadraticEquation.html.
- ↑
*College Algebra*, John Wiley & Sons Inc., 2007, p. 205, ISBN 9780471271758, https://books.google.com/books?sourceid=navclient&ie=UTF-8&rlz=1T4GGLJ_enBE306BE306&q=%22three+different+forms+for+a+quadratic+expression+are%22, Search result - ↑ "Complex Roots Made Visible – Math Fun Facts". http://math.hmc.edu/funfacts/ffiles/10005.1.shtml. Retrieved 1 October 2016.
- ↑ Lord, Nick, "Golden bounds for the roots of quadratic equations",
*Mathematical Gazette*91, November 2007, 549.

- Algebra 1, Glencoe, ISBN 0-07-825083-8
- Algebra 2, Saxon, ISBN 0-939798-62-X

## External links

Original source: https://en.wikipedia.org/wiki/Quadratic function.
Read more |