<<

Math 33A Week 10 November 29 and December 1, 2016

Definiteness of Quadratic Forms

Given a quadratic form q(~x), we often care about the range of values the form might take. A priori, we know a few things about the values of q. We always have q(~0) = 0, and the range of q is unbounded, since q(k~x) = k2~x for any scalar k ∈ R. Questions whose answer we don’t know, however, include whether or not q takes on any negative values, or whether q has a nontrivial kernel. Figure1 shows plots of various forms q : R2 → R.

(a) A positive-definite form. (b) A negative-definite form. (c) An indefinite form.

(d) A positive semi-definite form. (e) A negative semi-definite form.

Figure 1: Plots of quadratic forms.

In these plots we see five distinct behaviors. The form in Figure 1a never takes on a negative value, and the only vector in its kernel is the zero vector. That is, q(~x) > 0 for all nonzero vectors ~x. On the other hand, Figure 1b has the property that q(~x) < 0 for all nonzero vectors ~x. We say that these forms are positive-definite and negative-definite, respectively. Figure 1c shows a form that takes on both positive and negative values, and we say that such a form is indefinite. The forms in Figures 1d and 1e are similar to those in Figures 1a and 1b, respectively, in that their range is of the form [0, ∞) or (−∞, 0]. The difference, though, is that the forms in Figures 1d and 1e both have nontrivial kernels. We say that the form in Figure 1d is positive semi-definite, meaning that q(~x) ≥ 0 for all ~x, but that there is some nonzero vector ~x so that q(~x) = 0. Similarly, the form in Figure 1e is called negative semi-definite. Our goal now is to classify quadratic forms according to 2 2 these five categories. In particular, we want to take a quadratic form q(~x) = ax1 +bx1x2 +cx2 and determine which of these five terms is in effect1.

1Of course, there’s one form which doesn’t fall into any of these five categories: the form q(~x) = 0.

1 2 2 A good first step towards determining the definiteness of q(~x) = ax1 + bx1x2 + cx2 is to recall that we can represent this quadratic form with a symmetric A:

 1      a 2 b x1 T q(~x) = x1 x2 1 = ~x A~x. 2 b c x2 Next, we recall the following (very important) result:

The Spectral Theorem. A matrix is orthogonally diagonalizable if and only if it is symmetric. Because the matrix A used to represent our quadratic form is symmetric, we may choose an orthonormal eigenbasis ~u1, ~u2, with associated eigenvalues λ1 and λ2. We then have     λ1 0  −1 T A = ~u1 ~u2 ~u1 ~u2 = SDS . 0 λ2

Since the columns of S are orthonormal, S is an , and this tells us that S−1 = ST . So we may now write q as

T q(~x) = ~xT A~x = ~xT SDST ~x = ST ~x D(ST ~x).

At this point we introduce the following change of variables:

c  1 = ST ~x. c2

T −1 Notice that S ~x = S ~x = B[S]E~x, so ~x = c1~u1 + c2~u2. That is, our change of variables represents ~x in the eigenbasis ~u1, ~u2. We now substitute this into our expression for q to find that  T     c1 λ1 0 c1 2 2 q(~x) = = λ1c1 + λ2c2. c2 0 λ2 c2 Now we must ask how this new expression for q aids our attempt to characterize the definite- ness of the form. The benefit is that we no longer have a “mixed” term: a term of the form 2 2 x1x2 or c1c2. Because we know that c1 and c2 will both be non-negative for all vectors ~x, we should be able to characterize the definiteness of q from the signs of the eigenvalues λ1 and λ2.

2 2 For instance, suppose that both λ1 and λ2 are positive. Then, since c1 and c2 are non- negative, so is q(~x). Moreover, if ~x 6= ~0, then at least one of c1, c2 is positive, and q(~x) must then be positive. We see that q(~x) ≥ 0 for all vectors ~x, and that q(~x) > 0 whenever ~x 6= ~0, so q is positive definite. If we instead have λ1 > 0 and λ2 = 0, then q(~u2) = 0, since in this case c1 = 0 and c2 = 1. This would mean that while q does not take any negative values, it has a nontrivial kernel, and is thus positive semi-definite. We can apply a similar analy- sis to q for the remaining combinations of signs of λ1 and λ2. The results are tabulated below.

2 Definiteness of a quadratic form. Consider a quadratic form q(~x) = ~xT A~x, where A is a 2 × 2 . Suppose A has eigenvalues λ1 and λ2, with λ1 ≥ λ2. Then

• if λ1 = λ2 = 0, q(~x) = 0 for all vectors ~x;

• if λ1, λ2 > 0, q is positive-definite;

• if λ1 > 0 and λ2 = 0, q is positive semi-definite;

• if λ1, λ2 < 0, q is negative-definite;

• if λ1 = 0 and λ2 < 0, q is negative semi-definite;

• if λ1 > 0 and λ2 < 0, q is indefinite. Consequently, if det A = 0, then q is neither positive-definite nor negative-definite. If det A < 0, then q is indefinite, and if det A > 0, then q is either positive-definite or negative-definite2.

2 2 Example 1. Determine the definiteness of the quadratic form q(~x) = x1 + 2x1x2 + x2.

(Solution) This form can be written as

1 1 q(~x) = ~xT ~x, 1 1

1 1 so we’ll compute the eigenvectors of A = . We have 1 1   1 − λ 1 2 det(A − λI) = = (1 − λ) − 1 = λ(λ − 2), 1 1 − λ

so the eigenvalues of A are λ1 = 2 and λ2 = 0. Since both eigenvalues are non-negative, q takes on only non-negative values. Moreover, since λ2 = 0, q has a nontrivial kernel, and is thus positive semi-definite. ♦

Example 2. For which real k is the quadratic form

2 2 q(~x) = kx1 − 6x1x2 + kx2

positive-definite? 2Warning: This second sentence is only true because A is 2 × 2. For more general quadratic forms this determinant analysis is not as useful.

3 (Solution) To determine the definiteness of this form we’ll need to consider the matrix

 k −3 A = , −3 k whose characterstic is   k − λ −3 2 2 2 det(A − λI) = = (k − λ) − 9 = λ − 2kλ + (k − 9). −3 k − λ We can either factor this polynomial as

det(A − λI) = (λ − (k + 3))(λ − (k − 3)) or use the to find its roots: √ 2k ± p4k2 − 4(k2 − 9) 2k ± 36 λ = = = k ± 3. 2 2

Whichever method we use, we find that λ1 = k + 3 and λ2 = k − 3. In order for q to be positive-definite, both of these eigenvalues must be positive, and in particular we must have λ2 > 0. So k > 3 is a necessary and sufficient condition for q to be a positive-definite quadratic form. ♦

4