How do you classify the quadratic form q(x1,x2,x3)=x12+x22+x32+4x1x2+4x1x3+4x2x3 as positive definite, semidefinite or indefinite, and how do you write it in diagonal form via an orthogonal change of variables x=Qy?

Linear algebra and optimisation, Quadratic forms
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can extract the symmetric matrix of a quadratic form, find its eigenvalues, and perform orthogonal diagonalisation.

Key idea

Every quadratic form equals x⊤Ax for a unique symmetric matrix A (splitting cross terms 2aijxixj equally between aij and aji); an orthonormal eigenbasis Q transforms x⊤Ax into ∑iλiyi2, whose eigenvalue signs immediately classify the form.

Steps

  1. Write q(x)=x⊤Ax with symmetric matrix A=(122212221), placing half of each cross coefficient (4/2=2) in (i,j) and (j,i).
  2. Notice A=−I+211⊤, where 1=(1,1,1)⊤. The rank-1 matrix 11⊤ has eigenvalue 3 along 1 and eigenvalue 0 (multiplicity 2) perpendicular to 1.
  3. Read off the eigenvalues of A: λ1=−1+2(3)=5 and λ2=λ3=−1+0=−1. Since A has both positive (5) and negative (−1) eigenvalues, q(x) is indefinite.
  4. Build an orthonormal eigenbasis Q=[q1 q2 q3]: q1=13(1,1,1)⊤ for λ1=5, and two orthonormal vectors orthogonal to q1 for λ=−1, such as q2=12(1,−1,0)⊤ and q3=16(1,1,−2)⊤.
  5. Substitute x=Qy (so y=Q⊤x) to get the diagonal form q(Qy)=y⊤(Q⊤AQ)y=5y12−y22−y32.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Linear algebra and optimisation: For which values of c is the symmetric matrix A=(42025202c) positive definite by Sylvester's criterion, and what is its Cholesky factorisation A=LL⊤ when c=5?
Next in Linear algebra and optimisation: When is a square matrix A∈Rn×n diagonalisable, why can repeated eigenvalues break diagonalisability, and how do you tell whether A=(3103) and B=(3003) are diagonalisable?