Conic type discriminant 2026-10-18
For a second-degree equation , the number is the discriminant of a binary quadratic form associated with its quadratic part. For a nonempty, nondegenerate real conic section, a negative value gives an ellipse, zero a parabola, and a positive value a hyperbola. It is invariant under a rotation of orthonormal coordinates.[ref]
10.4 Rotation of Axes. Precalculus 2e, §10.4, Identifying Conics without Rotating Axes and Using the Discriminant to Identify a Conic
A short explanation uses the symmetric matrixAn orthogonal matrix changes this matrix to , whose determinant equals . The spectral theorem for real symmetric matrices then removes the mixed term. Equal-sign, opposite-sign and one-zero eigenvalues give the three types after the remaining linear terms and offsets are considered.
The qualification matters. The equations , and describe a point, a repeated straight line, and two crossing straight lines, respectively. Their quadratic discriminants have the signs expected of ellipse, parabola and hyperbola types, but all three are degenerate conics. Also, has an empty set of real solutions despite its negative quadratic discriminant.
Diffusion on a graph 2026-10-14
The continuous-time diffusion model on a finite undirected graph uses the Graph Laplacian in the ordinary differential equationAcross each edge, the higher value sends an amount proportional to the difference to the lower value. The two contributions cancel in the sum over vertices, giving conservation of mass:If the entries represent masses, start with nonnegative entries; signed entries can instead describe deviations from a common level. For the three-vertex path graph, the initial vector is an eigenvector with eigenvalue one, so the exact solution isMore generally, an eigenvector with eigenvalue decays by . The spectral theorem for real symmetric matrices supplies an orthonormal basis of these eigenvectors, and the kernel of a graph Laplacian identifies the surviving terms. On a nonempty connected graph,The limiting value is the original arithmetic mean. On a disconnected graph, each connected component of a graph converges to its own original arithmetic mean. The same matrix therefore measures neighbour disagreement, detects disconnected regions and governs relaxation toward agreement.
For a real positive-definite matrix in finite dimension, write by the spectral theorem for real symmetric matrices. In the coordinates in an orthonormal basis , the positive level set becomesThis is an ellipsoid, with semi-major and semi-minor axes in two dimensions forming an ellipse; each semi-axis has length and direction given by the corresponding eigenvector. In the opening example, the shorter semi-axis is along , while the longer is along . A stiffer direction, meaning a larger eigenvalue, reaches the same energy at a smaller displacement. The ratio of longest to shortest semi-axis is , the square root of the spectral condition number of a positive-definite matrix.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §2.2.2, p. 30, equation (2.3): ellipsoids and semi-axis lengths; the book uses the inverse quadratic coefficient matrix
Strict positivity matters because givesHence a fixed positive level set cannot extend arbitrarily far. The Cholesky decomposition gives another view: , so the ellipsoid is the inverse image of a sphere under an invertible linear map. A singular positive semidefinite matrix has a nonzero kernel; adding a kernel vector preserves its quadratic form, so any nonempty positive level set is unbounded. These statements concern finite dimension; the positive definite symmetric operator entry explains why strict positivity alone need not give a uniform lower bound on an infinite-dimensional Hilbert space.
Fantope Created 2026-10-05 Updated 2026-10-06
For an integer , the fantope is the convex hull of rank- orthogonal projection matrices in . Equivalently, it consists of real symmetric matrices with eigenvalues in and matrix trace . To prove the equivalence, apply the spectral theorem for real symmetric matrices and express the eigenvalue vector as a convex combination of the zero-one extreme points of the capped simplex. The sum of the largest eigenvalues is its support function.
Consider the original two-dimensional exampleThe Hessian matrix is , a symmetric matrix and positive-definite matrix. Its eigenvectors are the coordinate directions, its eigenvalues are and , and its Euclidean norm condition number is . The unique global minimum is , so the error equals . The linear map , with the identity matrix, givesFor , the two coordinate error multipliers are and . Consequently , , and the second coordinate changes sign at every step while both shrink. The Euclidean norm of the error contracts by each step. The objective gap, which we call the quadratic energy, contracts by its square:The level sets of are ellipses. Oscillation across their narrow direction is compatible with strictly decreasing energy.
Original gradient descent iterates on : step size contracts both directions, whereas expands the second
. Details. For , the coordinate error multipliers become and , giving . The first coordinate still tends to zero, but the second alternates and grows. Direct substitution givesThus a larger positive step size can turn a strictly convex function into a divergent iteration. Energy and error are different quantities: coordinate errors carry signed multipliers, while each coordinate's contribution to energy carries the squared multiplier.
For the general quadratic form with linear termthe error obeys the same linear map . The spectral theorem for real symmetric matrices supplies an orthonormal basis of eigenvectors with positive eigenvalues . Writing gives the exact solution and energy identityTherefore convergence from every initial vector is equivalent toAt , a nonzero error component along a largest-eigenvalue eigenvector flips sign without shrinking. Above that threshold it grows. A particular start can still converge if it has zero components in every unstable direction; the interval is the condition for all starts. If , then and . These bounds follow by summing the squared components in the orthonormal basis.
For a positive-definite symmetric matrix , the ellipsoid has nearest points to the origin exactly at , where ranges over unit vectors in the largest-eigenvalue eigenspace. Indeed, the spectral theorem for real symmetric matrices gives , with equality precisely in that eigenspace. A simple largest eigenvalue gives two opposite nearest points; multiplicity gives a scaled -sphere of nearest points.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 42 3 ii Solution Created 2026-10-03 Updated 2026-10-14
The command centres the log measurements and performs principal component analysis of their covariance matrix. With
cor=F, it does not first standardize the variables to variance one. For a unit principal component loading vector , the score has sample variance . By the spectral theorem for real symmetric matrices, expand in an orthonormal eigenbasis; that variance is a weighted average of the eigenvalues. Its maximum is the largest eigenvalue, reached at the corresponding eigenvector. Repeating subject to orthogonality to previous directions gives the other principal components.The software uses the divisor- sample covariance matrix for its component standard deviations, whereas
var used divisor . Diagonalizing the displayed matrix gives approximatelyTaking square roots of the latter gives , agreeing with the output to the rounding of the displayed sample covariance matrix. The normalization changes these numerical standard deviations but leaves the eigenvectors and proportions of explained variance of a principal component unchanged.The first principal component explains about of the total log-variable variance, the second another , and the last about . Keeping two preserves about . An original scree plot displays the sharp drop after the first component:
Consequently the centered cloud is very elongated along one direction: a one-dimensional approximation represents almost all of its squared variation. From the displayed covariance matrix, a unit first eigenvector, with its arbitrary sign chosen positive, is approximatelyIts principal component score is therefore . All coefficients have the same sign, so this direction describes overall tree size, with log volume dominating the unstandardized variation. The summary alone supplies proportions, not the loading directions; the displayed sample covariance matrix supplies the latter. This is a geometric approximation, not evidence of an exact deterministic relation or independent original variables.
One further use is principal component analysis on a correlation matrix, obtained with
cor=T, which equalizes marginal variances and answers a different scaling-sensitive question. Another is principal component regression: fit a response to selected principal component scores rather than highly correlated original predictors, choosing the number using prediction assessment. The fitted transformation also projects new measurements into the same low-dimensional coordinates, provided the training centering and scaling are retained. Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 70 1 a Solution Created 2026-10-03 Updated 2026-10-14
For a real matrix with positive determinant, the polar decomposition of an invertible real matrix gives unique factorizationswhere and are the right stretch tensor and left stretch tensor, respectively. Positivity here means positive definiteness, not merely nonnegative entries.
To prove existence, is symmetric and for every nonzero , because is invertible. The spectral theorem for real symmetric matrices supplies an orthogonal matrix and positive eigenvalues such that . Define using the principal square root of a positive semidefinite matrix construction:Then , so is orthogonal. Also ; an orthogonal matrix has determinant plus or minus one, hence . Set . It is symmetric positive definite, , and .
For uniqueness, any second factorization with the same properties gives . Since commutes with its square, it preserves every eigenspace of . On a -eigenspace its own positive eigenvalues must square to , so it equals times the identity there. Thus , then , and finally is fixed too. This proves both uniqueness and the polar decomposition in continuum mechanics, with the same proper rotation in its left and right forms.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 19 1 a Solution Created 2026-10-03 Updated 2026-10-14
Use the curvature sign convention implicit in part (c): the Jacobi field equation is , so the operator in a positively curved normal direction has positive eigenvalue. With the alternative convention used for the catalog's Jacobi curvature operator, the paper's tensor is , and its operator is . This fixes the sign throughout Q1.
Let . Pair interchange for the Riemann curvature tensor givesThus is self-adjoint with respect to the Riemannian metric. The curvature sign does not affect this conclusion. The spectral theorem for real symmetric matrices therefore supplies the real orthonormal eigenbasis used in part (b). Also , so the tangent direction is a zero-eigenvalue direction.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 69 2 b Solution Created 2026-10-03 Updated 2026-10-14
Put . The update isUnder , all three weights are nonnegative and sum to one. With the imposed zero Dirichlet boundary conditions, this is a convex combination including any boundary values. Thus the monotone half-grid diffusion update givesDifferences of two computed solutions obey the same estimate, proving numerical stability in the discrete maximum norm, uniformly in .
There is also an L2 norm proof. The diffusion matrix is symmetric and satisfiesSince , every eigenvalue lies in . Hence the eigenvalues of lie in under the same step restriction, and the spectral theorem for real symmetric matrices gives an L2 norm contraction. These stability estimates are valid for the printed recurrence, although they cannot repair its inconsistency with the printed advection equation.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 72 3 d Solution Created 2026-10-03 Updated 2026-10-14
At a fixed material point, freeze the incremental elastic moduli at their local values and fix a unit propagation direction . For an arbitrary nonzero polarization , the rank-one matrix annihilates the added quadratic minor null Lagrangian, sinceThe assumed positivity therefore givesThus the acoustic tensor is positive-definite; this is strong ellipticity in elasticity. Major symmetry also makes it a real symmetric matrix. By the spectral theorem for real symmetric matrices, it has three real positive eigenvalues and an orthonormal basis of real polarizations . ThereforeEach polarization gives a real plane wave profile through the equation of part (a), in either sign of the propagation speed. Repeated eigenvalues still admit three independent polarizations; the claim is not that the three speeds must be distinct. For an inhomogeneous base deformation these are local, frozen-coefficient wave modes, rather than exact plane waves throughout the entire body.
Past exam of the mathematics course of the University of Cambridge 2005 ia Paper 3 1D Solution Created 2026-09-24 Updated 2026-10-14
By the spectral theorem for real symmetric matrices, choose an orthonormal eigenbasis with . If , thenThus every point of the ellipsoid has distance at least from the origin. Equality holds precisely whenBoth coefficients are strictly positive, so . The surface equation then gives . ThereforeExactly two points attain the minimum. The strict ordering makes the largest-eigenvalue eigenspace one-dimensional; this is the equality case in nearest points to the origin on a positive-definite ellipsoid.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 78 1 Solution Created 2026-10-03 Updated 2026-10-14
For the polar decomposition of an invertible real matrix, start with . For nonzero , , since makes invertible. The spectral theorem for real symmetric matrices gives an orthonormal basis with and . DefineThen is a positive-definite symmetric matrix, , andbecause . Thus is an orthogonal matrix with positive determinant. Set ; it too is a positive-definite symmetric matrix, and . Moreover . This provesThe positive square root is unique: any positive symmetric square root of commutes with , preserves its eigenspaces and has the positive scalar square root on each of them. Hence , then and , are unique. These are the right stretch tensor, rotation and left stretch tensor of the polar decomposition in continuum mechanics.
A standard spectral strain measure isTake , and , with strictly increasing; the customary stronger condition gives a regular one-to-one parameterization of all positive principal stretches. The zero condition makes a rigid rotation strain free, monotonicity distinguishes extension from contraction and prevents nonunit stretch from being strain free, and the derivative normalization gives the ordinary infinitesimal strain. Indeed, for ,Under a superposed spatial rotation , and hence remain unchanged, giving material frame indifference. Choosing satisfies all these conditions and gives the Biot strain tensor
The meaning of work-conjugate stress and strain here is that a symmetric material tensor satisfiesfor every admissible rate, with both powers measured per reference volume. To keep the nominal-stress index convention explicit, write , so and the power is . Differentiating gives , where is skew. Conservation of angular momentum gives symmetry of , or equivalently of . ThereforeThe first term vanishes because a symmetric tensor has zero contraction with a skew tensor. Since , the symmetric Biot stress isIf the nominal stress is instead stored spatial-index first as , the same answer is . The symmetrization is essential: need not itself be symmetric.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 46 3 a Solution Created 2026-10-03 Updated 2026-10-14
Principal component analysis replaces the original coordinates by orthogonal linear combinations, ordered so that the first few retain as much variance as possible. It gives a lower-dimensional summary for visualization or compression and reveals the main directions of variation. A direction of large variance need not be the direction most useful for classification.
Write . For a unit vector , the centered score has varianceMaximizing this Rayleigh quotient with a Lagrange multiplier givesThus a maximizing direction must be an eigenvector of the covariance matrix. To identify the maximum, use the spectral theorem for real symmetric matrices to choose an orthonormal basis of eigenvectors , with eigenvalues . Writing givesEquality is attained at . Consequently the first population principal component isFor each subsequent principal component, maximize the same variance over unit coefficient vectors orthogonal to all the previously chosen ones. Restricting the expansion above to the remaining eigenvectors gives , then , and so on. ThusThe principal components are uncorrelated; they need not be independent unless additional distributional assumptions, such as joint Gaussianity, hold. Their total variance is . Signs of eigenvectors are arbitrary, and a repeated eigenvalue permits any orthonormal basis in its eigenspace. In sample principal component calculations, replace by the sample mean and by the sample covariance matrix.
Past exam of the mathematics course of the University of Cambridge 2009 ib Paper 4 10G Solution Created 2026-09-24 Updated 2026-10-14
Two real symmetric bilinear forms are congruent if an invertible linear map takes one to the other; in matrices, for some invertible . The spectral theorem for real symmetric matrices gives an orthogonal eigenbasis. Rescaling each basis vector with nonzero eigenvalue then reduces any such form toSylvester's law of inertia asserts that is independent of the congruence reduction. To prove it, is the greatest dimension of a subspace on which the form is positive definite: the positive coordinate subspace attains it, whereas any subspace of dimension greater than meets the nonpositive coordinate subspace of dimension and therefore cannot be positive definite. Applying the same argument to the negative of the form determines . Then is determined too.
The rank of a quadratic form is , and its signature of a quadratic form is under the signed-difference convention. They determine and hence the congruence class. Counting all pairs with givesFor , exactly two classes have every level set bounded: the positive-definite and negative-definite classes. Their nonempty nonzero levels are ellipsoids, and their zero level is the origin. A degenerate form has an entire null line in its zero level. An indefinite nondegenerate form also has a nonzero isotropic vector, for example the sum of one positive and one negative normalized basis vector, whose scalar multiples make the zero level unbounded.
For the displayed three-dimensional form,Its leading principal minors are , all positive. Sylvester's criterion makes it positive definite, so the surface is a bounded ellipsoid. Directly, its quadratic expression iswhich also proves positivity and boundedness of the unit level.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 78 5 a Solution Created 2026-10-03 Updated 2026-10-14
Use the Euclidean norm and its induced operator norm. The spectral theorem for real symmetric matrices gives and . If , then the direct inverse has error , soFor nonzero , the relation also givesThis is the spectral condition number of a positive-definite matrix. The worst relative amplification is attained by exact data along an eigenvector for and noise along one for . A large therefore makes the reconstruction sensitive to relative data errors. Absolute sensitivity additionally depends on itself: scaling every eigenvalue equally leaves unchanged but changes . Since the matrix is finite dimensional and positive definite, the inverse exists and is continuous; the issue is ill-conditioning rather than mathematical nonexistence or discontinuity.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 32 3 Solution Created 2026-10-03 Updated 2026-10-14
In a linear regression model, a large number of predictors or nearly dependent columns of the design matrix can make some eigenvalues of small. The ordinary least squares estimate has covariance matrix , so these directions have large variance, even though the estimator is unbiased. Ridge regression reduces this variance by shrinking the estimate towards zero, at the cost of introducing bias. This bias-variance tradeoff can improve the mean squared error when the signal is not too large in the shrunken directions.
For the usual preprocessing with a regression intercept, separate the constant column from the predictors and leave the intercept unpenalized. Subtract the sample mean from the response and from each nonconstant predictor, then divide each centered predictor column by its positive scale, for example its Euclidean norm. Thus all predictor columns have squared norm one; using squared norm instead simply changes the convention for the penalty. Centering is performed on the slope columns, not on the constant column. A full-rank design containing an intercept retains full rank on its centered slope columns. A model without an intercept should retain its specified mean structure unless an intercept is deliberately introduced.
Let be the resulting scaled, centered slope design matrix, let be the centered response, and let denote the coefficients in these standardized coordinates. The ridge regression problem isHere is the number of slopes; it is one less than the original number of columns when a constant column was present. The gradient of this objective is . Its Hessian matrix is a positive-definite matrix, giving the unique closed-form ridge regression estimatorThe regression intercept in the original coordinates is recovered as , and the original slopes are , where is the scale used for column . This is the unpenalized intercept in ridge regression convention. For a fixed full-rank coefficient design written simply as , with response and coefficient , the same formula readsThe risk comparison below first uses the fixed coefficient coordinates in which this quadratic penalty is imposed, and then addresses reversal of the scaling.
Assume at least one penalized coefficient, zero-mean errors with covariance matrix , and . No normal distribution assumption is needed for this mean squared error calculation. Put and . The covariance and bias of a ridge regression estimator follow directly from its linear expression:For the centered slope model, the response errors have covariance matrix , where . Since , the same coefficient covariance matrix formula still holds with .
By the spectral theorem for real symmetric matrices, write , with orthogonal and every , and put . The bias-variance decomposition of mean squared error now givesThe expression at is the ordinary least squares mean squared error. Its right derivative isTherefore, for every fixed coefficient vector, all sufficiently small positive penalties strictly improve mean squared error.
An explicit sufficient choice follows by subtracting the ordinary least squares risk term by term:Since , every summand is negative wheneverWhen , every positive penalty works. This is a pointwise result: the permitted penalty may depend on the true coefficient vector. A fixed positive penalty cannot improve risk for all arbitrarily large signals, because its squared bias grows quadratically with the signal. The same distinction appears in uniform directional risk improvement by ridge regression and unbounded directional risk of fixed ridge shrinkage. In centered coordinates the unpenalized intercept contributes the same to both coefficient risks, so it does not affect the improvement. Reversing a fixed predictor scaling measures coefficient error with a fixed positive-definite matrix instead of the identity matrix. For this weighted loss the squared bias still has derivative zero at , while the variance term has derivativeThe inequality follows because . Thus sufficiently small penalties also improve the original-coordinate mean squared error, though the explicit sufficient bound above was for the unweighted coordinates. Recovering an uncentered intercept adds a fixed nonnegative quadratic form to the slope loss, and its sample-mean error is uncorrelated with the centered slope errors, so the same weighted argument applies. A model with only an unpenalized intercept gives identical estimators. If the noise variance were zero, the strict improvement assertion would fail; positive noise variance is essential.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 31 3 ii Solution Created 2026-10-03 Updated 2026-10-07
Take off the real axis, or more generally require both and to be invertible. The spectral theorem for real symmetric matrices guarantees these inverses for nonreal . Move coordinate to the first position by a simultaneous row and column permutation. With , the permuted matrix isSolve its equation against the first coordinate vector: if its solution is , then the lower block equation gives . Substitution into the first equation gives . The component is the requested diagonal entry of the matrix inverse, proving the Schur complement formula for a diagonal resolvent entry:The product is bilinear, with transpose, because is real and is real symmetric, even when the inverse is complex. In a complex Hermitian matrix version the row is instead. The final belongs inside the denominator, as in the original PDF; the converted TeX misplaces it outside the fraction.
The inverse hypotheses matter if is real: is invertible at , while its one-by-one principal minor is not. Thus existence of the full inverse alone is not sufficient to use this formula.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 31 3 iv Solution Created 2026-10-03 Updated 2026-10-07
Put . For a real eigenvalue ,The spectral theorem for real symmetric matrices therefore gives and , since is a sum of with nonnegative coefficients given by squared eigenvector coordinates of . This is the positive imaginary part of a Stieltjes matrix resolvent. HenceApply the triangle inequality to the identity above, and add and subtract the minor trace:The allowed principal minor resolvent trace bound, with the printed normalization, bounds the second average by . Thus the explicit conclusion isIn particular, the final term is with a constant independent of . The upper-half-plane restriction gives the displayed positive denominators; in the lower half-plane the analogous bound uses .
The chosen centering also has a probabilistic meaning. The column vector is independent of the minor, has mean zero and coordinate variance , so its conditional expectation satisfiesThis explains why the bound isolates fluctuations of a quadratic form around the minor trace. Mean centering alone is not a concentration estimate; no unrequested limiting assertion is being assumed.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 31 3 Solution Created 2026-10-03 Updated 2026-10-07
With the same squared-error normalization as in Question 2, the ridge estimator solvesThe unpenalized intercept in ridge regression is because the columns of are centered. Differentiating the remaining quadratic objective gives . Since , the left matrix is positive definite even when is rank-deficient. Thus the closed-form ridge regression estimator isThe second equality again uses centering. If the penalty convention is with an unnormalized squared-error term , replace by throughout; the limiting assertion is unchanged.
For the full-column-rank case, take a singular value decomposition with positive singular values . The ordinary least squares estimator, which is the slope maximum-likelihood estimator in this normal linear model, and the ridge regression estimator are respectivelyConsequently principal-component shrinkage by ridge regression multiplies the least-squares coordinate in direction by . Ridge shrinks most strongly in directions with the smallest singular values. These are combinations of predictors that the data distinguish least well.
Near multicollinearity creates small singular values, and the factor in ordinary least squares greatly amplifies noise in those directions. Its coefficient variance there is , while the ridge variance iswhich is smaller. The price is bias: the expectation of the ridge coordinate is times the corresponding true coefficient. This bias-variance tradeoff can substantially reduce estimation and prediction error when the poorly identified directions do not contain an excessively large signal. It is not a guarantee of improvement for every coefficient vector. Adding to every eigenvalue also improves the condition number of the normal matrix and makes numerical inversion more stable.
To handle every rank and every relation between and , put and use its spectral theorem for real symmetric matrices. Choose an orthonormal eigenbasis with eigenvalues , and put . ThenIf , then , so and . Thus these terms are exactly zero for every positive ; there is no divergent component in the null space. Each remaining term converges to . By the definition of the Moore-Penrose pseudoinverse,and thereforeThis proves the vanishing-penalty ridge limit without an invertibility assumption. The limit is the minimum-norm least-squares solution: every other least-squares solution differs by a vector in , orthogonal to the displayed solution, and therefore has at least as large a Euclidean norm.


