MAT247H1/Unit 10
Unit 10 · Algebra II

Rational Form, Bilinear & Quadratic Forms

Two closing threads. The rational canonical form classifies operators over any field, with no splitting assumption. And bilinear forms generalise the inner product by dropping positivity — which is what turns the spectral theorem into a classification of quadratic surfaces.

By the end you can
Why it matters & where it comes from
Why it exists

Jordan form needs the characteristic polynomial to split, which fails over $\mathbb{R}$ and badly over $\mathbb{Q}$. The rational form needs nothing: it is built from the invariant factors, which live in the base field. Quadratic forms, meanwhile, are what an inner product becomes when positivity is dropped.

In the real world

The second-derivative test in multivariable calculus is a statement about the signature of the Hessian quadratic form. Special relativity uses the indefinite form with signature $(1,3)$. Conic sections and quadric surfaces are classified entirely by signature.

Story & open questions

Sylvester proved his law of inertia in 1852, showing the signature is a genuine invariant. Over $\mathbb{Q}$ the classification of quadratic forms needs the Hasse–Minkowski theorem and $p$-adic numbers — a striking jump in difficulty from the real case.

Companion matrices and the rational form

Definition

For a monic polynomial $p(t)=t^k+a_{k-1}t^{k-1}+\cdots+a_0$, the companion matrix $C(p)$ is the $k\times k$ matrix with $1$s on the subdiagonal and $-a_0,\dots,-a_{k-1}$ down the last column. Both its characteristic and its minimal polynomial equal $p$.

Definition

A subspace is $T$-cyclic if it is $\operatorname{span}\{v,Tv,T^2v,\dots\}$ for some $v$. On such a subspace, with that ordered basis, the matrix of $T$ is a companion matrix.

Theorem Rational canonical form

Let $T$ be an operator on a finite-dimensional space over any field $F$. Then $V$ is a direct sum of $T$-cyclic subspaces, and there is a basis in which

$[T]=C(p_1)\oplus C(p_2)\oplus\cdots\oplus C(p_r)$ with $p_1\mid p_2\mid\cdots\mid p_r$.

The monic polynomials $p_i$ — the invariant factors — are unique. Here $p_r$ is the minimal polynomial and $\prod_ip_i$ is the characteristic polynomial.

Two matrices over $F$ are similar if and only if they have the same invariant factors. Unlike the Jordan form this needs no splitting hypothesis, so it settles similarity over $\mathbb{Q}$ and $\mathbb{R}$ too.

Example Where Jordan form is unavailable

Over $\mathbb{R}$, take the rotation $A=\left(\begin{smallmatrix}0&-1\\1&0\end{smallmatrix}\right)$.

$f(t)=t^2+1$ is irreducible over $\mathbb{R}$, so there is no real eigenvalue and no real Jordan form.
But $\mathbb{R}^2$ is $T$-cyclic, generated by $e_1$ since $Ae_1=e_2$. The rational canonical form is the single companion matrix $C(t^2+1)=\left(\begin{smallmatrix}0&-1\\1&0\end{smallmatrix}\right)$ — the matrix is already in rational form.
Which form to reach for. Jordan form is more readable but demands a split characteristic polynomial. Rational form always exists and settles similarity over the base field. Over $\mathbb{C}$ they carry the same information.

Bilinear forms

Definition

A bilinear form on $V$ over $F$ is a map $B:V\times V\to F$ linear in each argument separately. It is symmetric if $B(u,v)=B(v,u)$, and skew-symmetric if $B(u,v)=-B(v,u)$.

A real inner product is a symmetric bilinear form that is also positive definite. Dropping positivity is exactly the generalisation here; over $\mathbb{C}$ one usually keeps conjugation and studies sesquilinear forms instead.

Theorem Matrix representation

Fix a basis $\beta=\{v_1,\dots,v_n\}$ and let $A_{ij}=B(v_i,v_j)$. Then $B(u,v)=[u]_\beta^t\,A\,[v]_\beta$. The form is symmetric iff $A^t=A$.

Theorem Change of basis is congruence

If $Q$ is the change-of-basis matrix then the new matrix is $Q^tAQ$. Two matrices related this way are called congruent.

This is not similarity: similarity uses $Q^{-1}AQ$. The two coincide only when $Q$ is orthogonal, which is why the spectral theorem is so useful here — it lets one change of basis do both jobs at once.

Quadratic forms and signature

Definition

The quadratic form attached to a symmetric bilinear form is $q(v)=B(v,v)$. Over a field where $2$ is invertible, $B$ is recovered by polarization: $B(u,v)=\tfrac12\left(q(u+v)-q(u)-q(v)\right)$, so forms and quadratic forms are interchangeable data.

Theorem Principal axes

Every real quadratic form can be diagonalized by an orthogonal change of basis: there is an orthogonal $Q$ with $Q^tAQ=D$ diagonal, and then $q(v)=\sum_i\lambda_iy_i^2$ in the new coordinates $y=Q^tv$.

This is the real spectral theorem: $A$ is symmetric, so it is orthogonally diagonalizable, and for orthogonal $Q$ congruence and similarity agree.

Theorem Sylvester's law of inertia

Any real symmetric $A$ is congruent to a diagonal matrix with entries $1$, $-1$ and $0$ only. The counts $(n_+,n_-,n_0)$ — the signature — do not depend on the diagonalization chosen.

Rescaling each nonzero diagonal entry by $1/\sqrt{|\lambda_i|}$ reduces it to $\pm1$; invariance holds because $n_+$ is the largest dimension of a subspace on which $q$ is positive definite, a description that never mentions a basis.

Example Identify a conic

Classify $q(x,y)=2x^2+2xy+2y^2=1$.

The matrix is $A=\left(\begin{smallmatrix}2&1\\1&2\end{smallmatrix}\right)$ — note the off-diagonal entries are half the $xy$ coefficient.
From Unit 6 the eigenvalues are $3$ and $1$, both positive, so the signature is $(2,0,0)$ and the curve is an ellipse.
In principal axes the equation is $3y_1^2+y_2^2=1$, with semi-axes $1/\sqrt3$ and $1$ along the eigenvectors $(1,1)$ and $(1,-1)$.
Example Signature decides the shape
$(2,0)$ in the plane: ellipse. $(1,1)$: hyperbola. $(1,0)$ with a zero eigenvalue: parallel lines or a parabola once linear terms enter.
In three variables $(3,0)$ is an ellipsoid, $(2,1)$ a hyperboloid of one sheet, $(1,2)$ a hyperboloid of two sheets. The signature is the entire classification.
Theorem Positive definiteness

A real symmetric $A$ is positive definite iff all eigenvalues are positive, iff the signature is $(n,0,0)$, iff every leading principal minor is positive (Sylvester's criterion). This is the second-derivative test: the Hessian's signature decides minimum, maximum, or saddle.

Common pitfalls

• Confusing congruence $Q^tAQ$ with similarity $Q^{-1}AQ$. They agree only for orthogonal $Q$.
• Forgetting the halves. In $q(x,y)=ax^2+bxy+cy^2$ the matrix has $b/2$ off the diagonal, not $b$.
• Thinking eigenvalues are congruence invariants. Only their signs are — that is the content of Sylvester's law.
• Expecting rational form to be easy to read. It is a complete invariant but far less transparent than Jordan form; use it when the field forces you.

Practice

Original problems written for this guide in the style of Friedberg, Insel & Spence exercises. Write a full solution before opening the answer.

Practice 1 · Companion matrix

Write $C(p)$ for $p(t)=t^3-2t+5$.

Answer
A $3\times3$ matrix with $1$s on the subdiagonal and last column $(-5,2,0)$, since $a_0=5$, $a_1=-2$, $a_2=0$.
Practice 2 · Form matrix

Find the matrix of $q(x,y)=3x^2-4xy+y^2$.

Answer
$\left(\begin{smallmatrix}3&-2\\-2&1\end{smallmatrix}\right)$ — half of $-4$ in each off-diagonal slot.
Practice 3 · Signature

Find the signature of $q(x,y)=x^2-y^2$ and name the curve $q=1$.

Answer
Already diagonal with eigenvalues $1,-1$: signature $(1,1,0)$, so $q=1$ is a hyperbola.
Practice 4 · Principal axes

Diagonalize $q(x,y)=5x^2+4xy+5y^2$ and classify $q=1$.

Solution
$A =\left(\begin{smallmatrix}5&2\\2&5\end{smallmatrix}\right)$ has eigenvalues $7$ and $3$ with eigenvectors $(1,1)$ and $(1,-1)$. Signature $(2,0,0)$: an ellipse, $7y_1^2+3y_2^2=1$.
Practice 5 · Positive definite test

Is $q(x,y)=x^2+4xy+y^2$ positive definite?

Solution
No. The matrix $\left(\begin{smallmatrix}1&2\\2&1\end{smallmatrix}\right)$ has determinant $-3<0$, so the eigenvalues have opposite signs. Concretely $q(1,-1)=1-4+1=-2<0$.
Practice 6 · Invariant factors

An operator has invariant factors $t-1$ and $(t-1)(t-2)$. Find its characteristic and minimal polynomials.

Solution
The characteristic polynomial is the product $(t-1)^2(t-2)$; the minimal polynomial is the largest factor $(t-1)(t-2)$. Since the minimal polynomial has distinct linear factors, the operator is diagonalizable.
Practice 7 · Congruence versus similarity

Show $I$ and $2I$ are congruent but not similar in $M_2(\mathbb{R})$.

Solution
With $Q=\sqrt2\,I$, $Q^tIQ=2I$, so they are congruent. They are not similar, since similar matrices share eigenvalues and these have $1$ versus $2$. Congruence preserves only signs.
Practice 8 · Rational over $\mathbb{Q}$

Why is the rational form the right tool for similarity over $\mathbb{Q}$?

Solution
Characteristic polynomials rarely split over $\mathbb{Q}$, so Jordan form usually does not exist there. Invariant factors are computed inside $\mathbb{Q}[t]$ and always exist, so they decide similarity without leaving the field.

Expanded topic checklist

Course coverage. This unit is part of the complete MAT247H1 topic map. It should cover the following items before you move on:

Textbook/source alignment

Use the current UofT MAT247H1 calendar topics as the coverage spine, and pair lecture notes with a Friedberg-Insel-Spence-style linear algebra text for extra reading. The exact assigned textbook should still be checked against the instructor syllabus.

Core theorem map

Cyclic subspaces give companion blocks and the rational form; symmetric bilinear forms give quadratic forms; the real spectral theorem diagonalizes them; and Sylvester's law says the signature is all that survives.

Study routine. For quadratic forms, always compute eigenvalue signs first. The signature answers most questions on its own, and exact eigenvalues are usually unnecessary.

Deep practice extensions

Use these after the main practice set. They are designed to force definition-level reasoning, theorem selection, and mixed application rather than routine calculation only.

Extension 1 · Why rational form

What advantage does it have over Jordan form?

Guide
It exists over every field, with no requirement that the characteristic polynomial splits.
Extension 2 · Invariant factors

How do they relate to the characteristic and minimal polynomials?

Guide
Their product is the characteristic polynomial; the last and largest is the minimal polynomial.
Extension 3 · Congruence invariant

What is preserved by congruence of real symmetric matrices?

Guide
The signature $(n_+,n_-,n_0)$ — the counts of positive, negative and zero eigenvalues. Their actual values are not preserved.
Extension 4 · Reading a surface

A quadratic form in three variables has signature $(2,1,0)$. What is $q=1$?

Guide
A hyperboloid of one sheet: two positive directions and one negative.