Professional Documents
Culture Documents
8.3 Quadratic Functions
8.3 Quadratic Functions
3 Quadratic Functions
In this section we shall look at the connection between quadratic functions and symmetric
matrices.
Definition 1. A quadratic function z = f(x, y) of two variables x and y is one of the form
where a, b, c, d, e and f are fixed numbers. A quadratic form (or homogeneous quadratic
function) is a quadratic function where only the x2, xy and y2 terms are present, i.e. one of
the form
Proposition 1.
z = ax2 + 2bxy + cy2 = (ax2 + bxy) + (bxy + cy2) = x(ax + by) + y(bx + cy)
= (x, y) = (x, y) = uTQu
8.3 - 1
Example 2.
17x2 – 12xy + 8y2 = (17x2 - 6xy) + (- 6xy + 8y2) = x(17x - 6by) + y(- 6x + 8y)
= (x, y) = (x, y) = uTQu
The graph will be a surface in three dimensions while each level curve is a curve in the
xy-plane. A graph has an infinite number of non-intersecting level curves, one for each
number k. The contour map consists of all these level curves taken together and it divides
up the plane into these non-intersecting curves. Often one can get a good picture of the
graph from the contour map. Many questions involving the function can be visualized by
means of the graph and/or contour map. In this section we see how to make the contour
map and graph of quadratic functions.
(5) z = +
where p and q are fixed numbers. In this case the level curves have the form + = k. If
k < 0 there are no x and y satisfying the equation since the left side is positive and the
right side is negative, so there is no level curve for negative values of k. If k = 0 the only
pair of values of x and y satisfying this equation is (x, y) = (0, 0), so the level curve is just
a single point, i.e. the origin. If k > 0 then we divide by k and rewrite the level curves as
+ = 1 or + = 1
with a = p and b = q. So the level curve is an ellipse extending from – p to p on the x axis
and – q to q on the y axis. So the level curves are concentric ellipses which get larger as
k increases. The resulting surface z = + is bowl shaped opening upward with its low
point at the origin. It is called an elliptic paraboloid with its vertex at the origin. The
curves obtained by fixing y and letting x vary are parabolas as are the curves obtained by
fixing x and letting y vary.
Example 3. Consider the function z = x2 + 4y2. Draw the level curves for z = 4 and z = 8
and the graph of the function.
8.3 - 2
The level curve x2 + 4y2 = 4 for z = 4 is the ellipse + = 1 extending from – 2 to 2 on the x
axis and - 1 to 1 on the y axis. The level curve x2 + 4y2 = 8 for z = 8 is the ellipse + = 1
extending from – 2 to 2 on the x axis and - to on 2
(6) z = - 2
(7) z = -
where p and q are fixed numbers. In this case the level curves have the form + = k. If
k > 0 then when we divide by k the level curves have the form
- = 1 or - = 1
with a = p and b = q. So the level curve is a hyperbola with vertices at – p and p on the x
axis and asymptotes y = x and y = - x. So the level curves are hyperbolas which get
larger as k increases. If k = 0 then the level curves are the straight lines y = x and y = - x.
If k < 0 then when we divide by k the level curves have the form
+ = 1 or - = 1
with a = p and b = q. So the level curve is a hyperbola with vertices at – q and q on the y
axis and asymptotes y = x and y = - x. Again these level curves are hyperbolas which
get larger as k decreases.
Example 4. Consider the function z = x2 - 4y2. Draw the level curves for z = 4, z = 8 and
z = - 4 and the graph of the function.
2
The level curve x2 - 4y2 = 4 for z = 4 is the hyperbola
- = 1 with vertices at – 2 and 2 on the x axis and 1
2
8.3 - 3
– 2 to 2 on the x axis and same asymptotes. The level curve x2 - 4y2 = - 4 for z = - 4 is the
hyperbola - = 1 with vertices at – 2 and 2 on the y axis and same asymptotes. These are
shown at the right along with the graph of z = x2 - 4y2.
(8) z = -
Proposition 2. Let z = ax2 + cy2. If a and c are both positive the graph is an elliptic
parabolid opening up with its vertex at the origin. If a and c are both negative the
graph is an elliptic parabolid opening down with its vertex at the origin. If a is
positive and c is negative the graph is a hyperbolic parabolid that opens up along the
x axis and opens down along the y axis. If c is positive and a is negative the graph is
a hyperbolic parabolid that opens up along the y axis and opens down along the x
axis.
Proposition 3. Let
8.3 - 4
Proof. Suppose we have normalized the eigenvectors as discussed in the previous
section. Then Q = TDT-1 where T is the matrix whose columns are v1 and v2 and D = .
We substitute this into z = uTQu to get z = uTTDT-1u = (TTu)TDT-1u. As discussed in the
previous section T is orthogonal so T-1 = TT. So z = (T-1u)TDT-1u.
We can express a vector u in the plane as a linear combination of the eigenvectors v1 and
v2, i.e. u = rv1 + sv2 where r and s are the coordinates of u with respect to this new
coordinate system. Algebraically we have u = T . So = T-1u. So z = = 1r2 + 2s2. //
Example 5. Consider the quadratic form z = 17x2 - 12xy + 8y2 = (x, y) = uTQu. (a)
Sketch the level curve 17x2 - 12xy + 8y2 = 20. (b) What kind of surface is the graph of z
= 17x2 - 12xy + 8y2. (c) Sketch the graph of z = 17x2 - 12xy + 8y2.
2 1 1 2
1
2
Problem 2. Consider the quadratic form z = 6x2 – 4xy + 3y2 = (x, y) = uTQu.
(a) Find a new coordinate system for the xy plane such that in this new coordinate system
the graph of the function z = 6x2 – 4xy + 3y2 has the form z = Ar2 + Bs2 where are the
coordinates of relative to this new coordinate system. Specify this new coordinate
system by giving vectors along the new coordinate axes. Also, give A and B and the
angle which the r axis makes with respect to the x axis.
(b) Sketch the level curve 6x2 – 4xy + 3y2 = 98 showing relevant lengths. What kind of
curve is it.
(c) Sketch the graph of z = 6x2 – 4xy + 3y2. What kind of surface is it.
8.3 - 5
Answers: The r axis is through v1 = and the s axis is through v2 = . In this new coordinate
system the function z = 6x2 – 4xy + 3y2 becomes z = 2r2 + 7s2. The angle between the r axis
and x axis is tan-1(2) 1.11 radians 63.4. The level curve 6x2 – 4xy + 3y2 = 98 is 2r2 + 7s2
= 98 in the rs coordinate system. It is an ellipse whose axis goes from – 7 to 7 on the r axis
and - to on the s axis. The graph of z = 6x2 – 4xy + 3y2 is a elliptic paraboloid.
Example 6. Consider the quadratic form z = 5x2 + 6xy - 3y2 = (x, y) = uTQu. (a) Sketch
the level curve 5x2 + 6xy - 3y2 = 24. (b) What kind of surface is the graph of z = 5x2 +
6xy - 3y2. (c) Sketch the graph of z = 5x2 + 6xy - 3y2.
0 = det( Q - I ) = = (5 - )(- 3 - ) – 9
= 2 - 2 - 24 = ( - 6)( + 4)
= (A - 6I)v =
So
- x + 3y = 0
3x - 9y = 0
6 4 2 2 4 6
2
4
8.3 - 6
6
Finally, we consider general quadratic functions of the form (1). They can be reduced to
quadratic forms of the form (2) by creating a new coordinate system parallel to the
orignal but with the origin shifted to a point u0 = .
Proposition 4. Let
z = (v + q)TQ(v + q) + p(v + q) + f
= vTQv + vTQq + qTQv + qTQq + pv + pq + f
(a) Sketch the level curve 17x2 - 12xy + 8y2 - 10x - 20y + 15 = 10. (b) What kind of
surface is the graph of z = 17x2 - 12xy + 8y2 - 10x - 20y + 15. (c) Sketch the graph of
z = 17x2 - 12xy + 8y2 - 10x - 20y + 15.
8.3 - 7
the graph of z = that we made in Example 5 and move it one unit in the x direction, 2
units in the y direction and – 10 units in the z direction. It is also shown below.
1 1 2 3
1
8.3 - 8