Quadratic function
Definition
A quadratic function is a function of the form:
where are real numbers and . In other words, a quadratic function is a polynomial function of degree two.
Unless otherwise specified, we consider quadratic functions where the inputs, outputs, and coefficients are all real numbers.
Generalizations
- Convex function generalizes quadratic function with positive leading coefficient
- Quadratic function of multiple variables
- Polynomial function
Related notions
- Quadratic function of multiple variables
- L1-regularized quadratic function
- L1-regularized quadratic function of multiple variables
Key data
Item | Value |
---|---|
Default domain | all real numbers, i.e., all of |
range | Case : Case : |
period | not a periodic function |
local maximum value and points of attainment | Case : No local maximum value Case : local maximum value is attained at point . |
local minimum value and points of attainment | Case : local minimum value is attained at point . Case : no local minimum value |
points of inflection | None |
derivative | The linear function |
second derivative | The constant function with constant value |
derivative | The first and second derivative are as described above. All higher derivatives are zero. |
antiderivative | with . |
important symmetry | The graph of the function has mirror symmetry about the line (the vertical line through the unique critical point) |
interval description based on increase/decrease and concave up/down | Case : increasing and concave down on decreasing and concave down on Case : decreasing and concave up on increasing and concave up on |
power series and Taylor series | The power series is the same as the polynomial, i.e., the power series about any point simplifies to the polynomial (written in increasing order of powers of as ) |
Key invariants
Expression | Name | Significance in the case |
---|---|---|
(unnormalized) discriminant | The discriminant is positive (i.e., ) iff the quadratic has two distinct real roots The discriminant is zero (i.e., ) iff the quadratic has a real root of multiplicity two The discriminant is negative (i.e., ) iff the quadratic has no real roots | |
leading coefficient | Leading coefficient is positive (i.e., ) iff the function approaches infinity as and as Leading coefficient is negative (i.e., ) iff the function approaches infinity as and as | |
sum of roots | If the roots are (counted with multiplicity, and they need not be real roots), then the polynomial is and the sum of roots is . | |
product of roots | If the roots are (counted with multiplicity, and they need not be real roots), then the polynomial is and the product of roots is . | |
normalized discriminant | Similar observations as for the discriminant. |
Transformation
Any quadratic function can be expressed as a composite of a linear function, the square function, and another linear function. Explicitly, we can write:
In other words, it is a composite of three functions:
Differentiation
First derivative
Computation as a linear combination of monomials
We can differentiate the polynomial termwise, using the fact that it is a linear combination of monomials:
Now, using the differentiation rule for power functions, namely , we obtain:
Computation using the transformed expression
We rewrote the polynomial as:
We differentiate:
The second expression, being constant, differentiates to zero. The first expression is a composite of and the square function. We can use the chain rule for differentiation to differentiate it. The answer we obtain is:
Simplifying this, we get:
Second derivative
Computation as a linear combination of monomials
We can differentiate the polynomial termwise, using the fact that it is a linear combination of monomials:
Now, using the differentiation rule for power functions, namely , we obtain:
Computation using the transformed expression
We rewrote the polynomial as:
We differentiate:
We get the answer:
Higher derivatives
Since the second derivative is a constant (as we find using either of the computational methods above), all higher derivatives are zero.
Points and intervals of interest
Critical points
We can determine the critical point by setting the derivative to equal zero:
This solves to .
Alternatively, we can look at the form:
The critical point is therefore a shift by of the critical point for the square function, which is known to be at .
Points of inflection
The second derivative is the constant function with value , which is never zero. Therefore, there are no points of inflection.
Local and absolute extreme values
Case a > 0
In this case, the unique critical point defines a point of local minimum, and it is also the unique point of absolute minimum. This can be seen in any of the following equivalent ways:
Method | Description | Comment on deducing local versus absolute minimum |
---|---|---|
transformed description of function | We have . The constant term does not affect the point of local minimum. The expression is always nonnegative (because ). It is zero iff , or . This, therefore, is the unique point of local and absolute minimum. | Note that this method directly gives us that it is the unique point of absolute minimum. |
first derivative test | The derivative function is negative for and positive for . Therefore, is decreasing on the left and increasing on the right of , and thus has its unique local and absolute minimum at this point. | The first derivative test, as conventionally stated, only talks about the sign of the derivative on the immediate left and right, and in this form, suffices only to deduce local extreme behavior. However, in this case, we have global information on the sign of derivative on the left and right of the point, therefore we can deduce that we have an absolute (global) minimum. |
second derivative test | The second derivative is the positive number everywhere, so the critical point is a point of local minimum, and also the unique point of absolute minimum. | The second derivative being positive at the critical point suffices to deduce that it is a point of local minimum. The second derivative being positive everywhere tells us that the function is a convex function (i.e., the graph is concave up), and therefore, any local minimum is unique and equals the absolute minimum. |
Case a < 0
In this case, the unique critical point defines a point of local minimum, and it is also the unique point of absolute minimum. This can be seen in three ways, analogous to the case .
Integration
First antiderivative
We can use that indefinite integration is linear to convert this to a problem of integrating power functions:
We can now use the integration rule for power functions () and obtain:
Higher antiderivatives
The process of integration can be repeated. The following is the formula for the -fold integral of the function:
The arbitrary polynomial of degree at most is parameterized by coefficients. These are the constants of integration that accumulate, one in each step of integration.