Linear algebra for measuring change
- 1. Overview of all three stages — What counts as an equally large step?
- 2. Stage I — Displacements, functionals, and derivatives
- 3. Stage I — Composition, the transpose, and backpropagation
- 4. Stage II — Inner products, lengths, and Cauchy–Schwarz
- 5. Stage II — Positive-definite matrices define measurements
- 6. Stage II — Eigenvalues reveal the principal directions
- 7. Stage III — Represent the response using the chosen measurement
- 8. Stage III — Derive the best step
- 9. Stage III — Check that the step is independent of its coordinate description
- 10. Stage III — Restrict the allowed vectors: projection and least squares
- 11. Stage III — Revisit Stage II when some directions have zero cost
- 12. Exercises across the three stages
The central question is:
If a small step changes an objective by \(a^\top h\), which direction gives the greatest improvement?
The answer depends on how we measure the size of \(h\). This note develops that statement using finite-dimensional linear algebra and a short introduction to derivatives as linear approximations. No differential geometry is needed.
We will answer the question in three stages. Every numbered part below is labeled with its role in this progression.
| Stage | Question | Parts | What we obtain |
|---|---|---|---|
| I — Describe change | How does a displacement affect a scalar objective? | 2–3 | A linear functional \(\ell\), including how derivatives produce it and how composition transforms it |
| II — Measure steps | Which displacements count as equally large? | 4–6 | An inner product and its norm, represented by a symmetric positive-definite (SPD) matrix \(G\) |
| III — Choose and interpret a step | How do we combine the response and the measurement? | 7–11 | A representing vector \(G^{-1}a\), a steepest step, and its behavior under coordinate changes and restrictions |
Part 1 introduces the question shared by all three stages. Part 12 checks all three through exercises. Within Stage III, Part 11 revisits Stage II’s positive-definiteness assumption to explain when the step-selection rule can fail.
The distinction to keep throughout is between an object, its coordinates, and a chosen measurement. A displacement and a linear functional are objects; the lists \(h\) and \(a\) describe them in a basis; an inner product is additional structure used to measure displacements.
Definitions specify what a concept means. Propositions and theorems state consequences that require justification. Examples show how to use them. The spectral theorem is the only substantial linear algebra theorem used without proof. We also introduce the total derivative and state its chain rule, with a first-order explanation; the next note will develop their analytic foundations in more detail.
We work in finite-dimensional real spaces using coordinates. Matrix multiplication and basic algebra are assumed. Familiarity with the one-variable derivative is helpful, but we define the multivariable derivative needed here. All vectors are column vectors. The identity matrix \(I\) is the square matrix satisfying \(Ih=h\) for every vector of the appropriate dimension. Transpose and inverse will be defined when needed.
1. Overview of all three stages — What counts as an equally large step?
Suppose an objective changes according to
\[\ell(h)=2h_1+h_2.\]For now this is an exact linear rule. Later, it will represent the first-order change of a nonlinear function.
If steps are measured by ordinary Euclidean length, our problem is
\[\max_h 2h_1+h_2 \quad\text{subject to}\quad h_1^2+h_2^2\le1.\]The answer points in direction \((2,1)^\top\).
Now suppose changes in the first coordinate are more expensive, so the same step budget is defined by
\[4h_1^2+h_2^2\le1.\]The maximizing direction becomes \((1/2,1)^\top\).
The rule measuring improvement has stayed fixed. The rule measuring step size has changed, and so has the best direction.
We will derive both answers rather than assume them. Notice the two separate ingredients: a scalar response \(\ell(h)\), and a constraint on the size of \(h\). We first need a language for displacements and response rules; only afterward will we choose a measurement of size.
2. Stage I — Displacements, functionals, and derivatives
A parameter update is a displacement represented by a list of real numbers. The displacement and its coordinate list are different notions: a basis tells us how to reconstruct the displacement from the list. We start with the coordinate space, then make this distinction explicit.
Definition 1 (Coordinate space and linear combinations). The set \(\mathbb R^n\) consists of all ordered lists \(h=(h_1,\ldots,h_n)^\top\) of \(n\) real numbers, with coordinatewise addition and scalar multiplication:
\[(u+v)_i=u_i+v_i,\qquad (\alpha u)_i=\alpha u_i.\]A linear combination of vectors \(v_1,\ldots,v_k\) is a vector \(\sum_{i=1}^k c_i v_i\), where \(c_i\in\mathbb R\). Their span is the set of all such combinations. They are linearly independent if
\[\sum_i c_i v_i=0\quad\Longrightarrow\quad c_1=\cdots=c_k=0.\]Otherwise they are linearly dependent.
Definition 2 (Subspace, basis, and coordinates). A linear subspace \(S\subseteq\mathbb R^n\) contains \(0\) and is closed under linear combinations: \(\alpha u+\beta v\in S\) for every \(u,v\in S\) and \(\alpha,\beta\in\mathbb R\). A basis of \(S\) is a linearly independent list that spans \(S\). Relative to a basis \(v_1,\ldots,v_k\), each \(h\in S\) has a unique representation
\[h=\sum_i c_i v_i;\]its coefficients \((c_1,\ldots,c_k)^\top\) are its coordinates in that basis. Existence follows from spanning; uniqueness follows from independence.
The standard basis of \(\mathbb R^n\) consists of \(e_i\), with a \(1\) in position \(i\) and zeros elsewhere. Thus \(h=\sum_i h_i e_i\). We will use standard coordinates unless stated otherwise.
Now suppose one displacement produces another—for example, changing model parameters changes a collection of predictions. The simplest such relationship is linear.
Definition 3 (Linear map). A map \(T:\mathbb R^n\to\mathbb R^m\) is linear if, for every \(u,v\in\mathbb R^n\) and \(\alpha,\beta\in\mathbb R\),
\[T(\alpha u+\beta v)=\alpha T(u)+\beta T(v).\]Its matrix in the standard bases is \(A=[T(e_1)\ \cdots\ T(e_n)]\), since linearity implies \(T(h)=Ah\). This explains why a matrix represents a linear map.
For example,
\[A= \begin{pmatrix} 2&0\\ 0&1 \end{pmatrix}\]doubles the first coordinate and preserves the second. Applying another linear map \(B\) afterward gives \(B(Ah)=(BA)h\). Matrix multiplication represents composition.
For optimization, we ultimately want a scalar response rather than another displacement.
Definition 4 (Linear functional). A linear functional on \(\mathbb R^n\) is a linear map \(\ell:\mathbb R^n\to\mathbb R\).
Proposition. Every linear functional on \(\mathbb R^n\) has a unique coefficient vector \(a\in\mathbb R^n\) such that
\[\ell(h)=a^\top h.\]To see why, set \(a_i=\ell(e_i)\). Linearity gives
\[\ell(h)=\ell\!\left(\sum_i h_i e_i\right) =\sum_i h_i\ell(e_i)=a^\top h.\]It helps to distinguish the displacement \(h\) from the functional \(\ell\):
- \(h\) is a possible change.
- \(\ell\) assigns a scalar response to each possible change.
Although both \(h\) and \(a\) are stored as arrays, they represent different objects. A change of basis makes this distinction concrete.
2a. Stage I — A functional is a mapping, not a particular coefficient list
Temporarily write \(v\) for the displacement itself, and write \(h_B=[v]_B\) for its coordinates in a basis \(B=(e_1,\ldots,e_n)\). Fix one linear functional \(\ell\). Its coefficient list in this basis is
\[(a_B)_i=\ell(e_i), \qquad \ell(v)=a_B^\top h_B.\]The symbol \(\ell\) denotes the mapping from a displacement to a number; \(a_B\) is one coordinate description of that mapping.
Let \(C=(c_1,\ldots,c_n)\) be another basis, with
\[c_j=\sum_i e_iP_{ij}.\]The columns of \(P\) describe the new basis in the old one. Substituting into \(v=\sum_j(h_C)_jc_j\) gives
\[h_B=Ph_C.\]Because both lists are bases, this relation determines \(h_C\) uniquely from \(h_B\).
Definition 5 (Transpose). For \(A\in\mathbb R^{m\times n}\), its transpose \(A^\top\in\mathbb R^{n\times m}\) is defined by \((A^\top)_{ij}=A_{ji}\): rows and columns are interchanged.
The coefficients of the same functional also change:
\[(a_C)_j=\ell(c_j)=\sum_iP_{ij}\ell(e_i), \qquad \boxed{a_C=P^\top a_B.}\]Consequently,
\[\boxed{ \ell(v)=a_B^\top h_B=a_C^\top h_C. }\]Both coordinate lists change; their pairing gives the same scalar. Changing the basis does not change the displacement or the functional. This requires transforming the coefficients consistently: keeping the same numerical formula in the new coordinates would generally define a different functional.
Example. In the original basis, let \(h_B=(1,2)^\top\) and \(a_B=(2,1)^\top\). Choose \(c_1=2e_1\), \(c_2=e_2\), so \(P=\operatorname{diag}(2,1)\). Then
\[h_C=(1/2,2)^\top,\qquad a_C=(4,1)^\top.\]The response is \(2(1)+1(2)=4\) in the old coordinates and \(4(1/2)+1(2)=4\) in the new ones.
The first displacement coordinate halves because its new basis vector is twice as large. The first functional coefficient doubles because the functional is now evaluated on that twice-as-large basis vector. This is the meaning of “distinguish the displacement from the functional.” Part 9 will add the transformation of the inner product and the resulting update.
2b. Stage I — Why a derivative is a linear functional
For a one-variable function, differentiability at \(x\) means that
\[f(x+h)-f(x)=f'(x)h+r(h), \qquad \frac{|r(h)|}{|h|}\longrightarrow0.\]The number \(f'(x)\) is the coefficient of a linear rule \(h\mapsto f'(x)h\). In several variables, a single number cannot describe all possible perturbations; the linear rule itself becomes the derivative.
Definition 6 (Total derivative). Let \(f\) be defined on a neighborhood of \(x\in\mathbb R^n\), meaning that its domain contains all points sufficiently close to \(x\). The scalar function \(f\) is differentiable at \(x\) if there is a linear functional \(L:\mathbb R^n\to\mathbb R\) such that
\[f(x+h)=f(x)+L(h)+r(h), \qquad \lim_{\substack{h\to0\\h\ne0}}\frac{|r(h)|}{\|h\|_2}=0.\]Here \(\Vert h\Vert _2=\sqrt{\sum_i h_i^2}\), the ordinary Euclidean length, whose norm properties we study in Stage II. The limit requires the error ratio to become small for all sufficiently small nonzero displacements, not just along one direction. Explicitly, for every \(\varepsilon>0\), some \(\delta>0\) satisfies
\[0<\|h\|_2<\delta \quad\Longrightarrow\quad |r(h)|\le\varepsilon\|h\|_2.\]The linear functional \(L\) is denoted \(Df(x)\). The notation \(Df(x)[h]\) means evaluation of this functional on the displacement \(h\). The shorthand \(r(h)=o(\Vert h\Vert _2)\) expresses the same remainder condition.
Why is the derivative unique? There are infinitely many linear functionals on \(\mathbb R^n\). The claim is that for a fixed function \(f\) and a fixed point \(x\), at most one of them satisfies the derivative’s approximation condition. This is different from the earlier statement that a given functional has unique coefficients in a fixed basis.
Suppose two candidates \(L_1,L_2\) both satisfy the definition. We show that they give the same value on every displacement.
Step 1: Write the two approximations to the same change.
\[f(x+h)-f(x)=L_1(h)+r_1(h)=L_2(h)+r_2(h),\]where \(\vert r_i(h)\vert /\Vert h\Vert _2\to0\) for \(i=1,2\).
Step 2: Subtract them. Their difference \(M=L_1-L_2\) is linear, and
\[M(h)=r_2(h)-r_1(h).\]Therefore
\[\frac{|M(h)|}{\|h\|_2} \le \frac{|r_1(h)|}{\|h\|_2} + \frac{|r_2(h)|}{\|h\|_2} \longrightarrow0.\]The difference of the proposed linear approximations must itself be smaller than first order.
Step 3: Test any fixed direction. Choose an arbitrary nonzero vector \(v\), and take \(h=tv\), with \(t>0\) tending to zero. Linearity and homogeneity of Euclidean length give
\[M(tv)=tM(v),\qquad \|tv\|_2=t\|v\|_2.\]It follows that
\[\frac{|M(tv)|}{\|tv\|_2} = \frac{|M(v)|}{\|v\|_2}.\]The right side is constant: it does not depend on \(t\). Step 2 requires the left side to tend to zero. Thus the constant is zero, and \(M(v)=0\).
Step 4: Conclude equality as mappings. The argument works for every nonzero \(v\). Linearity also gives \(M(0)=0\). Hence \(L_1(v)=L_2(v)\) for every \(v\), which is exactly the meaning of \(L_1=L_2\).
The underlying reason is that a nonzero linear discrepancy shrinks in exact proportion to the displacement. It cannot be hidden in an error that shrinks faster than the displacement. In one variable, replacing \(f'(x)\) by a different number \(c\) introduces the linear discrepancy \((f'(x)-c)h\). Its magnitude divided by \(\vert h\vert\) stays at \(\vert f'(x)-c\vert\), rather than tending to zero.
This proves uniqueness if a derivative exists. It does not prove that every function has one.
Thus “the derivative is linear” refers to its dependence on the displacement \(h\) at a fixed base point \(x\). It does not say that \(f\) is linear or that its derivative is constant as \(x\) changes.
Example connecting to Part 1. Let \(f(x_1,x_2)=x_1^2+x_2\), and fix \(x=(1,0)\). Direct expansion gives
\[f(x+h)-f(x)=2h_1+h_2+h_1^2.\]Since
\[\frac{|h_1^2|}{\sqrt{h_1^2+h_2^2}} \le\|h\|_2\longrightarrow0,\]we obtain
\[Df(1,0)[h]=2h_1+h_2.\]Our opening linear response is exactly this derivative. It predicts the leading change; the true finite change also contains \(h_1^2\).
Definition 7 (Directional derivative). For a fixed vector \(v\), the directional derivative at \(x\), when it exists, is
\[D_vf(x)=\lim_{t\to0}\frac{f(x+tv)-f(x)}{t}.\]If \(f\) is differentiable, this equals \(Df(x)[v]\). Choosing \(v=e_i\) gives the partial derivative \(\partial_i f(x)\), so
\[Df(x)[h]=\sum_i\partial_i f(x)\,h_i.\]The existence of partial derivatives alone does not establish the full approximation condition; we will examine this distinction in the next note.
At a fixed point, \(Df(x)\) is therefore the scalar response rule from Stage I. Its coefficient list consists of partial derivatives in the chosen coordinates. In Stage III we will define the gradient as the vector representing this functional under a specified inner product. The derivative and the gradient are related but should not be defined as the same object.
We next ask how to obtain this response rule when the objective is a composition of several functions.
3. Stage I — Composition, the transpose, and backpropagation
Suppose a displacement \(h\in\mathbb R^n\) is transformed into \(Ah\in\mathbb R^m\), and a functional with coefficients \(b\in\mathbb R^m\) evaluates the result. Can we express that composite response directly in terms of \(h\)?
Proposition. The coefficient vector of the composite functional is \(A^\top b\), because
\[b^\top(Ah)=(A^\top b)^\top h.\]The left side first maps a displacement \(h\) into \(Ah\), then evaluates it using coefficients \(b\). The right side evaluates the original displacement directly, using coefficients \(A^\top b\).
For example, let
\[A=\begin{pmatrix}2&0\\0&1\end{pmatrix}, \qquad b=\begin{pmatrix}1\\1\end{pmatrix}.\]Then
\[b^\top Ah=2h_1+h_2, \qquad A^\top b=\begin{pmatrix}2\\1\end{pmatrix}.\]Thus \(A\) carries displacements forward, while \(A^\top\) carries the coefficients of scalar response rules backward. We can express this without choosing coordinates.
Definition 8 (Dual map). For a linear map \(T:V\to W\), the dual map \(T^*\) sends a linear functional \(\ell:W\to\mathbb R\) to the functional on \(V\) defined by
\[(T^*\ell)(h)=\ell(T(h)).\]Here \(V\) and \(W\) are finite-dimensional real vector spaces, such as \(\mathbb R^n\) and \(\mathbb R^m\). Thus \(T^*\) acts on scalar response rules rather than on displacements. In coordinates, if \(T\) has matrix \(A\) and \(\ell\) has coefficients \(b\), then \(T^*\ell\) has coefficients \(A^\top b\).
No inner product has been chosen to construct this dual map. Although the coordinate expression \(b^\top h\) looks like a Euclidean dot product, here it evaluates a functional on a displacement. Stage III will explain how a chosen inner product additionally identifies a functional with a vector.
3a. Stage I — The chain rule composes linear approximations
Definition 9 (Vector derivative and Jacobian). A map \(F:\mathbb R^n\to\mathbb R^m\) is differentiable at \(x\) if there is a linear map \(DF(x)\) satisfying
\[F(x+h)=F(x)+DF(x)[h]+r(h), \qquad \frac{\|r(h)\|_2}{\|h\|_2}\longrightarrow0.\]Its matrix in standard coordinates is the Jacobian \(J_F(x)\in\mathbb R^{m\times n}\), with entries
\[(J_F(x))_{ij}=\frac{\partial F_i}{\partial x_j}(x).\]For a scalar \(f\), its Jacobian is a row, while its derivative coefficient list is commonly stored as a column \(a\): \(J_f(x)=a^\top\).
Now let \(y=F(x)\) and \(H(x)=\phi(F(x))\), where \(\phi:\mathbb R^m\to\mathbb R\). Assume both maps are differentiable at the relevant points, and write
\[D\phi(y)[k]=b^\top k.\]An input displacement \(h\) induces first-order output displacement \(J_F(x)h\). The output response rule evaluates this displacement. The chain rule states exactly
\[DH(x)[h]=D\phi(y)\bigl[DF(x)[h]\bigr] =b^\top J_F(x)h.\]Equivalently, the input response coefficients are
\[\boxed{a=J_F(x)^\top b.}\]This follows by composing the two first-order approximations; their remaining error is of smaller order than \(\Vert h\Vert _2\).
To interpret these calculations, keep the variables and their roles explicit:
- \(x\in\mathbb R^n\) is the variable we can perturb.
- \(y=F(x)\in\mathbb R^m\) is the intermediate quantity computed from \(x\).
- \(H(x)=\phi(y)\in\mathbb R\) is the final scalar quantity of interest.
- \(h\) is a displacement of \(x\); \(k=J_F(x)h\) is the resulting first-order displacement of \(y\).
- \(b\) is defined by \(D\phi(y)[k]=b^\top k\). Its entry \(b_j\) describes the first-order change in \(\phi\) per change in coordinate \(y_j\), holding the other \(y\)-coordinates fixed.
All derivative matrices and coefficients below are evaluated at the fixed values \(x\) and \(y=F(x)\).
| Calculation | What is given? | What is calculated? | Meaning |
|---|---|---|---|
| \(h\mapsto k=J_F(x)h\) | A particular displacement \(h\) of \(x\) | The corresponding first-order displacement \(k\) of \(y=F(x)\) | Predict how \(y\) changes for this chosen change of \(x\). |
| \(b\mapsto a=J_F(x)^\top b\) | The coefficients \(b\) in \(D\phi(y)[k]=b^\top k\) | The coefficients \(a\) in \(DH(x)[h]=a^\top h\) | Express the change in the final scalar directly in terms of an arbitrary displacement of \(x\). |
In the second row, \(b\) is a list of coefficients of a functional. We do not need to choose a particular \(h\) to compute \(a\). The resulting rule \(a^\top h\) can then be evaluated for any small displacement we want to consider.
Coordinate by coordinate, the rule is
\[a_i=\sum_{j=1}^{m}b_j\frac{\partial F_j}{\partial x_i}(x).\]Changing \(x_i\) changes each intermediate coordinate \(y_j\) at rate \(\partial F_j/\partial x_i\). The coefficient \(b_j\) converts that change into a change in the final scalar. Summing these contributions gives \(a_i\).
The word “backward” refers to the order of this coefficient calculation. We first evaluate \(x\mapsto y\mapsto\phi(y)\). We then start with the scalar’s response coefficients with respect to \(y\) and compute its response coefficients with respect to the earlier variable \(x\). Repeating this calculation across a composition is called backpropagation, abbreviated BP, and is developed in Part 3c. The next example makes every quantity explicit.
3b. Stage I — A complete two-layer example
Let
\[F(x_1,x_2)=(x_1^2,\;x_1+x_2), \qquad \phi(y_1,y_2)=\tfrac12(y_1^2+y_2^2).\]At \(x=(1,2)\), the forward evaluation gives \(y=(1,3)\). The local derivatives are
\[J_F(x)= \begin{pmatrix}2&0\\1&1\end{pmatrix}, \qquad D\phi(y)[k]=k_1+3k_2.\]Thus \(b=(1,3)^\top\). For an arbitrary input displacement \(h\),
\[DF(x)[h]=(2h_1,\;h_1+h_2)^\top,\]and
\[DH(x)[h]=2h_1+3(h_1+h_2)=5h_1+3h_2.\]The same calculation can be organized backward:
\[a=J_F(x)^\top b =\begin{pmatrix}2&1\\0&1\end{pmatrix} \begin{pmatrix}1\\3\end{pmatrix} =\begin{pmatrix}5\\3\end{pmatrix}.\]Notice that \(x_1\) affects both outputs. Its response coefficient is the sum of both contributions, \(2\cdot1+1\cdot3=5\).
For a direct check,
\[H(x)=\tfrac12x_1^4+\tfrac12(x_1+x_2)^2,\]whose partial derivatives at \((1,2)\) are indeed \(5\) and \(3\).
3c. Stage I — What backpropagation adds to the chain rule
Definition 10 (Reverse-mode differentiation and backpropagation). Reverse-mode automatic differentiation is an algorithm for computing the derivative of a scalar output of a differentiable computation: evaluate the computation forward, then propagate the output’s scalar response rule backward through the local derivatives. Backpropagation is this procedure applied to a neural network’s computation.
For a composition
\[x_0\longmapsto x_1=F_1(x_0)\longmapsto\cdots \longmapsto x_K=F_K(x_{K-1}), \qquad L=\phi(x_K),\]let \(J_j=DF_j(x_{j-1})\) denote each local derivative matrix. Starting from the coefficient vector \(b_K\) of \(D\phi(x_K)\), compute
\[b_{j-1}=J_j^\top b_j,\qquad j=K,K-1,\ldots,1.\]Then \(b_0\) gives the coefficients of the scalar derivative with respect to all coordinates of \(x_0\). If a variable influences several later operations, add the contributions from those paths, as in the example above.
You are right that the mathematical rule is the chain rule. The additional idea is how to organize its evaluation: propagate one scalar functional backward rather than propagate a separate input perturbation for every coordinate. Intermediate forward values are saved or recomputed as needed to evaluate the local derivatives. Implementations compute products \(J_j^\top b_j\) without usually constructing the full Jacobian matrices or their full product. For a scalar output with many inputs, this reuse is the source of reverse mode’s computational advantage.
Backpropagation computes the derivative coefficients. It does not choose a learning rate or an update metric. In Euclidean coordinates these coefficients are conventionally called the gradient; Stage III explains that identification and why a different inner product changes the update.
Stage I checkpoint. We can now describe change by a linear functional, understand its basis-dependent coefficients, obtain it by differentiating a nonlinear function, and propagate it through a composition. To decide what counts as a good step, we still need to specify how large a step is. That is Stage II.
4. Stage II — Inner products, lengths, and Cauchy–Schwarz
Without a size constraint, a nonzero linear response can be made arbitrarily large by scaling a favorable step. A length measurement supplies the missing budget. An inner product gives a particularly useful way to define that length and compare directions.
Definition 11 (Real inner product). An inner product on \(\mathbb R^n\) is a map \(\langle\cdot,\cdot\rangle:\mathbb R^n\times\mathbb R^n\to\mathbb R\) satisfying, for all \(u,v,w\in\mathbb R^n\) and \(\alpha,\beta\in\mathbb R\):
- Linearity: \(\langle\alpha u+\beta v,w\rangle=\alpha\langle u,w\rangle+\beta\langle v,w\rangle\).
- Symmetry: \(\langle u,v\rangle=\langle v,u\rangle\).
- Positive definiteness: \(\langle u,u\rangle\ge0\), with equality if and only if \(u=0\).
Symmetry and linearity in the first argument imply linearity in the second. Linearity in both arguments is called bilinearity.
Example. The Euclidean inner product is \(\langle u,v\rangle_2=u^\top v=\sum_i u_iv_i\). The three conditions follow directly from this formula.
Definition 12 (Norm). A norm is a map \(N:\mathbb R^n\to[0,\infty)\) satisfying, for every \(u,v\in\mathbb R^n\) and \(\alpha\in\mathbb R\):
\[N(u)=0\iff u=0,\qquad N(\alpha u)=|\alpha|N(u),\qquad N(u+v)\le N(u)+N(v).\]We usually write \(\Vert u\Vert\) instead of \(N(u)\). The associated distance is \(d(u,v)=\Vert u-v\Vert\). The closed unit ball is \(\{h:\Vert h\Vert \le1\}\); the unit sphere is \(\{h:\Vert h\Vert =1\}\).
Given an inner product, set \(\Vert u\Vert =\sqrt{\langle u,u\rangle}\). Positivity and homogeneity follow immediately. The triangle inequality needs proof, so the assertion that this formula defines a norm is a result, not part of the definition of an inner product.
Definition 13 (Orthogonality and orthonormality). Relative to a specified inner product, \(u\) and \(v\) are orthogonal if \(\langle u,v\rangle=0\). A list \(q_1,\ldots,q_k\) is orthonormal if \(\langle q_i,q_j\rangle=0\) for \(i\ne j\) and \(\langle q_i,q_i\rangle=1\). An orthonormal basis is a basis with this property.
We now need a bound on how strongly two vectors can align.
Theorem (Cauchy–Schwarz). For any real inner product,
\[\boxed{|\langle u,v\rangle|\le\sqrt{\langle u,u\rangle}\sqrt{\langle v,v\rangle}=\|u\|\,\|v\|.}\]A short proof also explains its equality condition. For \(v\ne0\), set
\[t=\frac{\langle u,v\rangle}{\|v\|^2}.\]Since a squared norm cannot be negative,
\[0\le\|u-tv\|^2 =\|u\|^2-\frac{\langle u,v\rangle^2}{\|v\|^2}.\]Rearranging proves the inequality. Equality holds exactly when \(u\) and \(v\) are linearly dependent, including cases where one is zero.
It also proves the triangle inequality for an inner-product norm:
\[\|u+v\|^2 =\|u\|^2+2\langle u,v\rangle+\|v\|^2 \le(\|u\|+\|v\|)^2.\]Interpretation: For nonzero vectors with fixed lengths, their inner product is largest when they point in the same direction. This will solve our step-selection problem once we can express the response as an inner product.
Not every norm is induced by an inner product; \(\Vert u\Vert _1=\sum_i\vert u_i\vert\) is one example. We focus on inner-product norms because they permit the preceding alignment argument. Our next task is to describe alternative inner products explicitly using matrices.
5. Stage II — Positive-definite matrices define measurements
The Euclidean inner product treats all coordinate axes equally. To express unequal costs and interactions between coordinates, replace \(u^\top v\) by \(u^\top Gv\). Which matrices make this a valid inner product?
Definition 14 (Symmetric matrix and quadratic form). A square real matrix \(G\) is symmetric if \(G^\top=G\). Its quadratic form is the scalar-valued function \(q_G(h)=h^\top Gh\).
Definition 15 (Positive definiteness). A symmetric matrix \(G\in\mathbb R^{n\times n}\) is positive definite if \(h^\top Gh>0\) for every nonzero \(h\in\mathbb R^n\). We write \(G\succ0\). The abbreviation SPD means symmetric positive definite: both symmetry and positivity are required.
Proposition. If \(G\succ0\), then \(u^\top Gv\) defines an inner product: bilinearity follows from matrix multiplication, symmetry follows from \(G^\top=G\), and positivity follows from the definition. The inner product and its induced norm are
\[\boxed{\langle u,v\rangle_G=u^\top Gv,} \qquad \boxed{\|h\|_G=\sqrt{h^\top Gh}.}\]For
\[G=\begin{pmatrix}4&0\\0&1\end{pmatrix},\]we obtain
\[\|h\|_G^2=4h_1^2+h_2^2.\]A displacement of one unit along the first axis has length \(2\), while one unit along the second has length \(1\). The unit-length boundary is an ellipse with semiaxes \(1/2\) and \(1\).
Orthogonality also depends on the inner product. With
\[u=(1,1)^\top,\qquad v=(1,-1)^\top,\]we have
\[u^\top v=0, \qquad u^\top Gv=3.\]They are Euclidean-orthogonal but not \(G\)-orthogonal.
An off-diagonal entry couples coordinate changes. For example,
\[G=\begin{pmatrix}2&1\\1&2\end{pmatrix} \quad\Longrightarrow\quad \|h\|_G^2=2h_1^2+2h_1h_2+2h_2^2.\]Equal-sign and opposite-sign changes now have different costs even when their coordinate magnitudes match.
Why can we restrict attention to symmetric matrices when studying quadratic measurements? Any real matrix \(M\) obeys
\[h^\top Mh=h^\top\frac{M+M^\top}{2}h.\]Its antisymmetric part contributes zero. However, positivity is an additional requirement: symmetry alone does not guarantee a valid squared length.
In fact every real inner product on \(\mathbb R^n\) has this matrix form. Define \(G_{ij}=\langle e_i,e_j\rangle\); bilinearity gives \(\langle u,v\rangle=u^\top Gv\), while symmetry and positivity make \(G\) SPD. Thus this matrix description covers every inner product in our setting.
Diagonal matrices make directional costs easy to read. For a matrix with off-diagonal entries, we need to find the directions in which those couplings disappear. This motivates eigenvectors.
6. Stage II — Eigenvalues reveal the principal directions
Definition 16 (Eigenvalue and eigenvector). For a square matrix \(G\), a real number \(\lambda\) is an eigenvalue with eigenvector \(q\in\mathbb R^n\setminus\{0\}\) if
\[Gq=\lambda q.\]Along that direction, \(G\) simply scales vectors.
Definition 17 (Orthogonal matrix and inverse). A square matrix \(Q\) is orthogonal if \(Q^\top Q=I\), meaning its columns form a Euclidean-orthonormal basis. A square matrix \(P\) is invertible if there is a matrix \(P^{-1}\) satisfying \(P^{-1}P=PP^{-1}=I\). For an orthogonal matrix, \(Q^{-1}=Q^\top\).
Theorem (Spectral theorem). Every real symmetric matrix has a Euclidean-orthonormal eigenbasis. Consequently,
\[G=Q\Lambda Q^\top, \qquad Q^\top Q=I, \qquad \Lambda=\operatorname{diag}(\lambda_1,\ldots,\lambda_n).\]We use this standard linear algebra theorem without proving it here.
Write \(h=Qz\), so \(z=Q^\top h\). Then
\[h^\top Gh=\sum_i\lambda_i z_i^2.\]Three useful consequences follow.
First, \(G\) is positive definite exactly when every \(\lambda_i>0\). In particular, an SPD matrix is invertible.
Second, the set \(\{h:h^\top Gh=1\}\) is an ellipsoid: in the orthonormal coordinates \(z\), its equation is \(\sum_i z_i^2/r_i^2=1\), where \(r_i=1/\sqrt{\lambda_i}\). Here \(r_i\) is the distance from the center to the boundary along principal axis \(q_i\), called its semiaxis length. Thus the unit ellipsoid has semiaxis \(1/\sqrt{\lambda_i}\) in direction \(q_i\). Large eigenvalues mean that displacements in those directions are expensive.
Third, if
\[C=\Lambda^{1/2}Q^\top,\]then \(C^\top C=G\) and
\[\|h\|_G=\|Ch\|_2.\]A weighted length is an ordinary Euclidean length after an invertible linear transformation.
For the off-diagonal example above,
\[q_+=\frac{1}{\sqrt2}(1,1)^\top,\quad \lambda_+=3; \qquad q_-=\frac{1}{\sqrt2}(1,-1)^\top,\quad \lambda_-=1.\]The ellipse is rotated: moving along the equal-sign direction costs more.
One fact will matter in the next note on continuity. For fixed SPD \(G\),
\[\sqrt{\lambda_{\min}}\|h\|_2 \le\|h\|_G \le\sqrt{\lambda_{\max}}\|h\|_2.\]Therefore \(h\to0\) in one norm exactly when it does in the other. These measurements can change steepest directions while agreeing about convergence and continuity, concepts we will formally define in the next note.
Stage II checkpoint. We now have both ingredients: Stage I’s response \(a^\top h\) and Stage II’s inner product that measures \(h\). Stage III combines them: first represent the response using this inner product, then apply Cauchy–Schwarz to choose the best step.
7. Stage III — Represent the response using the chosen measurement
Return to the fixed response \(\ell(h)=a^\top h\). We want a vector whose alignment with \(h\), measured by our chosen inner product, reproduces this response.
Definition 18 (Representing vector). Given a linear functional \(\ell\) and a specified inner product, a representing vector is a vector \(g\) satisfying
\[\ell(h)=\langle g,h\rangle\quad\text{for every }h\in\mathbb R^n.\]Existence and uniqueness must be established; they are not assumed by this definition.
Under the Euclidean inner product,
\[\ell(h)=\langle a,h\rangle.\]Thus \(a\) represents the functional as an inner product.
Under the \(G\)-inner product, seek a vector \(g\) such that
\[\ell(h)=\langle g,h\rangle_G \quad\text{for every }h.\]This requires
\[a^\top h=g^\top Gh=(Gg)^\top h \quad\text{for every }h,\]hence
\[Gg=a, \qquad \boxed{g=G^{-1}a.}\]Since \(G\) is invertible, this proves both existence and uniqueness. This distinction is the foundation of natural gradient:
The linear response rule is fixed. Its representing vector depends on the inner product.
Definition 19 (Gradient relative to an inner product). For a differentiable scalar function \(f\) at \(x\), its gradient with respect to a chosen inner product is the unique vector \(g\) satisfying
\[Df(x)[h]=\langle g,h\rangle\quad\text{for every }h.\]Stage I supplied the functional \(Df(x)\); Stage II supplies the inner product. In standard Euclidean coordinates, the representing vector is
\[\nabla f(x)= \begin{pmatrix}\partial_1f(x)&\cdots&\partial_nf(x)\end{pmatrix}^{\top}.\]For the \(G\)-inner product, the definition and the preceding derivation give
\[\operatorname{grad}_G f(x)=G^{-1}\nabla f(x).\]Thus, at a fixed point, three things must be distinguished: the derivative as a linear functional, its coefficients in a chosen basis, and its representing vector under a chosen inner product.
What does it mean for the coefficient list and the gradient coordinates to coincide?
First fix the inner product and one basis \(B=(e_1,\ldots,e_n)\). We are not changing either while making the following comparison. For a functional \(\ell\), let:
- \(a_B\) be its coefficient list: \((a_B)_i=\ell(e_i)\).
- \(g\) be its representing vector: \(\ell(v)=\langle g,v\rangle\) for all \(v\).
- \(g_B=[g]_B\) be the coordinates of that vector in \(B\).
- \(G_B\) be the inner product matrix in \(B\): \((G_B)_{ij}=\langle e_i,e_j\rangle\).
For any displacement with coordinates \(h_B\),
\[a_B^\top h_B=\ell(v)=g_B^\top G_Bh_B.\]Since this holds for every \(h_B\),
\[\boxed{a_B=G_Bg_B,\qquad g_B=G_B^{-1}a_B.}\]We are comparing two lists in the same basis, describing different objects: a functional and its representing vector.
If \(G_B=I\), then \(g_B=a_B\), whatever functional we choose. The condition \(G_B=I\) says exactly that \(B\) is orthonormal for the fixed inner product, because its matrix entries are \(\langle e_i,e_j\rangle\).
Conversely, suppose \(g_B=a_B\) for every functional in this fixed basis. Every list \(a_B\in\mathbb R^n\) specifies a functional, so \(G_B^{-1}a_B=a_B\) must hold for every vector \(a_B\). A matrix that leaves every vector unchanged is \(I\); therefore \(G_B=I\).
The statement can thus be expressed more concretely:
In a basis orthonormal for the chosen inner product, a functional’s coefficients can be read directly as its representing vector’s coordinates. In a general basis, convert the coefficients using \(G_B^{-1}\).
The words “for every functional” matter. Even if \(G_B\ne I\), the lists can coincide for a particular functional. For example, \(G_B=\operatorname{diag}(4,1)\) and \(a_B=(0,1)^\top\) give \(g_B=(0,1)^\top\). One coincidence does not make the basis orthonormal.
Now change the basis while keeping the functional and inner product fixed. Take the ordinary Euclidean inner product in \(\mathbb R^2\) and
\[\ell(v)=2v_1+v_2.\]In the standard basis \(B=(e_1,e_2)\), its representing vector is \(g=2e_1+e_2\). Choose \(C=(2e_1,e_2)\). The same objects now have these descriptions:
| Quantity | Standard basis \(B\) | Rescaled basis \(C\) |
|---|---|---|
| Functional coefficients | \(a_B=(2,1)^\top\) | \(a_C=(4,1)^\top\) |
| Inner product matrix | \(G_B=I\) | \(G_C=\operatorname{diag}(4,1)\) |
| Coordinates of the same representing vector \(g\) | \(g_B=(2,1)^\top\) | \(g_C=(1,1)^\top\) |
The entries of \(a_C\) are \(\ell(2e_1)=4\) and \(\ell(e_2)=1\). The entries of \(g_C\) follow from \(g=1(2e_1)+1e_2\). The first diagonal entry of \(G_C\) is \(\langle2e_1,2e_1\rangle=4\). Thus
\[G_C^{-1}a_C = \begin{pmatrix}1/4&0\\0&1\end{pmatrix} \begin{pmatrix}4\\1\end{pmatrix} = \begin{pmatrix}1\\1\end{pmatrix} =g_C.\]Everything transforms consistently. Neither the functional nor the inner product nor the representing vector has changed; their coordinate descriptions have. The coefficient list and vector coordinates coincide in \(B\), which is orthonormal, but do not coincide in \(C\), which is not.
There is a separate operation: keep the basis fixed and choose a different inner product. Then the same functional generally has a different representing vector, not merely different coordinates for the same vector. For example, in the standard basis with the same \(a=(2,1)^\top\), changing the measurement from \(G=I\) to \(G=\operatorname{diag}(4,1)\) changes the representing vector from \((2,1)^\top\) to \((1/2,1)^\top\). This is the choice relevant to weighted and natural gradients. Part 9 returns to the coordinate-transformation rules in general form.
We have not changed how \(f\) responds to a specified displacement. We have changed how that response is represented as a direction. We can now use Cauchy–Schwarz to decide which unit-length step produces the largest response.
8. Stage III — Derive the best step
Definition 20 (Unit steepest ascent step for a linear response). Given \(\ell\) and a norm, a unit steepest ascent step is any vector attaining the largest value of \(\ell(h)\) over the closed unit ball. A steepest descent step minimizes that value. These definitions specify an optimization problem; we must still find and justify its solution.
Proposition. Let \(G\succ0\) and \(a\ne0\). Consider
\[\max_{\|h\|_G\le1}a^\top h.\]Using the representation just derived and Cauchy–Schwarz,
\[a^\top h =\langle G^{-1}a,h\rangle_G \le\|G^{-1}a\|_G\,\|h\|_G \le\sqrt{a^\top G^{-1}a}.\]Equality occurs when \(h\) points along \(G^{-1}a\) and has \(G\)-length one. Therefore
\[\boxed{ h_*=\frac{G^{-1}a}{\sqrt{a^\top G^{-1}a}}. }\]For greatest decrease, use \(-h_*\). If \(a=0\), every feasible step gives zero change in this linear model.
There are three related quantities worth distinguishing:
| Quantity | Formula |
|---|---|
| Representing vector | \(G^{-1}a\) |
| Unit-length steepest ascent step | \(G^{-1}a/\sqrt{a^\top G^{-1}a}\) |
| A common descent update | \(-\eta G^{-1}a\), with chosen step scale \(\eta>0\) |
The last update does not generally have \(G\)-length \(\eta\); its length is \(\eta\sqrt{a^\top G^{-1}a}\).
For our opening example,
\[a=\begin{pmatrix}2\\1\end{pmatrix}, \qquad G=\begin{pmatrix}4&0\\0&1\end{pmatrix}.\]| Measurement | Unit-length maximizing step | Maximum response |
|---|---|---|
| Euclidean | \((2,1)^\top/\sqrt5\) | \(\sqrt5\) |
| \(G\)-weighted | \((1/2,1)^\top/\sqrt2\) | \(\sqrt2\) |
These maxima use different feasible sets, so their numerical sizes are not an optimization-performance comparison. The important observation is the change in direction: the more expensive first coordinate receives a smaller update.
A related unconstrained problem makes the update scale explicit:
\[\min_h\left\{a^\top h+\frac{1}{2\eta}h^\top Gh\right\}.\]Completing the square gives
\[a^\top h+\frac{1}{2\eta}h^\top Gh = \frac{1}{2\eta}(h+\eta G^{-1}a)^\top G(h+\eta G^{-1}a) -\frac{\eta}{2}a^\top G^{-1}a.\]The minimum occurs at
\[h=-\eta G^{-1}a.\]This balances predicted objective reduction against a quadratic step cost. For a nonlinear objective, the linear prediction is local; it does not guarantee improvement for arbitrarily large steps.
9. Stage III — Check that the step is independent of its coordinate description
We have solved the original problem. But the solution is expressed in coordinates, so a consistency question remains: if we describe the same displacement using a different basis, do we obtain the same physical update?
Definition 21 (Invertible linear coordinate change). A relation \(x=Pz\), with \(P\) invertible, gives two coordinate descriptions of the same vector. The columns of \(P\) are the new basis vectors expressed in the old coordinates. This changes the description; choosing a new inner product changes the measurement itself.
Part 2a already showed how a fixed displacement and functional acquire new coordinate lists. We now complete that calculation by transforming the measurement as well. Suppose \(x=Pz\), where \(P\) is invertible. A displacement satisfies \(h_x=Ph_z\).
If a response rule has coefficient vector \(a_x\) in \(x\)-coordinates, then
\[a_x^\top h_x=a_x^\top Ph_z =(P^\top a_x)^\top h_z,\]so
\[a_z=P^\top a_x.\]To preserve the same measurement, its matrix must transform too:
\[h_x^\top G_xh_x =h_z^\top(P^\top G_xP)h_z, \qquad G_z=P^\top G_xP.\]The representing vector consequently transforms as
\[g_z=G_z^{-1}a_z =P^{-1}G_x^{-1}a_x=P^{-1}g_x.\]Thus \(Pg_z=g_x\): both coordinate descriptions specify the same displacement.
Notice the different transformation rules:
\[a_z=P^\top a_x, \qquad g_z=P^{-1}g_x.\]Here \(a\) describes a functional, while \(g\) describes a vector. For comparison, a displacement also transforms as \(h_z=P^{-1}h_x\).
| Fixed object or rule | Change of coordinate description |
|---|---|
| Displacement | \(h_z=P^{-1}h_x\) |
| Linear functional | \(a_z=P^\top a_x\) |
| Inner product | \(G_z=P^\top G_xP\) |
| Representing vector | \(g_z=P^{-1}g_x\) |
Both \(a_x^\top h_x=a_z^\top h_z\) and \(h_x^\top G_xh_x=h_z^\top G_zh_z\) remain unchanged. Thus the response and the step budget describe the same optimization problem in either basis.
Choosing \(G=I\) independently in two coordinate systems related by a non-orthogonal scaling generally chooses different measurements. This explains why ordinary gradient descent is sensitive to parameter scaling.
10. Stage III — Restrict the allowed vectors: projection and least squares
So far every displacement was allowed. In applications, an update or prediction may be restricted to a subspace—for example, the span of a model’s features. The next question is how to approximate a desired vector using only allowed directions.
Definition 22 (Orthogonal projection). Given a subspace \(S\subseteq\mathbb R^n\), an inner product, and a vector \(b\), the orthogonal projection of \(b\) onto \(S\) is the vector \(p\in S\) minimizing \(\Vert b-p\Vert ^2\). The name refers to the following characterization.
Proposition (Projection characterization). In our finite-dimensional setting, this minimizer exists, is unique, and satisfies residual orthogonality.
Under the \(G\)-norm, the answer \(p\in S\) is characterized by
\[\langle b-p,s\rangle_G=0 \quad\text{for every }s\in S.\]The residual is orthogonal to all allowed directions within the subspace.
To see why this gives the closest point, write any alternative as \(p+s\). Orthogonality gives
\[\|b-(p+s)\|_G^2 =\|b-p\|_G^2+\|s\|_G^2.\]Every nonzero change \(s\) increases the squared distance, proving sufficiency and uniqueness. Conversely, if \(r=b-p\) has \(\langle r,s\rangle_G\ne0\) for some \(s\in S\), then
\[\|r-ts\|_G^2=\|r\|_G^2-2t\langle r,s\rangle_G+t^2\|s\|_G^2\]is smaller for a sufficiently small \(t\) of the appropriate sign. Thus a minimizer must satisfy orthogonality. Existence follows from solving in any basis of \(S\), as in the least-squares construction below; for \(S=\{0\}\), the answer is simply \(p=0\).
For example, project \(b=(2,0)^\top\) onto the line
\[S=\{c(1,1)^\top:c\in\mathbb R\}.\]Under Euclidean distance, orthogonality gives
\[(1,1)^\top\bigl((2,0)^\top-c(1,1)^\top\bigr)=0,\]so \(c=1\) and \(p=(1,1)^\top\).
Under \(G=\operatorname{diag}(4,1)\),
\[4(2-c)-c=0,\]so \(c=8/5\). The projection becomes \((8/5,8/5)^\top\), keeping the first coordinate closer to \(2\) because first-coordinate errors cost more.
Definition 23 (Column space and least squares). The column space of \(A\in\mathbb R^{m\times n}\) is \(\operatorname{col}(A)=\{Az:z\in\mathbb R^n\}\), the span of its columns. A least-squares solution for \(A\) and \(b\) is any coefficient vector minimizing the squared residual \(\Vert Az-b\Vert _2^2\).
Least squares therefore implements projection onto a column space. Given \(A\in\mathbb R^{m\times n}\) and \(b\in\mathbb R^m\), solve
\[\min_z\|Az-b\|_2^2.\]The vector \(Az\) lies in the column space of \(A\). Residual orthogonality gives the normal equations
\[A^\top(Az-b)=0.\]If the columns of \(A\) are linearly independent,
\[z_*=(A^\top A)^{-1}A^\top b.\]The inverse exists because
\[u^\top A^\top Au=\|Au\|_2^2>0 \quad(u\ne0)\]under that independence assumption.
With an SPD residual weight \(W\in\mathbb R^{m\times m}\), the corresponding equations are
\[A^\top WAz=A^\top Wb.\]Here \(W\) measures residuals in the observation space. Its role and dimension need not match a matrix measuring parameter updates.
These inverse formulas explain the mathematics. Numerical implementations usually solve linear systems directly; least-squares solvers often use QR or SVD rather than explicitly constructing an inverse.
11. Stage III — Revisit Stage II when some directions have zero cost
All the preceding weighted measurements were SPD. This guaranteed that every nonzero direction has positive cost and that \(G^{-1}\) exists. Before applying these ideas to Fisher information, we must understand what fails when some directions cost zero.
Definition 24 (Positive semidefinite matrix, kernel, and seminorm). A symmetric matrix \(G\) is positive semidefinite, written \(G\succeq0\), if
\[h^\top Gh\ge0,\]for every \(h\), allowing equality for nonzero \(h\). Its kernel is \(\ker G=\{h:Gh=0\}\). A square matrix is singular if it is not invertible; equivalently, its kernel contains a nonzero vector. A seminorm satisfies the norm axioms except that zero size need not imply a zero vector.
For \(G\succeq0\), \(\sqrt{h^\top Gh}\) is a seminorm. The spectral decomposition shows that its zero-length directions are exactly \(\ker G\). Thus a singular measurement cannot distinguish certain nonzero displacements from no displacement at all.
For example,
\[G=\begin{pmatrix}1&0\\0&0\end{pmatrix}\]ignores the second coordinate.
Consequently, maximizing \(a^\top h\) subject to \(h^\top Gh\le1\) is unbounded if \(a=(0,1)^\top\): the constraint puts no limit on \(h_2\).
A singular matrix cannot simply be inverted. One approach is to restrict to the span of eigenvectors with positive eigenvalues, where the measurement is positive definite. Another is damping: replace \(G\) by \(G+\lambda I\), where \(\lambda>0\). Indeed,
\[h^\top(G+\lambda I)h\ge\lambda\|h\|_2^2>0\quad(h\ne0).\]Damping adds a cost to every direction. It changes the measurement; it is not an exact algebraic substitute for an inverse that does not exist. More general treatments of singular systems can wait until they are needed.
This matters later because Fisher information is always positive semidefinite under its usual definition, but need not be positive definite.
12. Exercises across the three stages
The exercises follow the same progression: transform a response, understand a measurement, combine them to optimize, and check coordinate consistency. Try them before reading the solutions.
-
Let
\[A=\begin{pmatrix}1&2\\-1&3\end{pmatrix}, \qquad b=(2,-1)^\top.\]Find \(a\) such that \(b^\top Ah=a^\top h\) for every \(h\).
-
For
\[G=\begin{pmatrix}2&1\\1&2\end{pmatrix},\]find its eigenvalues and unit eigenvectors. What are the directions and lengths of the unit ellipse’s semiaxes?
-
Let \(a=(3,2)^\top\) and \(G=\operatorname{diag}(9,1)\). Find the representing vector, the unit-length steepest ascent step, and the maximum response over the unit ball.
-
Let \(x=Pz\), \(P=\operatorname{diag}(10,1)\), and \(G_x=I\). Find \(G_z\). Explain why choosing \(G_z=I\) instead would change the measurement.
-
Stage I: basis independence. Use Part 2a’s basis change \(P=\operatorname{diag}(2,1)\), but now let \(h_B=(3,-1)^\top\) and \(a_B=(2,1)^\top\). Find \(h_C,a_C\) and check that both pairings agree. What mistake occurs if you keep \(a_C=a_B\)?
-
Stage I: derivative and reverse propagation. For Part 3b’s functions, work at \(x=(2,1)\). Find \(y\), the output response coefficients \(b\), and the input response coefficients \(a\). Check by directly differentiating the scalar composition.
Solutions
-
\(a=A^\top b=(3,1)^\top\).
-
The unit eigenvectors are \(q_+=(1,1)^\top/\sqrt2\) and \(q_-=(1,-1)^\top/\sqrt2\), with eigenvalues \(3\) and \(1\). The corresponding semiaxis lengths are \(1/\sqrt3\) and \(1\).
-
The representing vector and its length are
\[g=G^{-1}a=(1/3,2)^\top, \qquad \|g\|_G=\sqrt5.\]Thus
\[h_*=(1/3,2)^\top/\sqrt5, \qquad \max a^\top h=\sqrt5.\]Verify directly that \(9h_{*,1}^2+h_{*,2}^2=1\).
-
The transformed measurement is
\[G_z=P^\top P=\operatorname{diag}(100,1).\]A unit displacement along \(z_1\) produces a displacement of length \(10\) in \(x\)-coordinates. Setting \(G_z=I\) would assign it length \(1\), changing the measurement.
-
\(h_C=(3/2,-1)^\top\) and \(a_C=(4,1)^\top\), giving \(5\) in either basis. Keeping the old coefficient list gives \(2\), because it specifies a different functional in the new basis.
-
\(y=(4,3)^\top\), so \(b=(4,3)^\top\), and
\[J_F(2,1)=\begin{pmatrix}4&0\\1&1\end{pmatrix}, \qquad a=J_F(2,1)^\top b=(19,3)^\top.\]Direct differentiation gives \(\partial_1H=2x_1^3+x_1+x_2=19\) and \(\partial_2H=x_1+x_2=3\) at this point.
Before continuing, make sure you can explain the following equation in words:
\[\boxed{ \ell(h)=a^\top h =\langle G^{-1}a,h\rangle_G. }\]It says that one fixed scalar response rule has different vector representations under different inner products. The next note will revisit total derivatives systematically, including limits, continuity, directional derivatives, and why partial derivatives alone are insufficient. Later, Fisher information will provide a principled choice of \(G\) for measuring changes in probability distributions.
Enjoy Reading This Article?
Here are some more articles you might like to read next: