Congruence Transformations and Standard Forms

Congruence Transformations

Definition of a Congruence Transformation

Congruence Transformation

Let AA and BB be real symmetric matrices of order nn. If there is an invertible matrix PP such that B=PTAPB = P^TAP

then AA and BB are called congruent, written A≅BA \cong B.

Properties of Congruence Transformations

Property 1: Congruence is an equivalence relation (reflexive, symmetric, transitive).

Property 2: A congruence transformation preserves the symmetry of a matrix.

Property 3: A congruence transformation preserves the rank of a matrix.

Property 4: A congruence transformation preserves the positive definiteness of a matrix.

Geometric Meaning of Congruence Transformations

Geometric meaning: A congruence transformation corresponds to a linear change of coordinate system.

Example: Let Q(x)=xTAxQ(x) = x^TAx be a quadratic form and make the change of variables x=Pyx = Py. Then Q(x)=xTAx=(Py)TA(Py)=yT(PTAP)y=yTByQ(x) = x^TAx = (Py)^TA(Py) = y^T(P^TAP)y = y^TBy

where B=PTAPB = P^TAP is a congruence transformation.

Standard Forms

Definition of a Standard Form

Standard Form

If the quadratic form Q(x)Q(x) can be reduced by a congruence transformation to Q(x)=λ1y12+λ2y22+⋯+λnyn2Q(x) = \lambda_1y_1^2 + \lambda_2y_2^2 + \dots + \lambda_ny_n^2

then this form is called a standard form.

How to Obtain a Standard Form

Method 1: the orthogonal transformation method

Steps:

  1. Write down the matrix AA of the quadratic form
  2. Compute the eigenvalues and eigenvectors of AA
  3. Build the orthogonal matrix QQ
  4. Make the change of variables x=Qyx = Qy
  5. Obtain the standard form Q=λ1y12+λ2y22+⋯+λnyn2Q = \lambda_1y_1^2 + \lambda_2y_2^2 + \dots + \lambda_ny_n^2

Method 2: completing the square

Steps:

  1. Eliminate the cross terms step by step by completing the square
  2. Obtain the standard form

Example

Example 1: Reduce the quadratic form Q(x1,x2)=2x12+4x1x2+3x22Q(x_1, x_2) = 2x_1^2 + 4x_1x_2 + 3x_2^2 to standard form.

Solution (orthogonal transformation method):

  1. Matrix representation: A=(2223)A = \begin{pmatrix} 2 & 2 \\ 2 & 3 \end{pmatrix}
  2. Characteristic equation: ∣A−λI∣=λ2−5λ+2=0|A - \lambda I| = \lambda^2 - 5\lambda + 2 = 0
  3. Eigenvalues: λ1=1\lambda_1 = 1, λ2=4\lambda_2 = 4
  4. Eigenvectors:
    • λ1=1\lambda_1 = 1: x⃗1=(1,−1)\vec{x}_1 = (1, -1)
    • λ2=4\lambda_2 = 4: x⃗2=(1,1)\vec{x}_2 = (1, 1)
  5. Normalisation:
    • q⃗1=12(1,−1)\vec{q}_1 = \frac{1}{\sqrt{2}}(1, -1)
    • q⃗2=12(1,1)\vec{q}_2 = \frac{1}{\sqrt{2}}(1, 1)
  6. Orthogonal matrix: Q=12(11−11)Q = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}
  7. Standard form: Q=y12+4y22Q = y_1^2 + 4y_2^2

The Law of Inertia

Statement of the Law of Inertia

Theorem (law of inertia): Let AA be a real symmetric matrix of order nn. The positive and negative indices of inertia of AA are unchanged under congruence transformations.

Definition of the Indices of Inertia

Indices of Inertia
  • Positive index of inertia: the number of positive coefficients in the standard form
  • Negative index of inertia: the number of negative coefficients in the standard form
  • Zero index of inertia: the number of zero coefficients in the standard form

Proof of the Law of Inertia

Proof strategy:

  1. Suppose AA is reduced to standard forms by two different congruence transformations
  2. Prove that the positive and negative indices of the two standard forms coincide
  3. Use the geometric properties of quadratic forms to do so

Applications of the Law of Inertia

Application 1: deciding the positive definiteness of a quadratic form

  • Positive definite: the positive index of inertia equals nn and the negative index of inertia equals 00
  • Negative definite: the positive index of inertia equals 00 and the negative index of inertia equals nn
  • Positive semidefinite: the negative index of inertia equals 00
  • Negative semidefinite: the positive index of inertia equals 00

Application 2: deciding the positive definiteness of a matrix

  • Positive definite: all eigenvalues are positive
  • Negative definite: all eigenvalues are negative
  • Positive semidefinite: all eigenvalues are nonnegative
  • Negative semidefinite: all eigenvalues are nonpositive

Completing the Square

The Basic Idea

Idea: Eliminate the cross terms step by step by completing the square, until the standard form is reached.

Steps

Steps:

  1. Choose one variable and complete the square for its squared term together with the cross terms
  2. Introduce a new variable to replace the completed expression
  3. Repeat the process until all cross terms are eliminated
  4. Obtain the standard form

Example

Example 2: Reduce the quadratic form Q(x1,x2,x3)=x12+2x22+3x32+2x1x2+2x1x3+4x2x3Q(x_1, x_2, x_3) = x_1^2 + 2x_2^2 + 3x_3^2 + 2x_1x_2 + 2x_1x_3 + 4x_2x_3 to standard form by completing the square.

Solution:

  1. Q=x12+2x1x2+2x1x3+2x22+4x2x3+3x32Q = x_1^2 + 2x_1x_2 + 2x_1x_3 + 2x_2^2 + 4x_2x_3 + 3x_3^2
  2. =(x1+x2+x3)2−x22−x32−2x2x3+2x22+4x2x3+3x32= (x_1 + x_2 + x_3)^2 - x_2^2 - x_3^2 - 2x_2x_3 + 2x_2^2 + 4x_2x_3 + 3x_3^2
  3. =(x1+x2+x3)2+x22+2x2x3+2x32= (x_1 + x_2 + x_3)^2 + x_2^2 + 2x_2x_3 + 2x_3^2
  4. =(x1+x2+x3)2+(x2+x3)2+x32= (x_1 + x_2 + x_3)^2 + (x_2 + x_3)^2 + x_3^2
  5. Put y1=x1+x2+x3y_1 = x_1 + x_2 + x_3, y2=x2+x3y_2 = x_2 + x_3, y3=x3y_3 = x_3
  6. Then Q=y12+y22+y32Q = y_1^2 + y_2^2 + y_3^2

Exercises

Exercise 1

Reduce the quadratic form Q(x1,x2)=2x12+4x1x2+3x22Q(x_1,x_2) = 2x_1^2 + 4x_1x_2 + 3x_2^2 to standard form by an orthogonal transformation.

congruence transformationorthogonal transformationstandard formeigenvalues

Approach: Use the orthogonal transformation method: diagonalise the symmetric matrix of the quadratic form, normalise the eigenvectors to get an orthogonal matrix, and read the standard form off the eigenvalues.

Steps:

  1. Matrix representation: A=(2223)A = \begin{pmatrix} 2 & 2 \\ 2 & 3 \end{pmatrix}
  2. Characteristic equation: ∣A−λI∣=λ2−5λ+2=0|A - \lambda I| = \lambda^2 - 5\lambda + 2 = 0
  3. Eigenvalues: λ1=1\lambda_1 = 1, λ2=4\lambda_2 = 4
  4. Eigenvectors:
    • λ1=1\lambda_1 = 1: x⃗1=(1,−1)\vec{x}_1 = (1, -1)
    • λ2=4\lambda_2 = 4: x⃗2=(1,1)\vec{x}_2 = (1, 1)
  5. Normalisation:
    • q⃗1=12(1,−1)\vec{q}_1 = \frac{1}{\sqrt{2}}(1, -1)
    • q⃗2=12(1,1)\vec{q}_2 = \frac{1}{\sqrt{2}}(1, 1)
  6. Orthogonal matrix: Q=12(11−11)Q = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}
  7. Standard form: Q=y12+4y22Q = y_1^2 + 4y_2^2

Answer:Q=y12+4y22Q = y_1^2 + 4y_2^2

Exercise 2

Reduce the quadratic form Q(x1,x2)=x12+4x1x2+4x22Q(x_1, x_2) = x_1^2 + 4x_1x_2 + 4x_2^2 to standard form by completing the square.

completing the squarestandard formquadratic form

Approach: Complete the square so that the cross term disappears into a single squared expression, then rename that expression as a new variable.

Steps:

  1. Q(x1,x2)=x12+4x1x2+4x22Q(x_1, x_2) = x_1^2 + 4x_1x_2 + 4x_2^2
  2. =(x1+2x2)2= (x_1 + 2x_2)^2
  3. Put y1=x1+2x2y_1 = x_1 + 2x_2, y2=x2y_2 = x_2
  4. Then Q=y12Q = y_1^2

Answer:Q=y12Q = y_1^2, where y1=x1+2x2y_1 = x_1 + 2x_2, y2=x2y_2 = x_2

Exercise 3

State the law of inertia.

law of inertiaindices of inertiacongruence transformation

Approach: Recall the statement of the law of inertia, which links the symmetry of a matrix with the invariance of its signature under congruence.

Steps:

The law of inertia: let AA be a real symmetric matrix of order nn. Then the positive index of inertia and the negative index of inertia of AA are unchanged under congruence transformations.

Answer:Congruence transformations do not change the positive or negative indices of inertia

Exercise 4

Decide whether the matrix A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} is positive definite.

positive definitenesseigenvalue criterionleading principal minors

Approach: Apply the eigenvalue criterion and, as a cross-check, the criterion based on the leading principal minors; either test decides the question on its own.

Steps:

  1. Method one: compute the eigenvalues
    • Characteristic equation: ∣A−λI∣=λ2−4λ+3=0|A - \lambda I| = \lambda^2 - 4\lambda + 3 = 0
    • Eigenvalues: λ1=1\lambda_1 = 1, λ2=3\lambda_2 = 3, both positive
  2. Method two: check the leading principal minors
    • ∣A1∣=2>0|A_1| = 2 > 0
    • ∣A2∣=3>0|A_2| = 3 > 0

Answer:It is a positive definite matrix

Exercise 5

Reduce the quadratic form Q(x1,x2,x3)=x12+2x22+3x32+2x1x2+2x1x3+4x2x3Q(x_1, x_2, x_3) = x_1^2 + 2x_2^2 + 3x_3^2 + 2x_1x_2 + 2x_1x_3 + 4x_2x_3 to standard form by the orthogonal transformation method.

orthogonal transformationstandard formeigenvalues and eigenvectors

Approach: Diagonalise the symmetric matrix of the form, normalise the eigenvectors so that they form an orthogonal basis, and then read the standard form off the eigenvalues.

Steps:

  1. Matrix representation: A=(111122123)A = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 2 & 2 \\ 1 & 2 & 3 \end{pmatrix}
  2. Characteristic equation: ∣A−λI∣=−λ3+6λ2−11λ+6=0|A - \lambda I| = -\lambda^3 + 6\lambda^2 - 11\lambda + 6 = 0
  3. Eigenvalues: λ1=1\lambda_1 = 1, λ2=2\lambda_2 = 2, λ3=3\lambda_3 = 3
  4. Eigenvectors:
    • λ1=1\lambda_1 = 1: x⃗1=(1,−1,0)\vec{x}_1 = (1, -1, 0)
    • λ2=2\lambda_2 = 2: x⃗2=(1,0,−1)\vec{x}_2 = (1, 0, -1)
    • λ3=3\lambda_3 = 3: x⃗3=(1,1,1)\vec{x}_3 = (1, 1, 1)
  5. Normalisation:
    • q⃗1=12(1,−1,0)\vec{q}_1 = \frac{1}{\sqrt{2}}(1, -1, 0)
    • q⃗2=12(1,0,−1)\vec{q}_2 = \frac{1}{\sqrt{2}}(1, 0, -1)
    • q⃗3=13(1,1,1)\vec{q}_3 = \frac{1}{\sqrt{3}}(1, 1, 1)
  6. Standard form: Q=y12+2y22+3y32Q = y_1^2 + 2y_2^2 + 3y_3^2

Answer:Q=y12+2y22+3y32Q = y_1^2 + 2y_2^2 + 3y_3^2

Summary

Symbols Used in This Article

SymbolTypePronunciation / NoteMeaning in This Article
B=PTAPB = P^TAPMathematical symbolB equals P transpose A PA congruence transformation: an invertible matrix PP turns AA into BB
A≅BA \cong BMathematical symbolA congruent BThe notation for the congruence of AA and BB
PPMathematical symbolmatrix PThe invertible matrix used in the congruence transformation
∣A−λI∣=0\lvert A - \lambda I\rvert = 0Mathematical symboldeterminant of A minus lambda IThe characteristic equation used to find the eigenvalues
λ1,λ2\lambda_1, \lambda_2Greek letterLambdaThe eigenvalues of the matrix, and the coefficients of the squared terms in the standard form
q⃗1,q⃗2\vec{q}_1, \vec{q}_2Mathematical symbolq one, q twoThe normalised eigenvectors, forming the columns of the orthogonal matrix QQ
2\sqrt{2}Mathematical symbolsquare root of twoThe normalisation factor 12\frac{1}{\sqrt{2}} used when scaling a vector to unit length

Found an issue with this content?

Tell us what could be improved.