Survey of Mathematics

3.2 Quadratic forms and principal axes

An expression like 5x² + 4xy + 2y² is a symmetric matrix in disguise. Rotating to the eigenvector axes removes the cross term, which classifies every conic and quadric, and decides whether a matrix is positive definite.

Apostol, not taughtApostol 5.10 to 5.15Strang, Introduction to Linear Algebra, 6.5Axler 7C

In JEE you met ax2+2hxy+by2=1ax^2 + 2hxy + by^2 = 1 and memorised which signs make an ellipse or a hyperbola. The xyxy term is the nuisance: it tilts the curve. This chapter removes it for good. Every such expression is xTAxx^{\mathsf T}Ax for a symmetric matrix AA, and the spectral theorem (3.1) says that in the eigenvector coordinates AA is diagonal, so the cross term vanishes. The same move decides whether a critical point of a function is a minimum (5.6) and whether gradient descent behaves (5.10).

Before you start

Chapter 3.1: the spectral theorem, A=QΛQTA = Q\Lambda Q^{\mathsf T}.

Quick checkFor a symmetric matrix, the eigenvectors for different eigenvalues are:
Quick checkIf QQ has orthonormal columns, what is ∥Qy∥\lVert Qy \rVert?

The picture

Look at what the symmetric map does to the unit square, and turn on the eigenlines: the perpendicular axes along (1,1)(1, 1) and (1,−1)(1, -1) are the natural axes of the matrix. The ellipse xTAx=1x^{\mathsf T}Ax = 1 for this AA has its long and short axes along exactly these lines. In coordinates along them the matrix is diagonal, and the ellipse’s equation has no cross term.

Where this came from· Principal axes from Euler to Sylvester

Finding the axes of a tilted ellipse or ellipsoid is the oldest form of this problem. Euler met it for spinning bodies in the 1700s, and in the 1820s Cauchy showed that the same equation gives the principal axes of a quadric surface and the secular equation of planetary astronomy. The next question is what stays the same however you diagonalize. In 1852 James Joseph Sylvester published a proof that, for a real quadratic form, the number of positive, negative and zero coefficients never changes, and he named it the “law of inertia”, the name it still has. Carl Jacobi had found a proof earlier, but it appeared only in 1857, after his death.

Definitions and theorems

Definition A

Quadratic form

A quadratic form on Rn\mathbb R^n is q(x)=xTAxq(x) = x^{\mathsf T}Ax for a symmetric matrix AA. In two variables, q(x,y)=ax2+2bxy+cy2q(x, y) = ax^2 + 2bxy + cy^2 corresponds to A=[abbc]A = \begin{bmatrix}a&b\\b&c\end{bmatrix}: the cross-term coefficient is split equally between the two off-diagonal entries.

In one lineA function q(x)=xTAx=∑i,jaijxixjq(x) = x^{\mathsf T}Ax = \sum_{i,j} a_{ij}x_ix_j with AA symmetric: a sum of squares and cross terms.

Why it existsEvery second-degree expression without linear terms is one, and its behaviour is decided entirely by the eigenvalues of AA.

Worked example
Write q(x,y)=5x2+4xy+2y2q(x, y) = 5x^2 + 4xy + 2y^2 as xTAxx^{\mathsf T}Ax.

Solution.

  1. Diagonal entries. The x2x^2 and y2y^2 coefficients: a11=5a_{11} = 5, a22=2a_{22} = 2. xTAxx^{\mathsf T}Ax contributes a11x2+a22y2a_{11}x^2 + a_{22}y^2.
  2. Off-diagonal entries. The cross term is (a12+a21)xy=4xy(a_{12} + a_{21})xy = 4xy, and symmetry forces a12=a21=2a_{12} = a_{21} = 2. Splitting equally is what makes AA symmetric, so that 3.1 applies.

Answer. A=[5222]A = \begin{bmatrix}5&2\\2&2\end{bmatrix}. Check: [xy][5222][xy]=5x2+4xy+2y2\begin{bmatrix}x&y\end{bmatrix}\begin{bmatrix}5&2\\2&2\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix} = 5x^2 + 4xy + 2y^2.

Theorem A Apostol Thm 5.11

Principal axes theorem

Let A=QΛQTA = Q\Lambda Q^{\mathsf T} (spectral theorem). Substituting x=Qyx = Qy, that is y=QTxy = Q^{\mathsf T}x (the coordinates of xx in the eigenbasis), gives

xTAx=λ1y12+λ2y22+⋯+λnyn2.x^{\mathsf T}Ax = \lambda_1 y_1^2 + \lambda_2 y_2^2 + \dots + \lambda_n y_n^2.

The change from xx to yy turns the axes without stretching anything, because ∥Qy∥=∥y∥\lVert Qy \rVert = \lVert y \rVert. If det⁡Q=−1\det Q = -1 the change also flips the picture; negating one eigenvector makes det⁡Q=+1\det Q = +1, a pure rotation.

In one lineRotating to an orthonormal eigenbasis of A turns xTAxx^{\mathsf T}Ax into λ1y12+⋯+λnyn2\lambda_1 y_1^2 + \dots + \lambda_n y_n^2, with no cross terms.

Why it is trueSubstitute x = Qy with A = QΛQᵀ: the Q's cancel and only the diagonal Λ is left.

ProofApostol 5.11
The idea: Substitute and let Q^T Q = I cancel.
xTAx=yTQTAQ yx^{\mathsf T}Ax = y^{\mathsf T}Q^{\mathsf T}AQ\,y.
Substitute x=Qyx = Qy, and (Qy)T=yTQT(Qy)^{\mathsf T} = y^{\mathsf T}Q^{\mathsf T}.
QTAQ=QTQΛQTQ=ΛQ^{\mathsf T}AQ = Q^{\mathsf T}Q\Lambda Q^{\mathsf T}Q = \Lambda.
A=QΛQTA = Q\Lambda Q^{\mathsf T} and QTQ=IQ^{\mathsf T}Q = I on both sides.
yTΛy=∑iλiyi2y^{\mathsf T}\Lambda y = \sum_i \lambda_i y_i^2. ■\blacksquare
A diagonal matrix's quadratic form has no cross terms.
Definition A

Principal axes

The principal axes of q(x)=xTAxq(x) = x^{\mathsf T}Ax are the lines through an orthonormal eigenbasis q1,…,qnq_1, \dots, q_n of AA.

In one lineThe orthonormal eigenvectors of A: the perpendicular directions in which the quadratic form has no cross terms.

Why it existsThey are the natural axes of the ellipse, ellipsoid or saddle that the form describes.

Worked example
Classify the conic 5x2+4xy+2y2=15x^2 + 4xy + 2y^2 = 1 and find its axes.

Solution. Each step of the step-through below is one numbered stage of the method: matrix, eigenvalues, axes, rotate, read off.

Answer. An ellipse. Its nearest points to the origin lie along ±(2,1)\pm(2, 1) at distance 16≈0.41\frac1{\sqrt6} \approx 0.41, and its farthest points along ±(1,−2)\pm(1, -2) at distance 11. In general, along a unit eigenvector with eigenvalue λ>0\lambda > 0 the curve xTAx=1x^{\mathsf T}Ax = 1 is at distance 1λ\frac1{\sqrt\lambda}, so the biggest eigenvalue gives the nearest points and the smallest gives the farthest.

Quick checkx2−6xy+y2=1x^2 - 6xy + y^2 = 1: ellipse or hyperbola?
Worked example Apostol 5.15 style
Find the principal axes of 7x2+6xy−y2=17x^2 + 6xy - y^2 = 1 and say what curve it is.

Solution.

  1. Matrix. The cross term 6xy6xy splits as 3+33 + 3, so A=[733−1]A = \begin{bmatrix}7&3\\3&-1\end{bmatrix}. Half the cross coefficient goes in each off-diagonal slot.
  2. Eigenvalues. Trace 66, determinant −7−9=−16-7 - 9 = -16, so λ2−6λ−16=(λ−8)(λ+2)=0\lambda^2 - 6\lambda - 16 = (\lambda - 8)(\lambda + 2) = 0 and λ=8,−2\lambda = 8, -2. Characteristic polynomial from trace and determinant (2.8). Opposite signs, because the determinant is negative.
  3. Eigenvectors. For λ=8\lambda = 8: A−8I=[−133−9]A - 8I = \begin{bmatrix}-1&3\\3&-9\end{bmatrix}, null vector (3,1)(3, 1). For λ=−2\lambda = -2: A+2I=[9331]A + 2I = \begin{bmatrix}9&3\\3&1\end{bmatrix}, null vector (1,−3)(1, -3). Their dot product is 3−3=03 - 3 = 0, perpendicular as 3.1 promises. Divide each by 10\sqrt{10} to make them unit vectors.
  4. Rotate. In coordinates y1,y2y_1, y_2 along (3,1)/10(3, 1)/\sqrt{10} and (1,−3)/10(1, -3)/\sqrt{10} the equation is 8y12−2y22=18y_1^2 - 2y_2^2 = 1. Principal axes theorem: the cross term is gone.
  5. Read off. y121/8−y221/2=1\frac{y_1^2}{1/8} - \frac{y_2^2}{1/2} = 1 is a hyperbola. It crosses the line along (3,1)(3, 1) at distance 18≈0.35\frac1{\sqrt8} \approx 0.35 and never meets the line along (1,−3)(1, -3). On the y2y_2-axis, y1=0y_1 = 0 would need −2y22=1-2y_2^2 = 1, which has no real solution.

Answer. A hyperbola with axes along (3,1)(3, 1) and (1,−3)(1, -3).

Your answerWhat is the largest value of 7x2+6xy−y27x^2 + 6xy - y^2 on the unit circle x2+y2=1x^2 + y^2 = 1?
Your answerThe ellipse 3x2+2xy+3y2=83x^2 + 2xy + 3y^2 = 8 has eigenvalues 4 (along (1,1)(1,1)) and 2 (along (1,−1)(1,-1)). How long is its half-axis along (1,1)(1,1)?
Your answerThe curve 2x2+6xy+5y2=12x^2 + 6xy + 5y^2 = 1 has matrix [2bb5]\begin{bmatrix}2&b\\b&5\end{bmatrix}. What is bb?
Quick checkWhat curve is x2−2xy+y2=1x^2 - 2xy + y^2 = 1?

Positive definite matrices

Definition A

Positive definite

A symmetric matrix AA is positive definite if xTAx>0x^{\mathsf T}Ax > 0 for every x≠Ox \ne O, and positive semidefinite if xTAx≥0x^{\mathsf T}Ax \ge 0 for every xx. Negative (semi)definite is defined with the inequalities reversed, and AA is indefinite if xTAxx^{\mathsf T}Ax takes both signs.

In one lineA symmetric A is positive definite if xTAx>0x^{\mathsf T}Ax > 0 for every x≠Ox \ne O; equivalently, all its eigenvalues are positive.

Why it existsIt is the matrix version of 'a positive number': a bowl shape, a minimum, a valid covariance, a convex loss.

Theorem A Apostol 5.12; Strang 6.5

Positive definite iff positive eigenvalues

A real symmetric matrix AA is positive definite if and only if all its eigenvalues are positive.

In one lineA symmetric matrix is positive definite exactly when every eigenvalue is positive.

Why it is trueIn principal axes the form is Σλᵢyᵢ², which is positive for every y ≠ 0 exactly when every λᵢ > 0.

ProofStrang 6.5
The idea: In principal-axis coordinates the form is Σ λᵢ yᵢ². (⇐) all positive coefficients give a positive sum when some yᵢ ≠ 0. (⇒) plug in an eigenvector.
xTAx=∑iλiyi2x^{\mathsf T}Ax = \sum_i \lambda_i y_i^2 with y=QTxy = Q^{\mathsf T}x.
Principal axes theorem; y=QTxy = Q^{\mathsf T}x is non-zero exactly when xx is, since QQ is invertible.
If every λi>0\lambda_i > 0 and x≠Ox \ne O, the sum is positive.
(⇐\Leftarrow) Each term is ≥0\ge 0 and some yi≠0y_i \ne 0 gives a positive term.
If AA is positive definite, then 0<qiTAqi=qiT(λiqi)=λi0 < q_i^{\mathsf T}Aq_i = q_i^{\mathsf T}(\lambda_i q_i) = \lambda_i. ■\blacksquare
(⇒\Rightarrow) Test the form on a unit eigenvector qiq_i.
Worked example
Is A=[2−10−12−10−12]A = \begin{bmatrix}2&-1&0\\-1&2&-1\\0&-1&2\end{bmatrix} positive definite?

Solution.

  1. Use the definition directly. xTAx=2x12+2x22+2x32−2x1x2−2x2x3x^{\mathsf T}Ax = 2x_1^2 + 2x_2^2 + 2x_3^2 - 2x_1x_2 - 2x_2x_3. Expand; each off-diagonal pair contributes twice.
  2. Write it as a sum of squares. =x12+(x1−x2)2+(x2−x3)2+x32= x_1^2 + (x_1 - x_2)^2 + (x_2 - x_3)^2 + x_3^2. Expand to check: x12+x12−2x1x2+x22+x22−2x2x3+x32+x32x_1^2 + x_1^2 - 2x_1x_2 + x_2^2 + x_2^2 - 2x_2x_3 + x_3^2 + x_3^2.
  3. Positive unless x=Ox = O. All four squares are 0 only if x1=0x_1 = 0, x2=x1x_2 = x_1, x3=x2x_3 = x_2, so x=Ox = O. A sum of squares is zero only when each square is.

Answer. Positive definite. (Its eigenvalues are 2−2,2,2+22 - \sqrt2, 2, 2 + \sqrt2, all positive.) This matrix is the discrete second derivative, and it appears in every finite-difference simulation of heat flow.

Beyond the course: for understanding· Quick tests: leading minors (Sylvester's criterion)

A symmetric matrix is positive definite iff all its leading principal minors (the determinants of the top-left 1×11\times1, 2×22\times2, …, n×nn\times n blocks) are positive. For [abbc]\begin{bmatrix}a&b\\b&c\end{bmatrix}: a>0a > 0 and ac−b2>0ac - b^2 > 0. For the 3×33\times3 example: 22, 33, 44, all positive. This is the test behind the 375 second-derivative test (5.6). For two variables you can prove it yourself with trace and determinant (worked example below). The general proof is in Strang 6.5, where the pivots of elimination turn out to be ratios of leading minors.

Worked example
For which kk is A=[1kk4]A = \begin{bmatrix}1&k\\k&4\end{bmatrix} positive definite?

Solution.

  1. Reduce to the eigenvalues. By the theorem, we need both eigenvalues positive. That is the equivalence proved above.
  2. Use trace and determinant. For a 2×22 \times 2 matrix, the trace is λ1+λ2\lambda_1 + \lambda_2 and the determinant is λ1λ2\lambda_1\lambda_2. Both eigenvalues are positive exactly when the product is positive and the sum is positive. A positive product means the same sign, and then a positive sum means both are positive. Conversely, two positive numbers have positive sum and product.
  3. Compute. Trace =5>0= 5 > 0 always. Determinant =4−k2= 4 - k^2, which is positive when k2<4k^2 < 4. The trace does not involve kk, so only the determinant restricts kk.
  4. Solve. −2<k<2-2 < k < 2. k2<4k^2 < 4 means ∣k∣<2|k| < 2.

Answer. Positive definite exactly for −2<k<2-2 < k < 2. At k=±2k = \pm 2 the determinant is 0 (positive semidefinite, eigenvalues 00 and 55), and beyond that the matrix is indefinite. This agrees with the leading-minor test: 1>01 > 0 and 4−k2>04 - k^2 > 0.

Your answerThe matrix [3kk12]\begin{bmatrix}3&k\\k&12\end{bmatrix} is positive definite exactly when ∣k∣|k| is less than what number?
Worked example
Prove: for any real matrix BB, the matrix BTBB^{\mathsf T}B is positive semidefinite, and positive definite when the columns of BB are independent.

Solution.

  1. Check it is symmetric. (BTB)T=BT(BT)T=BTB(B^{\mathsf T}B)^{\mathsf T} = B^{\mathsf T}(B^{\mathsf T})^{\mathsf T} = B^{\mathsf T}B. The definition of positive (semi)definite is for symmetric matrices, so this comes first.
  2. Write the quadratic form. xTBTBx=(Bx)T(Bx)x^{\mathsf T}B^{\mathsf T}Bx = (Bx)^{\mathsf T}(Bx). (Bx)T=xTBT(Bx)^{\mathsf T} = x^{\mathsf T}B^{\mathsf T}.
  3. Recognize a length. (Bx)T(Bx)=∥Bx∥2≥0(Bx)^{\mathsf T}(Bx) = \lVert Bx\rVert^2 \ge 0. A vector dotted with itself is its squared length. This gives semidefinite.
  4. When is it zero? ∥Bx∥2=0\lVert Bx\rVert^2 = 0 only if Bx=OBx = O. If the columns are independent, Bx=OBx = O forces x=Ox = O. That is the definition of independent columns (2.2).
  5. Conclude. For x≠Ox \ne O the form is strictly positive.

Answer. BTBB^{\mathsf T}B is positive semidefinite always, and positive definite when BB has independent columns. ■\blacksquare Test: B=[1111]B = \begin{bmatrix}1&1\\1&1\end{bmatrix} has dependent columns, BTB=[2222]B^{\mathsf T}B = \begin{bmatrix}2&2\\2&2\end{bmatrix}, and x=(1,−1)x = (1, -1) gives xTBTBx=0x^{\mathsf T}B^{\mathsf T}Bx = 0: semidefinite but not definite.

Worked example
Prove: if AA is positive definite, then AA is invertible and A−1A^{-1} is positive definite. Test on A=[2112]A = \begin{bmatrix}2&1\\1&2\end{bmatrix}.

Solution.

  1. Eigenvalues. A=QΛQTA = Q\Lambda Q^{\mathsf T} with every λi>0\lambda_i > 0. The theorem above.
  2. Invertible. det⁡A=λ1⋯λn>0\det A = \lambda_1\cdots\lambda_n > 0, so det⁡A≠0\det A \ne 0. The determinant is the product of the eigenvalues (2.8).
  3. Write the inverse. A−1=(QΛQT)−1=QΛ−1QTA^{-1} = (Q\Lambda Q^{\mathsf T})^{-1} = Q\Lambda^{-1}Q^{\mathsf T}. The inverse of a product reverses the order, and Q−1=QTQ^{-1} = Q^{\mathsf T}, (QT)−1=Q(Q^{\mathsf T})^{-1} = Q.
  4. Read off its eigenvalues. Λ−1=diag⁡(1λ1,…,1λn)\Lambda^{-1} = \operatorname{diag}(\frac1{\lambda_1}, \dots, \frac1{\lambda_n}), all positive. The reciprocal of a positive number is positive. This is again a spectral decomposition, so these are the eigenvalues of A−1A^{-1}.
  5. Symmetric. (A−1)T=(AT)−1=A−1(A^{-1})^{\mathsf T} = (A^{\mathsf T})^{-1} = A^{-1}, so by the theorem A−1A^{-1} is positive definite.
  6. Test. A−1=13[2−1−12]A^{-1} = \frac13\begin{bmatrix}2&-1\\-1&2\end{bmatrix}, with eigenvalues 13\frac13 and 11, the reciprocals of 33 and 11.

Answer. A−1A^{-1} exists and is positive definite, with eigenvalues 1λi\frac1{\lambda_i}. ■\blacksquare

Quick checkWhich matrix is positive definite?
Quick checkIf AA is positive definite, what can you say about its diagonal entries aiia_{ii}?
Proof workshopRebuild: positive eigenvalues imply positive definite

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Where it is used

    Used inside maths· Inside maths: maxima, minima and saddles

    Near a critical point, Taylor’s theorem in two variables (5.6) says f(a+h)≈f(a)+12hTHhf(a + h) \approx f(a) + \frac12 h^{\mathsf T}Hh, where HH is the symmetric Hessian matrix of second derivatives. Positive definite HH: a minimum. Negative definite: a maximum. Indefinite: a saddle. The 375 test ”fxx>0f_{xx} > 0 and fxxfyy−fxy2>0f_{xx}f_{yy} - f_{xy}^2 > 0 means a minimum” is Sylvester’s criterion for 2×22\times2.

    Used in the real world· Engineering and data: energy, stiffness and covariance

    In a structure of springs and beams, the stored energy is 12xTKx\frac12 x^{\mathsf T}Kx where KK is the symmetric stiffness matrix; KK positive definite means every displacement costs energy, so the structure is stable. Finite-element software checks this before solving. In statistics, a covariance matrix is always positive semidefinite, because the variance of any combination wTXw^{\mathsf T}X of the variables is wTΣw≥0w^{\mathsf T}\Sigma w \ge 0. Its principal axes are the principal components of 3.4.

    Traps

    Watch out· Split the cross term in half

    ax2+2bxy+cy2ax^2 + 2bxy + cy^2 has matrix [abbc]\begin{bmatrix}a&b\\b&c\end{bmatrix}, not [a2b0c]\begin{bmatrix}a&2b\\0&c\end{bmatrix}. The non-symmetric version gives the same qq but wrong eigenvalues.

    Watch out· Positive entries do not mean positive definite

    [1221]\begin{bmatrix}1&2\\2&1\end{bmatrix} has all positive entries and eigenvalues 3,−13, -1: indefinite. Check eigenvalues or minors, never entries.

    Problems

    check

    Write the matrix of q(x,y,z)=x2+3y2−z2+4xzq(x, y, z) = x^2 + 3y^2 - z^2 + 4xz.

    Solution

    [10203020−1]\begin{bmatrix}1&0&2\\0&3&0\\2&0&-1\end{bmatrix}.

    check

    Classify by eigenvalue signs: (a) diag⁡(3,1)\operatorname{diag}(3, 1); (b) diag⁡(3,−1)\operatorname{diag}(3, -1); (c) diag⁡(3,0)\operatorname{diag}(3, 0).

    Solution

    (a) positive definite, ellipse. (b) indefinite, hyperbola. (c) positive semidefinite; 3x2=13x^2 = 1 is a pair of parallel lines.

    useApostol 5.15 style

    Find the principal axes of 3x2+2xy+3y2=83x^2 + 2xy + 3y^2 = 8 and its half-axis lengths.

    Solution

    A=[3113]A = \begin{bmatrix}3&1\\1&3\end{bmatrix}, eigenvalues 44 along (1,1)(1,1) and 22 along (1,−1)(1,-1). In those coordinates 4y12+2y22=84y_1^2 + 2y_2^2 = 8, i.e. y122+y224=1\frac{y_1^2}{2} + \frac{y_2^2}{4} = 1: half-axes 2\sqrt2 along (1,1)(1,1) and 22 along (1,−1)(1,-1).

    use

    For which kk is [2kk8]\begin{bmatrix}2&k\\k&8\end{bmatrix} positive definite?

    Solution

    Leading minors: 2>02 > 0 and 16−k2>016 - k^2 > 0, so −4<k<4-4 < k < 4.

    prove

    Prove that ATAA^{\mathsf T}A is positive semidefinite for any matrix AA, and positive definite when AA has independent columns.

    Solution

    xTATAx=(Ax)T(Ax)=∥Ax∥2≥0x^{\mathsf T}A^{\mathsf T}Ax = (Ax)^{\mathsf T}(Ax) = \lVert Ax \rVert^2 \ge 0. If the columns are independent, Ax=OAx = O only when x=Ox = O, so the form is positive for x≠Ox \ne O. (This is why the normal equations of 2.10 have a unique solution.)

    prove

    Prove that a positive definite matrix is invertible, and that its inverse is positive definite.

    Solution

    Eigenvalues all positive, so none is 0 and det⁡A=∏λi≠0\det A = \prod \lambda_i \ne 0. A−1=QΛ−1QTA^{-1} = Q\Lambda^{-1}Q^{\mathsf T} has eigenvalues 1λi>0\frac1{\lambda_i} > 0, so it is positive definite.

    stretch

    Show that on the unit circle the quadratic form q(x)=xTAxq(x) = x^{\mathsf T}Ax has maximum λmax⁡\lambda_{\max} and minimum λmin⁡\lambda_{\min}. Use it to find the points of the ellipse x2+xy+y2=1x^2 + xy + y^2 = 1 closest to and farthest from the origin.

    Solution

    In principal axes q=∑λiyi2q = \sum \lambda_i y_i^2 with ∑yi2=1\sum y_i^2 = 1, so λmin⁡≤q≤λmax⁡\lambda_{\min} \le q \le \lambda_{\max}, attained at the eigenvectors. For the ellipse, A=[112121]A = \begin{bmatrix}1&\frac12\\ \frac12&1\end{bmatrix} has eigenvalues 32\frac32 along (1,1)(1,1) and 12\frac12 along (1,−1)(1,-1). A point at distance rr in the unit direction uu has r2q(u)=1r^2 q(u) = 1, so r=1/q(u)r = 1/\sqrt{q(u)}. Closest: along (1,1)(1,1) at r=2/3r = \sqrt{2/3}, the points ±(13,13)\pm\left(\frac1{\sqrt3}, \frac1{\sqrt3}\right). Farthest: along (1,−1)(1,-1) at r=2r = \sqrt2, the points ±(1,−1)\pm(1, -1). Check: 1−1+1=11 - 1 + 1 = 1.

    Summary

    • A quadratic form xTAxx^{\mathsf T}Ax uses a symmetric AA; the cross-term coefficient is split equally.
    • Principal axes: rotating to an orthonormal eigenbasis turns the form into ∑λiyi2\sum \lambda_i y_i^2, with no cross terms.
    • Conics: same-sign eigenvalues give an ellipse, opposite signs a hyperbola. The JEE rule is det⁡A>0\det A > 0.
    • Positive definite means xTAx>0x^{\mathsf T}Ax > 0 for x≠Ox \ne O, equivalently all eigenvalues positive (or all leading minors positive).
    • This decides minima (Hessians), stability (stiffness matrices) and covariance structure.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    3.1 Symmetric matrices and the spectral theorem
    Leads to
    3.4 The singular value decomposition and PCA
    5.6 Taylor's formula, the Hessian and extrema
    Same idea elsewhere
    JEE / CBSE: You classified conics like $ax^2 + 2hxy + by^2 = 1$ with the rule '$h^2 - ab$ negative means ellipse'. This chapter shows that rule is a statement about the signs of two eigenvalues.
    MATH 375: The second-derivative test for $f(x, y)$ (Apostol 9.10 to 9.12, end of 375) uses $f_{xx}f_{yy} - f_{xy}^2$, which is the determinant of the Hessian's quadratic form.
    AI: A loss function near a minimum is approximately a quadratic form; its eigenvalues decide how fast gradient descent converges (5.10).