Practice: Quadratic Forms and Definiteness

Recognition · Error diagnosis

A form is presented as Q ( x ) = x T M x with M = ( 5 4 0 5 ) , which is not symmetric. A learner computes the eigenvalues of M , both 5, and concludes the form is positive definite with equal principal values. What is wrong?

2 hints available, least help first.

Hint 1: Retrieval cue

Evaluate x T M x and x T 1 2 ( M + M T ) x at ( 1 , 1 ) and compare.

Hint 2: Concept cue

x T M x is a 1 × 1 matrix, so it equals its own transpose. What does that force about M and M T ?

Direct application

Write Q ( x , y ) = 5 x 2 + 4 x y + 5 y 2 as x T A x with A symmetric.

What is the entry a 12 ?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

How many times does the product x y appear when x T A x is expanded?

Hint 2: Concept cue

Halve the cross-term coefficient and put the result in both off-diagonal positions.

Classification · Direct application

The form Q ( x , y ) = x 2 + 4 x y + y 2 has symmetric matrix A = ( 1 2 2 1 ) . Classify it.

2 hints available, least help first.

Hint 1: Retrieval cue

For a 2 × 2 , what does the sign of the determinant say about the eigenvalues?

Hint 2: Concept cue

Compute det A , then test the form at ( 1 , 1 ) and ( 1 , − 1 ) .

Direct application

The form Q ( x , y ) = 5 x 2 + 4 x y + 5 y 2 has matrix ( 5 2 2 5 ) with eigenvalues 7 and 3, and unit eigenvectors v 1 = 1 2 ( 1 , 1 ) and v 2 = 1 2 ( 1 , − 1 ) .

Evaluate Q ( v 1 ) .

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

What is x 2 when x = 1 / 2 ?

Hint 2: Concept cue

Each of the three terms contributes its coefficient times 1 / 2 .

Direct application · Error diagnosis

The form Q ( x , y ) = x 2 + 2 x y + y 2 has matrix ( 1 1 1 1 ) , with eigenvalues 2 and 0, so it is positive semidefinite rather than positive definite.

Evaluate Q ( 3 , − 3 ) .

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Substitute x = 3 and y = − 3 into each of the three terms.

Hint 2: Concept cue

x 2 + 2 x y + y 2 factors as ( x + y ) 2 . What is 3 + ( − 3 ) ?

Construction · Classification · Explanation

(a) For Q ( x , y ) = 2 x 2 − 4 x y + 5 y 2 , give the symmetric matrix, the eigenvalues, the definiteness class, and an orthonormal pair of principal axes with the diagonalised form. Confirm by evaluating Q on one axis.

(b) For R ( x , y , z ) = x 2 + y 2 + z 2 + 2 x y , give the symmetric matrix and the eigenvalues, classify it, and exhibit a nonzero vector on which R vanishes.

(c) A form is presented as x T M x with M = ( 5 4 0 5 ) . Say which form this is, what its symmetric matrix is, and why the eigenvalues of M are not the ones to classify by.

(d) For the form in (a), complete the square and compare the coefficients you obtain with its eigenvalues. Say what agrees and what does not, and why.

(e) Explain what an orthogonal change of variables preserves that a general invertible one does not, and why that matters for describing the level set Q = 1 .

Write your answer, then compare it with the worked solution.

3 hints available, least help first.

Hint 1: Retrieval cue

Halve every cross-term coefficient before placing it off the diagonal, and check the matrix by evaluating at ( 1 , 1 ) .

Hint 2: Concept cue

For a unit eigenvector, Q ( v ) = λ . Use that to confirm an axis rather than recomputing the form from scratch.

Hint 3: Strategy cue

In part (e), ask which change of variables preserves distances, and therefore which one's axes are the axes of the curve you can draw.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) Q = 2 x 2 − 4 x y + 5 y 2 is positive definite. Squared coefficients 2 and 5 on the diagonal; the cross coefficient − 4 halved to − 2 :

A = ( 2 − 2 − 2 5 ) .

Check. Q ( 1 , 1 ) = 2 − 4 + 5 = 3 , and x T A x at ( 1 , 1 ) is 2 − 2 − 2 + 5 = 3 ✓. tr ⁡ A = 7 , det A = 10 − 4 = 6 , so p ( λ ) = λ 2 − 7 λ + 6 = ( λ − 6 ) ( λ − 1 ) and the eigenvalues are 6 and 1 . Both positive, so positive definite. The negative cross term notwithstanding. The shortcut agrees: det A = 6 > 0 and a 11 = 2 > 0 . Axes. For λ = 6 : A − 6 I = ( − 4 − 2 − 2 − 1 ) , so − 4 x − 2 y = 0 gives y = − 2 x and v 1 ∝ ( 1 , − 2 ) . For λ = 1 : ( 1 − 2 − 2 4 ) , so x = 2 y and v 2 ∝ ( 2 , 1 ) . Normalised,

v 1 = 1 5 ( 1 , − 2 ) , v 2 = 1 5 ( 2 , 1 ) ,

perpendicular since 2 − 2 = 0 ✓. In these coordinates Q = 6 y 1 2 + y 2 2 . Confirmation. Q ( v 1 ) = 1 5 [ 2 ( 1 ) − 4 ( 1 ) ( − 2 ) + 5 ( 4 ) ] = 2 + 8 + 20 5 = 30 5 = 6 = λ 1 ✓. (b) R is positive semidefinite.

B = ( 1 1 0 1 1 0 0 0 1 ) .

Block diagonal: the leading 2 × 2 block ( 1 1 1 1 ) has trace 2 and determinant 0, so eigenvalues 2 and 0 ; the isolated entry contributes 1 . The eigenvalues are 2, 1, 0. All nonnegative with one zero, so positive semidefinite, not definite. A vector where it vanishes. The zero eigenvalue's eigenvector is ( 1 , − 1 , 0 ) , and

R ( 1 , − 1 , 0 ) = 1 + 1 + 0 + 2 ( 1 ) ( − 1 ) = 0 ,

with ( 1 , − 1 , 0 ) ≠ 0 . That single vector is what separates semidefinite from definite. Elsewhere the form is strictly positive: R ( 1 , 1 , 0 ) = 4 , R ( 0 , 0 , 3 ) = 9 . (c) The non-symmetric presentation. Expanding, x T M x = 5 x 2 + 4 x y + 0 ⋅ y x + 5 y 2 = 5 x 2 + 4 x y + 5 y 2 . So this is the form of the worked example, and its symmetric matrix is

1 2 ( M + M T ) = 1 2 ( 10 4 4 10 ) = ( 5 2 2 5 ) ,

with eigenvalues 7 and 3. Why M 's eigenvalues are the wrong ones. M is triangular, so its eigenvalues are both 5. But x T M x is a scalar and therefore equals its own transpose x T M T x , so M , M T and their average all define the same function. The antisymmetric part of M contributes nothing to any value of the form, and any property computed from it, eigenvalues included, is an artefact of how the form was written rather than a fact about the form. Only the symmetric representative carries the properties the classification needs: real eigenvalues and an orthonormal eigenbasis, neither guaranteed for a general matrix. Here the verdict of positive definiteness would have come out right by luck, but the principal values 5 and 5 are wrong, and so would be any axis or level-set conclusion drawn from them. (d) Completing the square for Q = 2 x 2 − 4 x y + 5 y 2 .

2 x 2 − 4 x y + 5 y 2 = 2 ( x 2 − 2 x y ) + 5 y 2 = 2 ( x − y ) 2 − 2 y 2 + 5 y 2 = 2 ( x − y ) 2 + 3 y 2 .

Check at ( 1 , 1 ) : 2 ( 0 ) 2 + 3 = 3 , matching Q ( 1 , 1 ) = 3 ✓. At ( 2 , 1 ) : direct 8 − 8 + 5 = 5 ; completed 2 ( 1 ) 2 + 3 = 5 ✓. What agrees. Both coefficients, 2 and 3, are positive, and so are both eigenvalues, 6 and 1. The count of positive, negative and zero coefficients matches, which is Sylvester's law of inertia, and that is enough to classify the form. What does not. The values differ: { 2 , 3 } against { 6 , 1 } . The variables x − y and y are not orthogonal directions, so the change of variables is invertible but not a rotation. It removes the cross term at the cost of distorting lengths, and the numbers it produces are not the form's values along perpendicular axes. (e) What orthogonality preserves. An orthogonal change of variables y = P T x satisfies ‖ y ‖ = ‖ x ‖ , so it preserves lengths, angles and areas. It is a rotation, possibly with a reflection. A general invertible change preserves only incidence: straight lines stay straight and the origin stays fixed, but distances and perpendicularity do not survive. For the level set Q = 1 this is the whole difference. Under the orthogonal change, the set is a genuine ellipse whose axes point along v 1 and v 2 and whose semi-axis lengths are 1 / λ i , for part (a), 1 / 6 ≈ 0.408 along ( 1 , − 2 ) / 5 and 1 along ( 2 , 1 ) / 5 . Those are measurable facts about the curve in the plane. Under the completed-square change, the set becomes 2 u 2 + 3 v 2 = 1 , which is an ellipse in the ( u , v ) coordinates but a sheared image of the true one. Its "axes" of length 1 / 2 and 1 / 3 describe the transformed picture, not the original curve, and the directions x − y = const and y = const are not perpendicular in the plane. So: completing the square is sufficient to classify, because signs are preserved by any invertible change. Only the spectral route describes, because only it preserves the geometry it is describing.

A complete answer does each of these:

  • builds the symmetric matrix
  • classifies definiteness
  • gives principal axes
  • evaluates the form
  • handles non symmetric input
  • relates axes to geometry
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.