Ted123
- 428
- 0
Say I start with a quadratic form:
x^2 - y^2 - 2z^2 + 2xz - 4yz.
I complete the square to get:
(x+z)^2 - (y+2z)^2 + z^2.
(So the rank=3, signature=1)
The symmetric matrix representing the quadratic form wrt the standard basis for \mathbb{R}^3 is
A =\begin{bmatrix} 1 & 0 & 1 \\ 0 & -1 & -2 \\ 1 & -2 & -2 \end{bmatrix}
I want to find a change of basis matrix P such that
P^T A P = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 1 \end{bmatrix}
(the 'Sylvester' form - 1s, -1s, 0s on diagonal, 0s elsewhere).
From the complete the square form we can write the quadratic form in the coordinate basis (x+z), (y+2z), z:
\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{bmatrix}
Inverting this gives:
P = \begin{bmatrix} 1 & 0 & -1 \\ 0 & 1 & -2 \\ 0 & 0 & 1 \end{bmatrix}
(Note that we don't need to scale the columns here)
and we see that we get what we want.
However: what happens if you get a quadratic form that is not of full rank and you want to end up with 0s in the Sylvester form?
e.g. x^2 + 2xy + 2xz
Completing the square gives:
(x+y+z)^2 - (y+z)^2
so the rank=2, signature=0.
The symmetric matrix representing the quadratic form wrt the standard basis for \mathbb{R}^3 is
A =\begin{bmatrix} 1 & 1 & 1 \\ 1 & 0 & 0 \\ 1 & 0 & 0 \end{bmatrix}
We seek a change-of-basis matrix P such that we get
P^T AP = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 0 \end{bmatrix}
(the 'Sylvester' form).
Writing the complete the square form in a coordinate basis (x+y+z), (y+z), ... - where does the other basis vector come from?
x^2 - y^2 - 2z^2 + 2xz - 4yz.
I complete the square to get:
(x+z)^2 - (y+2z)^2 + z^2.
(So the rank=3, signature=1)
The symmetric matrix representing the quadratic form wrt the standard basis for \mathbb{R}^3 is
A =\begin{bmatrix} 1 & 0 & 1 \\ 0 & -1 & -2 \\ 1 & -2 & -2 \end{bmatrix}
I want to find a change of basis matrix P such that
P^T A P = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 1 \end{bmatrix}
(the 'Sylvester' form - 1s, -1s, 0s on diagonal, 0s elsewhere).
From the complete the square form we can write the quadratic form in the coordinate basis (x+z), (y+2z), z:
\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{bmatrix}
Inverting this gives:
P = \begin{bmatrix} 1 & 0 & -1 \\ 0 & 1 & -2 \\ 0 & 0 & 1 \end{bmatrix}
(Note that we don't need to scale the columns here)
and we see that we get what we want.
However: what happens if you get a quadratic form that is not of full rank and you want to end up with 0s in the Sylvester form?
e.g. x^2 + 2xy + 2xz
Completing the square gives:
(x+y+z)^2 - (y+z)^2
so the rank=2, signature=0.
The symmetric matrix representing the quadratic form wrt the standard basis for \mathbb{R}^3 is
A =\begin{bmatrix} 1 & 1 & 1 \\ 1 & 0 & 0 \\ 1 & 0 & 0 \end{bmatrix}
We seek a change-of-basis matrix P such that we get
P^T AP = \begin{bmatrix} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 0 \end{bmatrix}
(the 'Sylvester' form).
Writing the complete the square form in a coordinate basis (x+y+z), (y+z), ... - where does the other basis vector come from?