Quadratic Forms

Quadratic Forms

Quadratic Forms

  • a quadratic form on ℝ𝑛 is a function 𝑄 defined on ℝ𝑛 whose value at vector π‘£βˆŠβ„π‘› can be computed by:

    • 𝑄(𝑣) = 𝑣𝑇𝐴𝑣

  • where:

  • is a polynomial where all terms are of degree two (e.g. 𝑓(π‘₯,𝑦) = π‘₯2 + 3π‘₯𝑦 + 4𝑦2), where 𝑣=(π‘₯,𝑦) ∊ ℝ2)
  • is a special case of a bilinear form 𝐡: 𝑉⨯𝑉→𝐹 where the two sets of vectors 𝑣,π‘’βˆŠπ‘‰ are equal (i.e. 𝑣=𝑒):
    • for example, consider:
      • bilinear form 𝐡(𝑣,𝑒) = 𝑣1𝑒1 + 2𝑣1𝑒2 + 3𝑣2𝑒1+ 4𝑣2𝑒2
      • quadratic form 𝑄(𝑣) = (𝑣1)2 + 5𝑣1𝑣2 + 4(𝑣2)2
      • thus 𝑄(𝑣) = 𝐡(𝑣,𝑣)
  • not to be confused with a quadratic equation, which has only one variable and includes terms of degree two or less:

    • for example, 𝑓(π‘₯) = π‘₯2 + 5π‘₯ + 4, is a quadratic equation NOT a quadratic form 

Quadratic Form - Examples

 Simplest Quadratic Form

The simplest quadratic form is:

  • 𝑄(π‘₯) = π‘₯𝑇𝐼π‘₯ = ||π‘₯||2
 Other Examples

from matrix form to function form

without cross-product terms

 with cross-product terms

from function form to matrix form

𝑄(π‘₯) = 5π‘₯12 + 3π‘₯22 + 3π‘₯32 - π‘₯1π‘₯2 + 8π‘₯2π‘₯3

Quadratic Form - Changing Basis such that its Quadratic Form has no Cross-Products

Proof that any symmetric matrix 𝐴 can be rewritten to 𝐷 such that its quadratic form has no cross-products (see also Principal Axis Theorem below)

 Click here to expand...

Change of variable/basis is an equation of the form:

  • π‘₯ = 𝑃𝑦
  • 𝑦 = 𝑃-1π‘₯

𝑦 is the coordinate vector of π‘₯ relative to the basis of ℝ𝑛 determined by the columns of 𝑃

If the change of variable is made in a quadratic form π‘₯𝑇𝐴π‘₯

  • π‘₯𝑇𝐴π‘₯ = π‘₯𝑇𝐴π‘₯
  • π‘₯𝑇𝐴π‘₯ = (𝑃𝑦)𝑇𝐴𝑃𝑦
  • π‘₯𝑇𝐴π‘₯ = π‘¦π‘‡π‘ƒπ‘‡π΄π‘ƒπ‘¦
  • π‘₯𝑇𝐴π‘₯ = π‘¦π‘‡π·π‘¦ # Since 𝐴 is symmetric it guarantees an orthogonal matrix 𝑃 such that π‘ƒπ‘‡π΄π‘ƒ is a diagonal matrix 𝐷 (see proof here and Principal Axis Theorem below)

Example

 Click here to expand...

make a change of variable that transforms the quadratic form π‘₯𝑇𝐴π‘₯ into a quadratic form with no cross-product term

orthogonally diagonalize π΄

  • eigenvalues and eigenvectors of π΄
  • let
  • then
  • 𝐴 = 𝑃𝐷𝑃𝑇
  • and
  • 𝐷 = 𝑃-1𝐴𝑃 = 𝑃𝑇𝐴𝑃

a suitable change of variable is:

  • π‘₯ = 𝑃𝑦

where:

then:

  • π‘₯12 - 8π‘₯1π‘₯2 - 5π‘₯22 = π‘₯𝑇𝐴π‘₯
  • π‘₯12 - 8π‘₯1π‘₯2 - 5π‘₯22 = (𝑃𝑦)𝑇𝐴𝑃𝑦
  • π‘₯12 - 8π‘₯1π‘₯2 - 5π‘₯22 = π‘¦π‘‡(𝑃𝑇𝐴𝑃)𝑦
  • π‘₯12 - 8π‘₯1π‘₯2 - 5π‘₯22 = π‘¦π‘‡π·π‘¦
  • π‘₯12 - 8π‘₯1π‘₯2 - 5π‘₯22 = 3𝑦12 - 7𝑦22

𝑄(π‘₯) for π‘₯ = (2,-2)

solve π‘₯𝑇𝐴π‘₯:

  • π‘₯𝑇𝐴π‘₯ = π‘₯12 - 8π‘₯1π‘₯2 - 5π‘₯22
  • π‘₯𝑇𝐴π‘₯ = 22 - 8(2)(-2) - 5(-2)2
  • π‘₯𝑇𝐴π‘₯ = 16

find 𝑦 coordinates for π‘₯ = (2,-2):

solve 𝑦𝑇𝐷𝑦:

  • 𝑦𝑇𝐷𝑦 = 3𝑦12 - 7𝑦22
  • 𝑦𝑇𝐷𝑦 = 3(6/√5)2 - 7(-2/√5)2
  • 𝑦𝑇𝐷𝑦 = 16

Principal Axis/Axes Theorem - & Geometric View

 Click here to expand...

Principal Axis Theorem

The principal Axis Theorem states that the principal axes are perpendicular

Let 𝐴 be an π‘›βœ•π‘› symmetric matrix. Then there is an orthogonal change of variable π‘₯ = 𝑃𝑦 that transforms the quadratic form π‘₯𝑇𝐴π‘₯ into a quadratic form π‘¦π‘‡π·π‘¦ with no cross-product terms

Principal Axis Theorem - Geometric View

Say: 𝑄(π‘₯) = π‘₯𝑇𝐴π‘₯ and π΄ is a 2βœ•2 symmetric matrix

Then the set of all π‘₯'s that satisfy

  • 𝑄(π‘₯) = π‘₯𝑇𝐴π‘₯ = 𝑐

Either corresponds to a graph looking like a:

  • ellipse (circle)
  • hyperbola
  • 2 intersecting lines
  • single point
  • no points at all

If 𝐴 is a diagonal matrix then the graph is in "standard form"

If 𝐴 is NOT a diagonal matrix then the graph is rotated out of "standard form"

π‘Žπ‘₯12 - 𝑏π‘₯1π‘₯2 + 𝑐π‘₯22 = 1

π‘Žπ‘₯12 - 𝑏π‘₯1π‘₯2 - 𝑐π‘₯22 = 1

Quadratic Form - Matrix Form Duality & Classifying Quadratic Functions

 Click here to expand...

see Positive/Negative Definite/Semi-Definite Indefinite Matrix

If Quadratic Form 𝑄(π‘₯)If Matrix Form 𝐴 (whose quadratic form is π‘₯𝑇𝐴π‘₯)then 𝑄(π‘₯) and 𝐴 isClass
if 𝑄(π‘₯) > 0 for all π‘₯ ≠ 0if eigenvalues of 𝐴 are all positivethen 𝑄(π‘₯) and 𝐴 ispositive definite𝑄(π‘₯) is strictly convex function
if 𝑄(π‘₯) < 0 for all π‘₯ ≠ 0if eigenvalues of 𝐴 are all negativethen 𝑄(π‘₯) and 𝐴 isnegative definite𝑄(π‘₯) is strictly concave function
if 𝑄(π‘₯) can be positive and negativeif eigenvalues of 𝐴 are both positive and negativethen 𝑄(π‘₯) and 𝐴 isindefinite𝑄(π‘₯) is neither convex nor concave
if 𝑄(π‘₯) ≥ 0 for all π‘₯if eigenvalues of 𝐴 are all positive or zerothen 𝑄(π‘₯) and 𝐴 ispositive semi-definite𝑄(π‘₯) is a convex function
if 𝑄(π‘₯) ≤ 0 for all π‘₯if eigenvalues of 𝐴 are all negative or zerothen 𝑄(π‘₯) and 𝐴 isnegative semi-definite𝑄(π‘₯) is a concave function

Quadratic Matrix Duality & Classification

  • by the principal axis theorem, there exists a change of variables/basis (π‘₯ = 𝑃𝑦) such that:
    • 𝑄(π‘₯) = π‘₯𝑇𝐴π‘₯ = 𝑦𝑇𝐷𝑦 = πœ†1𝑦12 + ... + πœ†π‘›π‘¦π‘›2
  • where:
    • πœ†π‘– - are the eigenvalues of π΄
  • 𝑦𝑖is always positive
  • thus, the eigenvalues (πœ†π‘–) determine the sign of 𝑄(π‘₯)

Resources