% !TeX program = xelatex
\documentclass[11pt,a4paper]{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\usepackage{libertine}
\usepackage{microtype}
\usepackage[a4paper,margin=24mm,headheight=15pt]{geometry}
\usepackage{setspace,parskip}
\setstretch{1.04}\setlength{\parindent}{0pt}
\usepackage{amsmath,amssymb,amsthm,mathtools,bm,mathrsfs}
\usepackage{array,booktabs,tabularx,enumitem,xcolor,graphicx}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,calc,positioning,fit,backgrounds,intersections,patterns,decorations.pathreplacing}
\usepackage[most]{tcolorbox}
\usepackage{fancyhdr,titlesec,hyperref,cleveref}

\usepackage[font=small]{caption}

\definecolor{navy}{HTML}{153A5B}\definecolor{blue}{HTML}{2474A6}
\definecolor{teal}{HTML}{168C8C}\definecolor{green}{HTML}{39845A}
\definecolor{orange}{HTML}{D77A27}\definecolor{red}{HTML}{B83A3A}
\definecolor{purple}{HTML}{7255A5}\definecolor{ink}{HTML}{242A30}
\definecolor{softblue}{HTML}{EEF6FA}\definecolor{softgreen}{HTML}{EEF8F2}
\definecolor{softorange}{HTML}{FFF5E9}\definecolor{softred}{HTML}{FCEEEE}
\definecolor{softgray}{HTML}{F4F5F6}
\color{ink}
\hypersetup{colorlinks=true,linkcolor=navy,urlcolor=blue,citecolor=teal,
 pdftitle={Intrinsic First-Order Optimization: Differentials, Gradients, Constraints, and Multipliers},
 pdfauthor={Antonio Franchi}}
\titleformat{\section}{\Large\bfseries\sffamily\color{navy}}{\thesection}{.65em}{}
\titleformat{\subsection}{\large\bfseries\sffamily\color{blue}}{\thesubsection}{.6em}{}
\titleformat{\subsubsection}{\normalsize\bfseries\sffamily\color{teal}}{\thesubsubsection}{.5em}{}
\titlespacing*{\section}{0pt}{2ex plus .3ex}{.9ex}
\titlespacing*{\subsection}{0pt}{1.5ex plus .2ex}{.6ex}


\pagestyle{fancy}
\fancyhf{}

\fancyhead[L]{%
  \sffamily\small
  Basic Optimization Concepts Through the Eyes of Differential Geometry
}

\fancyhead[R]{%
  \sffamily\small
  A.~Franchi
}

\fancyfoot[L]{%
  \sffamily\footnotesize
  Intrinsic First-Order Optimization
}

\fancyfoot[C]{%
  \sffamily\small
  \thepage
}

\fancyfoot[R]{%
  \sffamily\footnotesize
  August 2026
}

\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}


\newtheoremstyle{lecturestyle}{7pt}{7pt}{\itshape}{}{\sffamily\bfseries\color{navy}}{.}{.5em}{}
\theoremstyle{lecturestyle}
\newtheorem{theorem}{Theorem}[section]\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}\newtheorem{exercise}{Exercise}[section]
\theoremstyle{remark}\newtheorem{remark}[theorem]{Remark}
\newenvironment{proofsketch}{\begin{proof}[Proof sketch]}{\end{proof}}

\newtcolorbox{keyidea}[1][]{enhanced,breakable,colback=softblue,colframe=blue,boxrule=.8pt,arc=2mm,left=3mm,right=3mm,top=2mm,bottom=2mm,fonttitle=\sffamily\bfseries,title={Key idea},#1}
\newtcolorbox{warningbox}[1][]{enhanced,breakable,colback=softred,colframe=red,boxrule=.8pt,arc=2mm,left=3mm,right=3mm,top=2mm,bottom=2mm,fonttitle=\sffamily\bfseries,title={Conceptual warning},#1}
\newtcolorbox{coordinatebox}[1][]{enhanced,breakable,colback=softgreen,colframe=green,boxrule=.8pt,arc=2mm,left=3mm,right=3mm,top=2mm,bottom=2mm,fonttitle=\sffamily\bfseries,title={Coordinate realization},#1}
\newtcolorbox{geombox}[1][]{enhanced,breakable,colback=softorange,colframe=orange,boxrule=.8pt,arc=2mm,left=3mm,right=3mm,top=2mm,bottom=2mm,fonttitle=\sffamily\bfseries,title={Geometric interpretation},#1}
\newtcolorbox{takeaway}[1][]{enhanced,breakable,colback=softgray,colframe=navy,boxrule=1pt,arc=2mm,left=3mm,right=3mm,top=2mm,bottom=2mm,fonttitle=\sffamily\bfseries,title={Takeaway},#1}

\DeclareMathOperator{\grad}{grad}\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\rank}{rank}\DeclareMathOperator{\Span}{span}
\DeclareMathOperator{\Id}{Id}\DeclareMathOperator{\Hess}{Hess}
\DeclareMathOperator{\Proj}{Proj}\DeclareMathOperator{\diag}{diag}
\newcommand{\R}{\mathbb R}\newcommand{\T}{\mathrm T}\newcommand{\dd}{\mathrm d}
\newcommand{\cV}{\mathcal V}\newcommand{\cW}{\mathcal W}\newcommand{\Fw}{\mathcal F_w}
\newcommand{\Lag}{\mathcal L}\newcommand{\pair}[2]{\left\langle#1,#2\right\rangle}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\sharpmap}{\mathord\sharp}\newcommand{\flatmap}{\mathord\flat}
\newcommand{\bbullet}{\mathord\cdot}

\begin{document}
\begin{titlepage}
\thispagestyle{empty}

\begin{tikzpicture}[remember picture,overlay]
    \fill[navy]
        (current page.north west)
        rectangle
        ([yshift=-12.0cm]current page.north east);

    \fill[teal]
        ([yshift=-12.0cm]current page.north west)
        rectangle
        ([yshift=-12.13cm]current page.north east);

    \draw[blue!28,line width=18pt]
        ([xshift=-1cm,yshift=2cm]current page.south east)
        circle (4.8cm);

    \draw[purple!22,line width=9pt]
        ([xshift=-1cm,yshift=2cm]current page.south east)
        circle (3.6cm);
\end{tikzpicture}

\vspace*{1.0cm}

{\sffamily\bfseries\color{white}\Large
LECTURE\par}

\vspace{0.7cm}

{\sffamily\bfseries\color{white}\fontsize{27}{33}\selectfont
Intrinsic First-Order Optimization:\\[2mm]
Differentials, Gradients, Constraints, and Multipliers\par}

\vspace{0.85cm}

{\sffamily\color{white!90}\Large
Basic Optimization Concepts Through the Eyes of Differential Geometry\par}

\vspace{1.5cm}

{\sffamily\color{black}
\large\bfseries Antonio Franchi\par}

\vspace{0.0cm}

{\sffamily\color{black}
\normalsize
University of Twente and \\
Sapienza University of Rome\par}

\vspace{0.45cm}

{\sffamily\color{black}
\normalsize August 2026\par}

\vspace{0.45cm}

{\sffamily\color{black}
\normalsize Ver. 0.2.0 (Draft)\par}

\vfill

\begin{minipage}{0.86\textwidth}
\begin{keyidea}[title={Guiding question}]
What first-order information belongs intrinsically to the cost, how
does a metric turn it into a gradient, and how do equality constraints
turn the same differential into a pulled-back multiplier covector?
\end{keyidea}
\end{minipage}

\par\vspace{0.8cm}

{\sffamily\large
\textbf{Central message.}
The cost supplies an intrinsic differential. A metric turns this
covector into a gradient and defines steepest descent. A constraint
fiber restricts the admissible tangent directions; constrained
stationarity places the same differential in the conormal space, where
it becomes the pullback of a multiplier covector. Coordinates represent
all these constructions and make them computable.\par}

\vspace{0.8cm}

\end{titlepage}

\clearpage
\thispagestyle{fancy}

\section*{Use, attribution, and disclaimer}
\addcontentsline{toc}{section}{Use, attribution, and disclaimer}

\begin{keyidea}[title={Educational use and attribution}]
These notes may be used, copied, shared, and adapted for personal study,
teaching, and other non-commercial educational purposes. No prior
permission is required for such use, provided that the source is
acknowledged and that modified versions are not presented as the
author's original text.

Suggested citation:

\begin{quote}
Antonio Franchi,
\emph{Intrinsic First-Order Optimization: Differentials, Gradients,
Constraints, and Multipliers},
Optimization Through the Eyes of Differential Geometry,
August 2026.
\end{quote}
\end{keyidea}

\begin{warningbox}[title={Accuracy and responsibility}]
These notes are educational material and may contain typographical
errors, mathematical inaccuracies, incomplete arguments, or statements
that require additional hypotheses. Although reasonable care has been
taken in their preparation, no guarantee is made regarding their
completeness, correctness, or suitability for a particular purpose.

Readers are encouraged to verify all definitions, derivations, proofs,
and computational procedures independently before relying on them in
research, teaching, software, engineering applications, or other
professional activities. The author accepts no responsibility or
liability for errors, omissions, interpretations, or consequences
arising from the use of this material.
\end{warningbox}

\begin{geombox}[title={Feedback and corrections}]
Questions, corrections, and suggestions for improving these notes are
welcome. When reporting a possible error, please indicate the relevant
section, equation, proposition, or page number.
\end{geombox}

\vfill

{\sffamily\small\color{gray}
\textbf{Author:} Antonio Franchi

\textbf{Affiliations:} University of Twente and Sapienza University of
Rome

\textbf{Document date:} August 2026
\par}

\clearpage
\tableofcontents
\clearpage




\section*{Prerequisites and scope}
\addcontentsline{toc}{section}{Prerequisites and scope}


This lecture assumes basic familiarity with linear algebra, multivariable
calculus, and the elementary language of smooth manifolds. The required
concepts are summarized below to clarify what will be used without
being developed from first principles.

\subsection*{Linear algebra}

The reader is expected to be familiar with:

\begin{itemize}[leftmargin=*]
    \item finite-dimensional real vector spaces and linear subspaces;

    \item linear maps, kernels, images, rank, and the rank--nullity
    theorem;

    \item bases, coordinate components, and changes of basis;

    \item dual spaces and covectors;

    \item dual bases and the canonical pairing between a covector and
    a vector;

    \item dual maps, also called pullbacks in the differential-geometric
    setting;

    \item inner products, orthogonality, orthogonal complements, and
    positive-definite bilinear forms; and

    \item symmetric positive-definite matrices and their elementary
    properties.
\end{itemize}

In particular, the reader should be comfortable with the distinction
between a vector space \(E\) and its dual space \(E^*\). No
identification between them is assumed until an inner product is
introduced.

\subsection*{Multivariable calculus}

The reader should be familiar with:

\begin{itemize}[leftmargin=*]
    \item differentiable maps between open subsets of Euclidean spaces;

    \item directional derivatives, Jacobian matrices, and the chain
    rule;

    \item first-order Taylor expansions;

    \item gradients and Hessian matrices in standard coordinates; and

    \item equality-constrained optimization and the classical
    Lagrange-multiplier equation at an introductory level.
\end{itemize}

The lecture will reinterpret several of these familiar constructions
intrinsically. In particular, the usual column of partial derivatives
will be reconsidered as the coordinate representation of a covector,
rather than being assumed from the outset to be a vector.

\subsection*{Elementary differential geometry}

The reader is expected to know the basic definitions of:

\begin{itemize}[leftmargin=*]
    \item smooth manifolds, charts, coordinate functions, atlases, and
    coordinate transitions;

    \item tangent spaces and tangent vectors represented by smooth
    curves;

    \item cotangent spaces and covectors;

    \item differentials of smooth maps and the chain rule on manifolds;

    \item tangent and cotangent coordinate bases;

    \item smooth submanifolds and inclusion maps;

    \item Riemannian metrics and the corresponding notions of length,
    angle, and orthogonality; and

    \item regular values and the regular level-set theorem.
\end{itemize}

Some familiarity with the tangent and cotangent bundles is useful, but
only their pointwise meaning is essential. Retractions, conormal
bundles, metric gradients, and the geometric interpretation of
Lagrange multipliers will be introduced or reviewed when they are
needed.

\subsection*{Conventions and level of treatment}

All vector spaces are finite-dimensional and real. The manifolds
\(\mathcal V\) and \(\mathcal W\) are assumed smooth, and all maps are
assumed sufficiently smooth for the displayed derivatives to exist.

The lecture carefully separates three levels of description:

\begin{enumerate}[leftmargin=*]
    \item the intrinsic geometric objects, such as
    \(\dd J_v\in T_v^*\mathcal V\);

    \item the additional structures used to represent or manipulate
    them, such as a Riemannian metric; and

    \item the coordinate arrays used for numerical computation.
\end{enumerate}

Coordinate formulas are not presented as alternatives to intrinsic
geometry. They are numerical representations of the same geometric
objects. Consequently, vectors, covectors, metrics, differentials, and
linear maps must always be transformed according to their respective
tensorial roles.

\begin{keyidea}[title={What this lecture will develop}]
The central constructions of the lecture are not assumed as
prerequisites. The lecture will explain:

\begin{itemize}[leftmargin=*]
    \item why the differential is the primary first-order object;

    \item why a gradient requires a metric;

    \item how coordinate partial derivatives represent a covector;

    \item how preconditioning and Newton's direction can be interpreted
    through metric selection;

    \item why a regular equality constraint defines a fiber whose
    tangent space is a kernel; and

    \item why constrained stationarity produces a multiplier covector
    through the pullback of the constraint differential.
\end{itemize}
\end{keyidea}



\subsection*{Recommended references}
\addcontentsline{toc}{subsection}{Recommended references}

This lecture is intended as a compact bridge between differential
geometry and first-order optimization. The geometric and algorithmic
viewpoints developed here are treated in greater depth in the following
references.

For optimization on smooth manifolds, including Riemannian gradients,
retractions, first- and second-order algorithms, and numerical
implementations, the principal companion reference is
Boumal~\cite{Boumal2023}.

For the underlying theory of smooth manifolds, tangent and cotangent
spaces, differentials, pullbacks, embedded submanifolds, regular level
sets, and vector bundles, see Lee~\cite{Lee2013}.

Readers interested specifically in matrix manifolds and their use in
numerical optimization may also consult
Absil, Mahony, and Sepulchre~\cite{AbsilMahonySepulchre2008}.

\bibliographystyle{abbrv}
% \bibliography{references}
\begin{thebibliography}{9}

\bibitem{Boumal2023}
N.~Boumal,
\emph{An Introduction to Optimization on Smooth Manifolds},
Cambridge University Press, 2023.
doi:10.1017/9781009166164.

\bibitem{Lee2013}
J.~M. Lee,
\emph{Introduction to Smooth Manifolds},
2nd ed., Graduate Texts in Mathematics 218,
Springer, 2013.
doi:10.1007/978-1-4419-9982-5.

\bibitem{AbsilMahonySepulchre2008}
P.-A. Absil, R.~Mahony, and R.~Sepulchre,
\emph{Optimization Algorithms on Matrix Manifolds},
Princeton University Press, 2008.

\end{thebibliography}



\section*{Learning objectives and conceptual map}
\addcontentsline{toc}{section}{Learning objectives and conceptual map}
At the end of this lecture, the reader should be able to distinguish an abstract function from its coordinate formula; distinguish a differential from a gradient; characterize ascent, descent, and level directions without a metric; derive the coordinate formula for a metric gradient; interpret preconditioning and Newton's direction geometrically; formulate equality constraints as regular fibers; derive constrained stationarity through annihilators and pullbacks; explain the Jacobian transpose; distinguish conormal covectors from metric normal vectors; and separate tangent projection from a finite retraction step.

The lecture follows two enrichments of the same intrinsic covector:
\[
\boxed{\dd J_v\xrightarrow{\ \sharp_{g,v}\ }\grad_gJ(v)}
\qquad\text{and}\qquad
\boxed{\dd J_v|_{\T_v\Fw}=0
\Longleftrightarrow
\dd J_v\in(\T_v\Fw)^\circ
\Longleftrightarrow
\dd J_v\in\im(\dd f_v)^*.}
\]
The first chooses a vector representative through a metric. The second restricts the directions on which the differential must vanish.

\clearpage
\section{The function is not its formula}
\begin{keyidea}[title={The function is not its formula}]
When we write
\[
J:\cV\to\R,
\]
the argument of \(J\) is a point of the abstract manifold \(\cV\), not a column of coordinates. A chart
\[
\varphi:U\subset\cV\to\varphi(U)\subset\R^n
\]
produces the coordinate representative
\[
J_\varphi=J\circ\varphi^{-1},
\]
but this formula is only one representation of \(J\). Another chart may make the same intrinsic function look completely different. For example, the same function on a one-dimensional manifold may be represented as
\[
J_x(x)=x^2
\]
in the coordinate \(x\), and, under \(y=\arctan x\), as
\[
J_y(y)=\tan^2y.
\]
The formulas differ, while the assignment of a real number to each point is unchanged.

Thus neither \(J\) nor its differential has one privileged appearance. The function assigns a number to each point \(v\in\cV\); its differential at \(v\) assigns a number to each tangent vector \(\xi\in\T_v\cV\). Globally, \(\dd J\) is a one-form, that is, a section of \(\T^*\cV\).
\end{keyidea}

\section{The differential as the intrinsic first-order object}
Let \(\cV\) be a smooth \(n\)-dimensional manifold, let a cost function \(J:\cV\to\R\) be smooth, and fix \(v\in\cV\).

\begin{definition}[Differential]
The differential of \(J\) at \(v\) is the linear map
\[
\dd J_v:\T_v\cV\to\R
\]
defined by
\[
\dd J_v(\xi)=\left.\frac{\dd}{\dd t}J(\gamma(t))\right|_{t=0},
\]
where \(\gamma(0)=v\) and \(\dot\gamma(0)=\xi\). Thus \(\dd J_v\in\T_v^*\cV\).
\end{definition}

\begin{proposition}[First-order change along a curve]
If \(\gamma(0)=v\) and \(\dot\gamma(0)=\xi\), then
\[
J(\gamma(t))=J(v)+t\,\dd J_v(\xi)+o(t).
\]
\end{proposition}
\begin{proof}
Apply the one-variable Taylor expansion to \(J\circ\gamma\) at \(0\), and use \((J\circ\gamma)'(0)=\dd J_v(\xi)\).
\end{proof}

\begin{geombox}
A tangent vector is an admissible infinitesimal motion. A covector is a linear measuring device that accepts such a motion and returns a scalar. The value \(\dd J_v(\xi)\) is the intrinsic first-order rate of change of the cost along \(\xi\).
\end{geombox}

\begin{warningbox}[title={A differential is not a gradient}]
The differential belongs to \(\T_v^*\cV\), whereas a gradient belongs to \(\T_v\cV\). These spaces are dual, but they are not canonically identical. Writing partial derivatives in a column does not turn the differential into a tangent vector.
\end{warningbox}

\section{Level, ascent, and descent directions}
Assume \(\dd J_v\neq0\), and define
\begin{align*}
\mathcal D_v^-&=\{\xi\in\T_v\cV:\dd J_v(\xi)<0\},\\
\mathcal D_v^+&=\{\xi\in\T_v\cV:\dd J_v(\xi)>0\},\\
\mathcal N_v&=\ker\dd J_v.
\end{align*}
The nonzero linear functional \(\dd J_v\) has rank one, so \(\mathcal N_v\) is a codimension-one subspace separating the two open half-spaces \(\mathcal D_v^-\) and \(\mathcal D_v^+\).

If \(\dd J_v\neq0\), the regular-level-set theorem gives
\[
\T_vJ^{-1}(J(v))=\ker\dd J_v.
\]
Thus the kernel of $\dd J_v$  is the tangent hyperplane to the cost level set through \(v\).

\begin{geombox}
The kernel
\[
\ker\dd J_v=\{\xi:\dd J_v(\xi)=0\}
\]
is one linear hyperplane through the origin. More generally, each level set
\[
H_a=\{\xi\in\T_v\cV:\dd J_v(\xi)=a\}
\]
is an affine hyperplane parallel to the kernel. These labelled hyperplanes partition \(\T_v\cV\). The full labelled stack contains more information than the kernel: two  covectors \(\alpha\) and \(2\alpha\) have the same kernel and the same sign half-spaces, but \((2\alpha)(\xi)=2\alpha(\xi)\). For fixed label increments, the stack of \(2\alpha\) appears twice as dense after a metric is chosen to visualize spacing. The labelled family is intrinsic; its drawn spacing is metric-dependent.
\end{geombox}

\begin{figure}[htbp]
\centering
\begin{tikzpicture}[>=Latex,scale=.9]
\fill[green!8] (-4,0)--(4,0)--(4,2.5)--(-4,2.5)--cycle;
\fill[red!7] (-4,0)--(4,0)--(4,-2.5)--(-4,-2.5)--cycle;
\foreach \y/\lab in {-1.8/-2,-.9/-1,0/0,.9/1,1.8/2}{
  \draw[navy!65,line width=.8pt] (-3.7,\y)--(3.7,\y);
  \node[navy,font=\scriptsize] at (3.95,\y) {$H_{\lab}$};
}
\draw[orange,line width=1.5pt] (-3.8,0)--(3.8,0);
\node[orange,font=\small] at (-2.85,.28) {$\ker\dd J_v$};
\node[green!45!black,font=\small] at (-2.5,2.25) {positive labels: ascent};
\node[red!70!black,font=\small] at (2.35,-2.25) {negative labels: descent};
\draw[->,purple,thick] (0,0)--(0,1.35) node[right] {increasing value};
\begin{scope}[shift={(6.4,0)},scale=.72]
\foreach \y in {-2,-1.5,-1,-.5,0,.5,1,1.5,2}{\draw[blue!70] (-2.1,\y)--(2.1,\y);}
\node[font=\small,align=center] at (0,2.65) {scaled covector\\denser equal-label levels};
\node[font=\scriptsize,align=center] at (0,-2.7) {spacing shown only after\\choosing a metric};
\end{scope}
\end{tikzpicture}
\caption{A nonzero covector is represented by its labelled affine level hyperplanes. The kernel is only the zero level. Scaling preserves the kernel and sign half-spaces but changes the values assigned to tangent vectors.}
\end{figure}

\begin{definition}[Unconstrained stationary point]
A point \(v\in\cV\) is stationary for \(J\) if
\[
\boxed{\dd J_v=0 \in\T_v^*\cV.}
\]
\end{definition}

\begin{warningbox}[title={First-order stationarity is not optimality}]
The equation \(\dd J_v=0\) identifies critical points. It does not classify them as minima, maxima, or saddles.
\end{warningbox}

\section{Metrics, musical maps, and gradients}
Without a metric, the differential identifies all stationary points in
\(\mathcal V\) and, at every nonstationary point \(v\), all descent
directions in \(T_v\mathcal V\), namely the set
\(\mathcal D_v^-\). It cannot, however, identify which descent direction
is steepest, because unit length, angle, orthogonality, and normal
direction are undefined until a metric is chosen.

\begin{definition}[Metric, musical maps, and gradient]
A Riemannian metric assigns an inner product
\[
g_v:\T_v\cV\times\T_v\cV\to\R.
\]
It induces
\[
\flat_{g,v}:\T_v\cV\to\T_v^*\cV,
\qquad
\xi\mapsto g_v(\xi,\bbullet),
\]
and its inverse \(\sharp_{g,v}\). The metric gradient is
\[
\grad_gJ(v)=\sharp_{g,v}(\dd J_v),
\]
equivalently 
\[
\boxed{g_v(\grad_gJ(v),\xi)=\dd J_v(\xi)
\qquad\forall\xi\in\T_v\cV.}
\]
\end{definition}

In words, the gradient of \(J\) at a nonstationary point \(v\) is the tangent vector
associated with the differential at \(v\) by the sharp map of the
metric \(g_v\). It is the unique tangent vector such that, for every other
tangent vector \(\xi\), its \(g_v\)-inner product with \(\xi\) equals
the dual pairing of the differential of \(J\) with the same vector
\(\xi\). Different inner products generally associate different gradients with the same differential. Thus, the differential is unique, whereas there are infinitely many possible gradients, one for each choice of Riemannian metric.


\begin{proposition}[Negative gradient is a descent direction]
If \(\dd J_v\neq0\), then
\[
\dd J_v\bigl(-\grad_g J(v)\bigr)
=
-\norm{\grad_g J(v)}_g^2
<0.
\]
In other words, for every Riemannian metric \(g\), the negative of the
induced gradient is a strict descent direction:
\[
-\grad_g J(v)\in\mathcal D_v^-.
\]
\end{proposition}
\begin{proof}
Substitute \(\xi=-\grad_gJ(v)\) into the defining identity. Since \(\sharp_{g,v}\) is an isomorphism, a nonzero differential yields a nonzero gradient; positive definiteness gives strict negativity.
\end{proof}

\begin{proposition}[The gradient spans the metric normal to the level hyperplane]
If \(\dd J_v\neq0\), then
\begin{equation}
\ker\dd J_v=\operatorname{Span}\{\grad_gJ(v)\}^{\perp_g}.
\label{eq:ker-differential-perpendicular}
\end{equation}
\end{proposition}
\begin{proof}
A vector \(\xi\) belongs to the kernel exactly when
\(0=\dd J_v(\xi)=g_v(\grad_gJ(v),\xi)\).
\end{proof}

\begin{remark}[The level hyperplane precedes the metric normal]
It is important to interpret Eq.~\eqref{eq:ker-differential-perpendicular}
in the correct direction. The linear hyperplane
\(
\ker\dd J_v\subset T_v\mathcal V,
\)
which contains the tangent directions along which the cost \(J\) remains
constant to first order, is determined by the differential alone. It
therefore exists independently of any metric and independently of any
gradient.\\
The right-hand side of
Eq.~\eqref{eq:ker-differential-perpendicular} should consequently not be
understood as defining this hyperplane. Rather, once a metric \(g\) is
chosen, the metric associates \(\dd J_v\) with a specific gradient
vector \(\grad_g J(v)\). The one-dimensional subspace generated by this
gradient is then the \(g\)-orthogonal complement of the already existing
hyperplane \(\ker\dd J_v\).\\
Thus, changing the metric does not change the level hyperplane. It
changes the tangent-space direction that is declared perpendicular to that
hyperplane and the specific gradient vector selected along that
direction.
\end{remark} 

\begin{keyidea}
\begin{itemize}[leftmargin=*]
\item The hyperplane \(\ker\dd J_v\subset\T_v\cV\) is determined by the cost alone.
\item The metric defines \(\sharp_{g,v}\) and identifies \(\dd J_v\) with \(\grad_gJ(v)\).
\item If \(\dd J_v\neq0\), the one-dimensional subspace generated by the gradient is the \(g\)-orthogonal complement of the kernel of \(\dd J_v\).
\item Changing the metric does not move the kernel or alter \(\mathcal D_v^-\) and \(\mathcal D_v^+\).
\item Changing the metric generally changes both the gradient direction and its metric-dependent norm.
\item Every nonzero metric gradient lies in the same intrinsic ascent half-space \(\mathcal D_v^+\)
\end{itemize}
\end{keyidea}

\begin{proposition}[Stationarity is metric-independent]
For every Riemannian metric \(g\),
\[
\dd J_v=0\quad\Longleftrightarrow\quad\grad_gJ(v)=0.
\]
\end{proposition}
\begin{proof}
The sharp map is a linear isomorphism, so \(\sharp_{g,v}(\dd J_v)=0\) if and only if \(\dd J_v=0\).
\end{proof}
The stationary set is invariant, while gradient fields, flows, conditioning, convergence rates, and basins of attraction can depend on the metric.

\section{Variational meanings of the gradient}
\begin{proposition}[Steepest first-order ascent and descent]
If \(\dd J_v\neq0\), then
\[
\arg\max_{\substack{\xi\in\T_v\cV\\\norm{\xi}_g=1}}\dd J_v(\xi)
=
\frac{\grad_gJ(v)}{\norm{\grad_gJ(v)}_g},
\]
and the minimizer is its negative.
\end{proposition}
\begin{proof}
By Cauchy--Schwarz,
\[
\dd J_v(\xi)=g_v(\grad_gJ(v),\xi)
\leq\norm{\grad_gJ(v)}_g\norm{\xi}_g.
\]
For unit \(\xi\), equality holds uniquely in the positive gradient direction; applying the same argument to \(-\dd J_v\) gives steepest descent.
\end{proof}

\begin{proposition}[Gradient step as a regularized local minimizer]
\label{prop:grad-as-reg-loc-minimizer}
For \(\eta>0\),
\[
\arg\min_{\xi\in\T_v\cV}
\left[\dd J_v(\xi)+\frac1{2\eta}\norm{\xi}_g^2\right]
=-\eta\grad_gJ(v).
\]
\end{proposition}
\begin{proof}
The directional derivative at \(\xi\) in direction \(\zeta\) is
\[
\dd J_v(\zeta)+\frac1\eta g_v(\xi,\zeta)
=g_v\left(\grad_gJ(v)+\frac1\eta\xi,\zeta\right).
\]
It vanishes for every \(\zeta\) precisely at \(\xi=-\eta\grad_gJ(v)\). Positive definiteness gives strict convexity and uniqueness.
\end{proof}

\begin{geombox}
The unit-sphere problem selects only a direction in \(\T_v\cV\) . The regularized model selects a complete tangent displacement by balancing the predicted first-order change \(\dd J_v(\xi)\) against the metric-dependent displacement cost \(\tfrac1{2\eta}\norm{\xi}_g^2\). Thus the metric defines both what is steepest and how local displacements are priced.
\end{geombox}

\begin{figure}[htbp]
\centering
\begin{tikzpicture}[>=Latex,scale=.95]
\fill[green!8] (-4,-.5)--(4,2.2)--(4,3.2)--(-4,3.2)--cycle;
\fill[red!7] (-4,-.5)--(4,2.2)--(4,-3.2)--(-4,-3.2)--cycle;
\draw[orange,line width=1.5pt] (-4,-.5)--(4,2.2) node[right] {$\ker\dd J_v$};
\coordinate (O) at (0,.85);\fill[ink] (O) circle (2pt);
\draw[blue,line width=1.1pt] (O) ellipse (1.2 and .72);
\draw[purple,line width=1.1pt,rotate around={28:(O)}] (O) ellipse (1.55 and .55);
\draw[->,blue,line width=1.6pt] (O)--++(-.55,1.55) node[above left] {$\grad_{g_1}J$};
\draw[->,purple,line width=1.6pt] (O)--++(.35,1.7) node[above right] {$\grad_{g_2}J$};
\draw[->,blue!70!black,dashed,thick] (O)--++(.55,-1.55);
\draw[->,purple!70!black,dashed,thick] (O)--++(-.35,-1.7);
\node[green!45!black,font=\small] at (-3.0,2.0) {same ascent half-space};
\node[font=\scriptsize,align=center] at (2.6,-2.35) {different unit curves select\\different steepest directions};
\end{tikzpicture}
\caption{The level hyperplane and its ascent/descent sides are fixed by the differential. Different metrics define different unit curves and therefore different gradient directions, while every nonzero gradient remains on the ascent side.}
\end{figure}




\section{Coordinates: what is actually differentiated?}



To perform numerical computations, the abstract objects \(J\),
\(\dd J_v\), \(g_v\), and \(\grad_g J(v)\) must be represented in
coordinates. Coordinates do not redefine these objects; they express
them through numerical arrays suitable for storage and computation.
Infinitely many coordinate systems may be chosen, producing different
arrays and formulas that nevertheless represent the same intrinsic
objects. Therefore, any geometric conclusion obtained in a particular
coordinate system must be independent of that choice, provided that all
vectors, covectors, metrics, and maps are transformed consistently.



Choose a chart
\[
\varphi:U\subset\cV\to\varphi(U)\subset\R^n,
\qquad
\varphi(q)=(x^1(q),\ldots,x^n(q)).
\]
It induces the tangent basis
\[
\left\{\left.\frac{\partial}{\partial x^1}\right|_v,\ldots,
\left.\frac{\partial}{\partial x^n}\right|_v\right\}
\subset \T_v\cV
\]
and dual basis \(\{\dd x^1|_v,\ldots,\dd x^n|_v\}\subset \T_v^*\cV\), with
\[
\dd x^i|_v\left(\left.\frac{\partial}{\partial x^j}\right|_v\right)=\delta^i_j.
\]

The abstract cost \(J\) is represented by
\[
J_\varphi=J\circ\varphi^{-1}:\varphi(U)\to\R.
\]
Let \(u^1,\ldots,u^n\) be the standard numerical coordinates on \(\varphi(U)\). Then
\[
\boxed{
\dd J_v=
\sum_{i=1}^n
\left.\frac{\partial(J\circ\varphi^{-1})}{\partial u^i}\right|_{u=\varphi(v)}
\dd x^i|_v.}
\]
Moreover,
\[
\dd J_v\left(
\left.\frac{\partial}{\partial x^i}\right|_v
\right)
=
\left.
\frac{\partial(J\circ\varphi^{-1})}{\partial u^i}
\right|_{u=\varphi(v)}
=
\left.
\frac{\partial J_\varphi}{\partial u^i}
\right|_{u=\varphi(v)}.
\]
These three expressions denote the same scalar: the \(i\)-th coordinate
component of the covector \(\dd J_v\) with respect to the dual basis chosen above. This scalar is conventionally
abbreviated as
\[
\frac{\partial J}{\partial x^i}(v).
\]

\begin{warningbox}[title={What is actually being differentiated?}]
The notation \(\partial J/\partial x^i\) does not mean that the abstract cost \(J\) intrinsically comes with numerical variables. Ordinary differentiation rules are applied to \(J\circ\varphi^{-1}\). The resulting numbers are the components of the intrinsic covector \(\dd J_v\) in the basis \(\{\dd x^i|_v\}\). Both components and basis change under a new chart, while the covector does not.
\end{warningbox}

Store the components as
\[
d_v:=
\begin{bmatrix}
\partial J/\partial x^1(v)\\ \vdots\\ \partial J/\partial x^n(v)
\end{bmatrix}.
\]
This is a column of covector components. Column orientation is a storage convention; it does not change tensor type.

\section{Coordinate gradients and tensorial covariance}


Let
\[
G_v=[g_{ij}(v)],
\qquad
g_{ij}(v)
=
g_v\left(
\left.\frac{\partial}{\partial x^i}\right|_v,
\left.\frac{\partial}{\partial x^j}\right|_v
\right).
\]
Write
\[
\grad_g J(v)
=
\sum_{i=1}^n
\zeta^i
\left.\frac{\partial}{\partial x^i}\right|_v,
\qquad
[\grad_g J]_v
=
\begin{bmatrix}
\zeta^1\\
\vdots\\
\zeta^n
\end{bmatrix}.
\]
For an arbitrary tangent vector $\xi$
\[
\xi
=
\sum_{j=1}^n
\xi^j
\left.\frac{\partial}{\partial x^j}\right|_v,
\qquad
[\xi]_v
=
\begin{bmatrix}
\xi^1\\
\vdots\\
\xi^n
\end{bmatrix},
\]
the gradient defining identity
\[
g_v\bigl(\grad_g J(v),\xi\bigr)
=
\dd J_v(\xi)
\]
becomes
\[
[\grad_g J]_v^\top G_v[\xi]_v
=
d_v^\top[\xi]_v.
\]
Since this identity holds for every component vector \([\xi]_v\), and
since \(G_v\) is symmetric, it follows that
\[
G_v[\grad_g J]_v=d_v.
\]
Therefore,
\[
\boxed{
[\grad_g J]_v=G_v^{-1}d_v.
}
\]


\begin{coordinatebox}
The arrays \(d_v\) and \([\grad_gJ]_v\) represent geometrically
different objects:

\begin{itemize}[leftmargin=*]
    \item \(d_v\) contains the components of the covector
    \(\dd J_v\) in the coordinate cotangent basis
    \(\{\dd x^i|_v\}\);

    \item \([\grad_gJ]_v\) contains the components of the tangent vector
    \(\grad_gJ(v)\) in the coordinate tangent basis
    \(\{\partial/\partial x^i|_v\}\);

    \item \(G_v^{-1}\) represents the sharp map that converts the
    covector components into the corresponding vector components:
    \[
    [\grad_gJ]_v=G_v^{-1}d_v.
    \]
\end{itemize}

The components of a covector are conventionally called
\emph{covariant components}, whereas the components of a tangent vector
are called \emph{contravariant components}. These names refer to their
different transformation laws under a change of coordinates.
\end{coordinatebox}
Let \(y=\psi(x)\) be another coordinate system and set
\[
K=\frac{\partial y}{\partial x}.
\]
Then
\[
[\xi]_y=K[\xi]_x,
\qquad
[\dd J]_y=K^{-\top}[\dd J]_x,
\]
so the pairing is invariant:
\[
[\dd J]_y^\top[\xi]_y
=
[\dd J]_x^\top K^{-1}K[\xi]_x
=
[\dd J]_x^\top[\xi]_x.
\]
The metric and inverse metric transform as
\[
G_y=K^{-\top}G_xK^{-1},
\qquad
G_y^{-1}=KG_x^{-1}K^\top,
\]
and therefore
\[
[\grad_gJ]_y=G_y^{-1}[\dd J]_y
=K[\grad_gJ]_x.
\]
The gradient consequently transforms as a vector.

\begin{example}[Euclidean geometry in polar coordinates]
For \(J(x,y)=\tfrac12(x^2+y^2)\), Cartesian coordinates give \(G_{xy}=I\) and \([\dd J]_{xy}=(x,y)^\top\). In polar coordinates,
\[
J(r,\theta)=\tfrac12r^2,
\qquad
[\dd J]_{r\theta}=\begin{bmatrix}r\\0\end{bmatrix},
\qquad
G_{r\theta}=\begin{bmatrix}1&0\\0&r^2\end{bmatrix}.
\]
Thus \([\grad J]_{r\theta}=(r,0)^\top\), representing \(r\,\partial/\partial r\), the same radial vector as in Cartesian coordinates.
\end{example}

\begin{warningbox}[title={The identity matrix is not coordinate-invariant}]
Setting the metric matrix to \(I\) again after a nonlinear coordinate change generally chooses a different metric. In polar coordinates the Euclidean metric is \(\diag(1,r^2)\), not \(I\).
\end{warningbox}


\section{Changing the metric and preconditioning}

We have seen that the differential \(\dd J_v\) is fixed by the cost,
whereas the gradient depends on the metric used to convert this
covector into a tangent vector. We now make explicit how the gradient
changes when the metric changes, first intrinsically and then in
coordinates.

\subsection{Intrinsic comparison of two metrics}

Let \(g\) and \(h\) be two Riemannian metrics on \(\mathcal V\).
At each \(v\in\mathcal V\), define the linear map
\[
A_v:T_v\mathcal V\to T_v\mathcal V
\]
by
\[
A_v
=
\sharp_{g,v}\circ\flat_{h,v}.
\]
Equivalently, \(A_v\) is the unique map satisfying
\[
h_v(\xi,\zeta)
=
g_v\bigl(A_v(\xi),\zeta\bigr)
\qquad
\forall \xi,\zeta\in T_v\mathcal V.
\]

The map \(A_v\) expresses the metric \(h_v\) in terms of the metric
\(g_v\). Such a map exists and is unique for every pair of inner
products because the flat map of \(h_v\) sends a tangent vector to a
covector, while the sharp map of \(g_v\) sends that covector back to a
tangent vector:
\[
T_v\mathcal V
\xrightarrow{\ \flat_{h,v}\ }
T_v^*\mathcal V
\xrightarrow{\ \sharp_{g,v}\ }
T_v\mathcal V.
\]

The metric-change operator \(A_v\) is self-adjoint and positive with
respect to \(g_v\):
\[
g_v\bigl(A_v(\xi),\zeta\bigr)
=
g_v\bigl(\xi,A_v(\zeta)\bigr),
\]
and
\[
g_v\bigl(A_v(\xi),\xi\bigr)>0
\qquad
\text{for every }\xi\neq0.
\]
These properties follow directly from the symmetry and positive
definiteness of \(h_v\).

\begin{proposition}[How the gradient changes with the metric]
The gradients of \(J\) associated with \(g\) and \(h\) satisfy
\[
\boxed{
\grad_hJ(v)
=
A_v^{-1}\bigl(\grad_gJ(v)\bigr).
}
\]
\end{proposition}

\begin{proof}
For every \(\zeta\in T_v\mathcal V\),
\(
g_v\bigl(\grad_gJ(v),\zeta\bigr)
=
\dd J_v(\zeta)=
h_v\bigl(\grad_hJ(v),\zeta\bigr)=
g_v\bigl(A_v(\grad_hJ(v)),\zeta\bigr).
\)
Since this identity holds for every \(\zeta\), the nondegeneracy of
\(g_v\) gives
\(
\grad_gJ(v)
=
A_v\bigl(\grad_hJ(v)\bigr).
\)
Because \(A_v\) is invertible,
\(
\grad_hJ(v)
=
A_v^{-1}\bigl(\grad_gJ(v)\bigr).
\)
\end{proof}

\begin{geombox}
Changing the metric does not modify the differential \(\dd J_v\).
It modifies the sharp map used to convert that fixed covector into a
tangent vector. The metric-change operator \(A_v\) describes the
relation between the two resulting gradients.
\end{geombox}


\subsection{Coordinate viewpoint: preconditioning the differential}

We now temporarily reason entirely in coordinates. Let \(d_v\) be the
component column representing the covector \(\dd J_v\). Choose a
symmetric positive-definite matrix
\[
P_v=P_v^\top\succ0
\]
and define the component column
\[
[\xi]_v=-P_vd_v.
\]

At this point, the multiplication must be given a geometric
interpretation. Since \(d_v\) contains covector components, we interpret
\(P_v\) as the coordinate matrix of a map from covectors to vectors.
Equivalently, \(P_v\) represents an inverse metric \(g_v^{-1}\) with coordinate representation \(G_v^{-1}\):
\[
P_v=G_v^{-1},
\qquad
G_v=P_v^{-1}.
\]
The resulting column therefore represents the tangent vector
\[
\xi=-\grad_gJ(v).
\]

The intrinsic descent test is obtained by evaluating the original
differential on this vector:
\[
\dd J_v(\xi)
=
d_v^\top[\xi]_v
=
-d_v^\top P_vd_v.
\]
Because \(P_v\) is positive definite,
\[
\dd J_v(\xi)<0
\qquad
\text{whenever }d_v\neq0.
\]
Thus the vector represented by \(-P_vd_v\) always belongs to the
intrinsic descent half-space:
\[
\xi\in\mathcal D_v^-.
\]



\begin{definition}[Preconditioning]
In first-order optimization, \emph{preconditioning} consists of
multiplying the component column of the differential by a chosen
positive-definite matrix:
\[
[\xi]_v=-P_vd_v.
\]
When \(P_v\) is interpreted as an inverse metric matrix, the
preconditioned direction is precisely the negative gradient associated
with the metric represented by
\[
G_v=P_v^{-1}.
\]
\end{definition}

\begin{keyidea}
Preconditioning does not modify the intrinsic differential
\(\dd J_v\). It changes the covector-to-vector identification used to
produce a descent direction from that differential. In geometric
terms, choosing a preconditioner is choosing a metric.
\end{keyidea}


\begin{warningbox}[title={Why inverse-metric maps cannot be stacked blindly}]
Suppose
\[
[\xi_1]_v=-P_1d_v,
\]
where \(P_1\) is interpreted as an inverse metric. The input \(d_v\)
contains covector components, while the output \([\xi_1]_v\) contains
vector components.

Applying a second inverse metric \(P_2\) directly to
\([\xi_1]_v\) is therefore not type-correct: an inverse metric maps
covectors to vectors, not vectors to vectors. If \(P_2\) is instead
reinterpreted as a tangent-space endomorphism, the multiplication is
type-correct and generates the coordinates of another tangent vector \(\xi_2\), namely \([\xi_2]_v= -P_2P_1d_v\), but it is no longer another metric identification and
need not preserve descent. Indeed,
\[
\dd J_v(\xi_2)
=
-d_v^\top P_2P_1d_v
\]
need not be negative because the product of two symmetric
positive-definite matrices is not generally symmetric positive
definite.

A new metric should act directly on the original differential:
\[
[\xi_{\mathrm{new}}]_v
=
-P_{\mathrm{new}}d_v,
\]
not on a vector produced by a previous metric identification.
\end{warningbox}



\subsection{Newton's method as Hessian-based preconditioning}

The preceding discussion shows that any symmetric positive-definite
matrix \(P_v\) may be interpreted as an inverse metric and used to
convert the covector components \(d_v\) into the components of a
descent vector:
\[
[\xi]_v=-P_vd_v.
\]
The resulting direction depends on how \(P_v\), or equivalently the
metric matrix \(G_v=P_v^{-1}\), is chosen.

Newton's method makes a particular, cost-dependent choice. In Euclidean
coordinates, let
\[
H_v:=\nabla^2J(v)
\]
denote the Hessian matrix of the coordinate representation of the cost.
When
\[
H_v=H_v^\top\succ0,
\]
Newton chooses
\[
P_v=H_v^{-1}.
\]
The Newton direction is therefore
\[
\boxed{
[\xi_{\mathrm N}]_v
=
-H_v^{-1}d_v.
}
\]
In Euclidean coordinates, where the component column \(d_v\) is
numerically identical to the usual Euclidean-gradient column, this is
the familiar Newton equation
\[
H_v[\xi_{\mathrm N}]_v=-d_v,
\]
or, in conventional notation,
\[
\nabla^2J(v)\,\xi_{\mathrm N}
=
-\nabla J(v).
\]

The positive-definite Hessian matrix can also be interpreted as the
matrix of a local inner product:
\[
g_v^{\mathrm N}(\xi,\zeta)
=
[\xi]_v^\top H_v[\zeta]_v.
\]
Its inverse metric is represented by \(H_v^{-1}\). Consequently,
\[
[\grad_{g^{\mathrm N}}J]_v
=
H_v^{-1}d_v,
\]
and the Newton direction is precisely the negative gradient associated
with this Hessian-based metric:
\[
\boxed{
\xi_{\mathrm N}
=
-\grad_{g^{\mathrm N}}J(v).
}
\]


\begin{keyidea}[title={The geometric interpretation of Newton's method}]
Newton's method uses the Hessian to select the preconditioner
\[
P_v=H_v^{-1}.
\]
Equivalently, it uses the Hessian to select a local metric and then
converts the differential into a gradient through the sharp map of
that metric.

Newton's method is a second-order method because constructing this
metric requires second derivatives of the cost. Its direction is
nevertheless a gradient direction in the
Hessian-based geometry:
\[
\boxed{
\text{Newton uses second-order information to choose the geometry
in which it takes a gradient step.}
}
\]

This viewpoint also qualifies the usual comparison between
``gradient descent'' and ``Newton's method.'' There is no metric-free
or uniquely natural gradient descent: every gradient is obtained by
using a chosen metric to convert the differential into a tangent
vector. What is conventionally called gradient descent usually means
gradient descent under the metric represented by the identity matrix
in the selected coordinates. When the Hessian is positive definite,
Newton's method instead uses the Hessian as a local metric. In this
sense, both methods are metric-gradient methods; their essential
difference is the geometry used to select the descent direction and
the information required to construct that geometry.
\end{keyidea}

\subsubsection{Why the Hessian metric can improve convergence}

In accordance with
Proposition~\ref{prop:grad-as-reg-loc-minimizer}, the gradient step
associated with a generic metric represented by \(G_v\) minimizes the
regularized first-order model
\[
[\xi]_v
\longmapsto
d_v^\top[\xi]_v
+
\frac{1}{2\eta}
[\xi]_v^\top G_v[\xi]_v.
\]
If we choose
\[
\eta=1,
\qquad
G_v=H_v,
\]
this model becomes
\[
[\xi]_v
\longmapsto
d_v^\top[\xi]_v
+
\frac12
[\xi]_v^\top H_v[\xi]_v.
\]
Apart from the constant term \(J(v)\), this is exactly the local
second-order quadratic model of the cost. Its unique minimizer is
\[
[\xi_{\mathrm N}]_v
=
-H_v^{-1}d_v.
\]

This comparison reveals the essential difference between choosing the
metric represented by the identity matrix in the selected coordinates
and choosing the Hessian metric. With the identity-matrix choice, the
regularization term is a multiple of
\[
[\xi]_v^\top[\xi]_v.
\]
All coordinate directions are therefore treated as equally expensive,
regardless of how rapidly the cost bends along them.

With the Hessian-metric choice, the displacement cost becomes
\[
[\xi]_v^\top H_v[\xi]_v.
\]
Coordinate directions of large positive curvature are penalized more strongly,
whereas coordinate directions of small positive curvature are penalized less.
The resulting gradient direction compensates for the local anisotropy
of the cost. This curvature-dependent rescaling can reduce the slow
zigzagging behavior produced by the identity-metric gradient direction
near strongly elongated level sets.

\begin{keyidea}[title={What is actually being compared?}]
The comparison is not between a uniquely defined ``gradient descent''
method and a fundamentally different Newton method. Every gradient
direction depends on a chosen metric.

The usual coordinate formula
\[
-d_v
\]
implicitly uses the metric represented by the identity matrix in the
selected coordinates. The Newton direction
\[
-H_v^{-1}d_v
\]
uses instead the metric represented by the positive-definite Hessian
\(H_v\). Both directions are obtained by converting the same
differential into a tangent vector; they differ in the geometry used
for that conversion. Newton's method remains second order because the
Hessian metric is constructed from second derivatives.
\end{keyidea}

\begin{example}[Exact positive-definite quadratic]
Consider the coordinate domain \(\mathbb R^n\) and the quadratic cost
\[
J(z)
=
\frac12 z^\top Qz,
\qquad
Q=Q^\top\succ0.
\]
The differential is represented by
\[
d_z=Qz,
\]
and the Hessian is the constant matrix
\[
H_z=Q.
\]

If the selected metric is represented by the identity matrix, the
negative gradient direction has components
\[
-[\grad_I J]_z
=
-d_z
=
-Qz.
\]
If \(Q\) is ill-conditioned, the level sets of \(J\) are strongly
elongated ellipsoids. Gradient iterations based on this metric may
oscillate between the steep sides of the ellipsoids and require a
small step size for stability.

If the selected metric is instead represented by the Hessian,
\[
G=Q,
\]
then
\[
[\grad_QJ]_z
=
Q^{-1}d_z
=
Q^{-1}Qz
=
z.
\]
The corresponding negative gradient is
\[
-[\grad_QJ]_z=-z,
\]
which is precisely the Newton direction. Since this example is posed
on the vector space \(\mathbb R^n\), a unit coordinate step gives
\[
z_+
=
z-z
=
0.
\]
Thus the minimizer is reached in one iteration.

Geometrically, the Hessian metric compensates exactly for the unequal
curvatures of this quadratic. The strongly elongated level sets seen
under the identity-metric representation become isotropic with respect
to the Hessian metric used to select the step.
\end{example}

\begin{warningbox}[title={When the Hessian cannot be used as a metric}]
The Hessian-based interpretation requires
\[
H_v\succ0.
\]
If \(H_v\) is indefinite, it does not define an inner product and
therefore cannot represent a Riemannian metric. In that case,
\[
-d_v^\top H_v^{-1}d_v
\]
need not be negative, so the unmodified Newton direction need not be a
descent direction.

Damped Newton methods, positive-definite Hessian modifications,
trust-region methods, and quasi-Newton methods address this difficulty
by controlling or replacing the local curvature model.

A further geometric qualification is necessary. The matrix of ordinary
second coordinate derivatives is not, by itself, invariant under a
nonlinear change of coordinates. On a manifold, an intrinsic Hessian
requires additional geometric structure, typically a connection. The
coordinate discussion above therefore applies directly to a chosen
local coordinate model. An intrinsic manifold formulation uses a
Riemannian or covariant Hessian, and the Hessian-metric interpretation
applies where the resulting symmetric bilinear form is positive
definite.
\end{warningbox}


\section{Equality constraints as regular fibers}
Let \(\cV\) and \(\cW\) be two smooth manifolds called the total space  and the  base space (or task space), respectively. Let
\[
f:\cV\to\cW
\]
be smooth, let \(w\in\cW\) be a regular value, and define the fiber
\[
\Fw=f^{-1}(w).
\]

\begin{theorem}[Regular fiber]
The set \(\Fw\) is an embedded submanifold and, for every \(v\in\Fw\),
\[
\boxed{\T_v\Fw=\ker\dd f_v.}
\]
\end{theorem}
\begin{proofsketch}
A curve in the fiber satisfies \(f(\gamma(t))=w\), so differentiation gives \(\dd f_v(\dot\gamma(0))=0\), proving inclusion in the kernel. Regularity and the regular-level-set theorem give equality.
\end{proofsketch}

\begin{geombox}
The nonlinear equality \(f(v)=w\) becomes the linear first-order condition \(\dd f_v(\xi)=0\). The kernel of \(\dd J_v\) contains directions that do not change the cost to first order; the kernel of \(\dd f_v\) contains directions that do not change the task value to first order.
\end{geombox}

\section{Constrained stationarity through the inclusion map}
Let
\[
\iota_w:\Fw\hookrightarrow\cV
\]
be the inclusion. Then
\[
J|_{\Fw}=J\circ\iota_w
\]
and the chain rule gives
\[
\dd(J|_{\Fw})_v=(\dd\iota_{w,v})^*(\dd J_v).
\]
Hence
\[
\boxed{
\begin{aligned}
v\text{ stationary for }J|_{\Fw}
&\Longleftrightarrow \dd(J|_{\Fw})_v=0\\
&\Longleftrightarrow (\dd\iota_{w,v})^*(\dd J_v)=0\\
&\Longleftrightarrow \dd J_v(\xi)=0\quad\forall\xi\in\T_v\Fw\\
&\Longleftrightarrow \dd J_v\in(\T_v\Fw)^\circ.
\end{aligned}}
\]
Thus unconstrained stationarity requires \(\dd J_v\) to vanish on all of \(\T_v\cV\), whereas constrained stationarity requires it to vanish only on feasible tangent directions.

\section{Annihilators, dual maps, and multipliers}
For a finite-dimensional linear map \(L:E\to F\), define
\[
L^*:F^*\to E^*,
\qquad
L^*(\mu)=\mu\circ L.
\]

\begin{lemma}[Annihilator identity]
\[
\boxed{\im L^*=(\ker L)^\circ.}
\]
\end{lemma}
\begin{proof}
If \(\alpha=L^*\mu\) and \(e\in\ker L\), then \(\alpha(e)=\mu(Le)=0\), so \(\im L^*\subseteq(\ker L)^\circ\). In finite dimensions,
\(
\dim\im L^*=\rank L^*=\rank L,
\)
while
\(
\dim(\ker L)^\circ=\dim E-\dim\ker L=\rank L.
\)
The inclusion between equal-dimensional subspaces is equality.
\end{proof}

Applying the lemma to \(L=\dd f_v\) gives
\[
(\T_v\Fw)^\circ=(\ker\dd f_v)^\circ=\im(\dd f_v)^*.
\]

\begin{theorem}[Intrinsic Lagrange multiplier theorem]
A point \(v\in\Fw\) is stationary for \(J|_{\Fw}\) if and only if there exists a unique covector
\[
\mu\in\T_w^*\cW
\]
such that
\[
\boxed{\dd J_v=(\dd f_v)^*\mu.}
\]
\end{theorem}
\begin{proof}
Constrained stationarity is equivalent to \(\dd J_v\in(\T_v\Fw)^\circ\), and the annihilator identity identifies this space with \(\im(\dd f_v)^*\). Regularity makes \(\dd f_v\) surjective, hence \((\dd f_v)^*\) injective, so \(\mu\) is unique.
\end{proof}

\begin{keyidea}
The multiplier equation is not initially a linear dependence among gradient vectors. The multiplier \(\mu\) is a covector on the task-value space. Its pullback is the cost covector in the total-space cotangent space.
\end{keyidea}


\subsection{Conormal bundle in the cotangent bundle}

The conormal bundle of the embedded fiber
\(\mathcal F_w\subset\mathcal V\) is a smooth vector subbundle of the
ambient cotangent bundle restricted to \(\mathcal F_w\):
\[
N^*\mathcal F_w
\subset
T^*\mathcal V|_{\mathcal F_w}
\subset
T^*\mathcal V.
\]
It is defined by
\[
N^*\mathcal F_w
=
\bigsqcup_{v\in\mathcal F_w}
N_v^*\mathcal F_w,
\qquad
N_v^*\mathcal F_w
:=
(T_v\mathcal F_w)^\circ.
\]

Equivalently,
\[
N^*\mathcal F_w
=
\left\{
(v,\alpha)\in T^*\mathcal V:
v\in\mathcal F_w,\;
\alpha(\xi)=0
\ \text{for every }\xi\in T_v\mathcal F_w
\right\}.
\]

For every \(v\in\mathcal F_w\), the differential
\(\dd J_v\in T_v^*\mathcal V\) determines a point
\[
(v,\dd J_v)\in T^*\mathcal V.
\]
This point belongs to the conormal bundle precisely when
\(\dd J_v\) vanishes on every feasible tangent direction:
\[
\boxed{
(v,\dd J_v)\in N^*\mathcal F_w
\quad\Longleftrightarrow\quad
\dd J_v(\xi)=0
\quad
\forall\xi\in T_v\mathcal F_w.
}
\]

Consequently, the constrained stationary points are exactly those
points \(v\in\mathcal F_w\) at which the cost differential belongs to
the corresponding conormal fiber \(N_v^*\mathcal F_w\). Depending on
the cost and the constraint fiber, there may be no such points, a
single point, or several points.

The tangent bundle of \(\mathcal F_w\) collects the feasible
infinitesimal motions, whereas the conormal bundle collects the
covectors that vanish on those motions. Constrained stationarity occurs
when the differential of the cost is one of these conormal covectors.





\section{Lagrangian multipliers and bridge with the intrinsic formulation}

Suppose first that \(\mathcal W\) is a vector space, and let
\(\lambda\in\mathcal W^*\) be a task-space covector. The conventional
plus-sign Lagrangian is
\[
\boxed{
\Lag(v,\lambda;w)
=
J(v)+\pair{\lambda}{f(v)-w}.
}
\]
On a general manifold \(\mathcal W\), the subtraction \(f(v)-w\) is not
intrinsically defined; the same expression must be understood through a
local chart or a vector-valued constraint residual. Differentiating with respect to \(v\) yields
\[
\dd_v\Lag=\dd J_v+(\dd f_v)^*\lambda.
\]
Thus stationarity gives
\[
\boxed{\dd J_v+(\dd f_v)^*\lambda=0.}
\]
Define once and for all
\[
\boxed{\mu:=-\lambda.}
\]
Then the conventional Lagrangian equation is exactly the geometric pullback equation \(\dd J_v=(\dd f_v)^*\mu\).

\section{Coordinates of the task differential and multiplier}
Choose charts
\[
\varphi:U\subset\cV\to\R^n,
\qquad
\psi:Z\subset\cW\to\R^m,
\]
and define the coordinate representative
\[
f_{\psi\varphi}=\psi\circ f\circ\varphi^{-1}.
\]
The matrix representing \(\dd f_v\) is
\[
F_v=D(\psi\circ f\circ\varphi^{-1})(\varphi(v)).
\]
Hence
\[
[\dd f_v(\xi)]_\psi=F_v[\xi]_\varphi.
\]
For \(\mu\in\T_w^*\cW\),
\begin{align*}
((\dd f_v)^*\mu)(\xi)
&=\mu(\dd f_v(\xi))\\
&=[\mu]_\psi^\top F_v[\xi]_\varphi\\
&=(F_v^\top[\mu]_\psi)^\top[\xi]_\varphi.
\end{align*}
Therefore
\[
\boxed{[(\dd f_v)^*\mu]_\varphi=F_v^\top[\mu]_\psi.}
\]
The intrinsic equations become
\[
\boxed{ 
d_v=F_v^\top[\mu]_\psi
}
\qquad\text{and}\qquad
\boxed{
d_v+F_v^\top[\lambda]_\psi=0.
}
\]
Under Euclidean musical identifications,
\[
\boxed{\nabla J(v)+F_v^\top\lambda=0.}
\]

\begin{coordinatebox}
The transpose is forced by duality. The differential pushes tangent vectors forward through \(F_v\); the dual map pulls covectors backward through \(F_v^\top\). It is not an accidental algebraic operation.
\end{coordinatebox}

\begin{center}
\begin{tikzpicture}[node distance=20mm and 30mm,>=Latex,
box/.style={draw,rounded corners=2mm,minimum width=29mm,minimum height=10mm,align=center,font=\sffamily\small}]
\node[box,fill=softblue,draw=blue] (TvV) {$\T_v\cV$};
\node[box,fill=softgreen,draw=green,right=of TvV] (TwW) {$\T_w\cW$};
\node[box,fill=softorange,draw=orange,below=of TvV] (TvsV) {$\T_v^*\cV$};
\node[box,fill=softred,draw=red,right=of TvsV] (TwsW) {$\T_w^*\cW$};
\draw[->,thick] (TvV)--node[above] {$\dd f_v$}(TwW);
\draw[->,thick] (TwsW)--node[below] {$(\dd f_v)^*$}(TvsV);
\node[purple,above=2mm of TwsW] {$\mu$};
\node[purple,above=2mm of TvsV] {$(\dd f_v)^*\mu=\dd J_v$};
\end{tikzpicture}
\end{center}

\section{Conormal covectors and metric normals}
Define the metric normal space
\[
N_v^g\Fw=(\T_v\Fw)^{\perp_g}.
\]

\begin{proposition}[Sharp maps conormals to metric normals]
\[
\boxed{\sharp_{g,v}\bigl((\T_v\Fw)^\circ\bigr)=N_v^g\Fw.}
\]
\end{proposition}
\begin{proof}
If \(\alpha\) annihilates \(\T_v\Fw\) and \(u=\sharp_{g,v}\alpha\), then for every \(\xi\in\T_v\Fw\),
\[
g_v(u,\xi)=\alpha(\xi)=0,
\]
so \(u\) is normal. Conversely, the flat image of every metric-normal vector annihilates the tangent space.
\end{proof}
Thus
\[
\grad_gJ(v)=\sharp_{g,v}((\dd f_v)^*\mu)
\in N_v^g\Fw,
\]
or, with \(\lambda=-\mu\),
\[
\grad_gJ(v)+\sharp_{g,v}((\dd f_v)^*\lambda)=0.
\]

\begin{warningbox}[title={Normality requires a metric}]
The phrase ``the gradient is normal to the constraint'' already presupposes a metric. The primary invariant statement is that \(\dd J_v\) annihilates \(\T_v\Fw\).
\end{warningbox}



\section{Running example: optimization on the sphere and the Rayleigh quotient}

Let \(\mathcal V=\mathbb R^n\) be equipped with its standard inner
product, let \(\mathcal W=\mathbb R\), and define
\[
f(v)=\frac12\langle v,v\rangle,
\qquad
w=\frac12.
\]
The corresponding fiber is the unit sphere,
\[
\mathcal F_{1/2}
=
f^{-1}\left(\frac12\right)
=
\mathbb S^{n-1}.
\]
For every \(\xi\in T_v\mathbb R^n\simeq\mathbb R^n\), one has
\(\dd f_v(\xi)=\langle v,\xi\rangle\). Hence
\[
T_v\mathbb S^{n-1}
=
\ker\dd f_v
=
\{\xi\in\mathbb R^n:\langle v,\xi\rangle=0\},
\]
so the feasible tangent space is the hyperplane orthogonal to \(v\).

A point \(v\in\mathbb S^{n-1}\) is stationary for
\(J|_{\mathbb S^{n-1}}\) if and only if
\(\dd J_v(\xi)=0\) for every
\(\xi\in T_v\mathbb S^{n-1}\). Equivalently, there exists a geometric
multiplier \(\mu\in T_{1/2}^*\mathbb R\simeq\mathbb R\) such that
\[
\boxed{\dd J_v=\mu\,\dd f_v.}
\]
With the conventional plus-sign Lagrangian
\[
\mathcal L(v,\lambda)
=
J(v)+\lambda\left(\frac12\langle v,v\rangle-\frac12\right),
\]
the same condition is
\[
\dd J_v+\lambda\,\dd f_v=0,
\qquad
\lambda=-\mu.
\]
Using the standard inner product to identify covectors with vectors,
this becomes
\[
\grad J(v)+\lambda v=0.
\]

\subsection{A self-adjoint quadratic cost}

Let \(A:\mathbb R^n\to\mathbb R^n\) be self-adjoint with respect to the
standard inner product. Thus
\(\langle A\xi,\zeta\rangle=\langle\xi,A\zeta\rangle\) for all
\(\xi,\zeta\in\mathbb R^n\). In an orthonormal basis, \(A\) is
represented by a symmetric matrix, also denoted by \(A\).

Consider
\[
J(v)=\frac12\langle v,Av\rangle.
\]
Its differential is
\(\dd J_v(\xi)=\langle Av,\xi\rangle\). The intrinsic multiplier
equation therefore gives
\[
\langle Av,\xi\rangle
=
\mu\langle v,\xi\rangle
\qquad
\forall\xi\in\mathbb R^n.
\]
By nondegeneracy of the inner product,
\[
\boxed{Av=\mu v.}
\]

Consequently, \(v\in\mathbb S^{n-1}\) is stationary for
\(J|_{\mathbb S^{n-1}}\) if and only if \(v\) is a unit eigenvector of
\(A\). The geometric multiplier \(\mu\) is the corresponding
eigenvalue, while the plus-sign Lagrangian multiplier is
\(\lambda=-\mu\).

\subsection{Rayleigh quotient and stationary set}

The Rayleigh quotient of \(A\) is
\[
\mathcal R_A(v)
=
\frac{\langle v,Av\rangle}{\langle v,v\rangle},
\qquad v\neq0.
\]
It is invariant under nonzero rescaling:
\(\mathcal R_A(cv)=\mathcal R_A(v)\) for every \(c\neq0\). On the unit
sphere,
\[
\mathcal R_A(v)=\langle v,Av\rangle=2J(v).
\]
Therefore, the restrictions of \(J\) and \(\mathcal R_A\) to the sphere
have the same stationary points. If \(Av=\mu v\) and
\(\langle v,v\rangle=1\), then
\[
\mathcal R_A(v)=\mu,
\qquad
J(v)=\frac{\mu}{2}.
\]
Thus the geometric multiplier is the stationary value of the Rayleigh
quotient.

Let \(E_\rho=\ker(A-\rho I)\) be the eigenspace associated with
\(\rho\). The complete constrained stationary set is
\[
\boxed{
\operatorname{Crit}\bigl(J|_{\mathbb S^{n-1}}\bigr)
=
\bigcup_{\rho\in\sigma(A)}
\left(E_\rho\cap\mathbb S^{n-1}\right).
}
\]
Hence every unit vector in an eigenspace is stationary. Simple
eigenvalues produce antipodal pairs \(\pm e_i\); an eigenvalue of
higher multiplicity produces an entire unit sphere within the
corresponding eigenspace.

Moreover,
\[
\min_{v\neq0}\mathcal R_A(v)=\lambda_{\min}(A),
\qquad
\max_{v\neq0}\mathcal R_A(v)=\lambda_{\max}(A),
\]
attained on the unit vectors in the corresponding extremal
eigenspaces. The minimum and maximum values of \(J\) on the unit sphere
are therefore \(\lambda_{\min}(A)/2\) and
\(\lambda_{\max}(A)/2\), respectively.

\begin{geombox}
At \(v\in\mathbb S^{n-1}\), the feasible tangent vectors are precisely
those orthogonal to \(v\). Under the chosen inner product, the cost
differential is represented by \(Av\). Constrained stationarity requires
\[
\langle Av,\xi\rangle=0
\qquad
\forall\xi\in T_v\mathbb S^{n-1}.
\]
Thus \(Av\) must be orthogonal to the entire tangent hyperplane and
must consequently belong to its one-dimensional normal space:
\[
Av\in\operatorname{Span}\{v\}.
\]
This is exactly the eigenvector condition. The stationary points are
therefore the points at which the gradient of the quadratic cost is
normal to the sphere.
\end{geombox}

\begin{remark}[Intrinsic meaning of \(A\) and its eigenvalues]
The primary object is the self-adjoint endomorphism
\(A:\mathbb R^n\to\mathbb R^n\), not its matrix representation. Under
a change of basis, the representing matrix changes by similarity,
whereas the eigenvalues and eigenspaces of the operator remain
unchanged. In an orthonormal basis, self-adjointness is represented by
the familiar matrix condition \(A^\top=A\).

If one starts instead from a symmetric bilinear form, an inner product
is needed to associate that form with a self-adjoint endomorphism
before its eigenvalues can be interpreted intrinsically.
\end{remark}


\section{The multiplier as the differential of the optimal value}

We now show that the geometric multiplier measures how the optimal cost
changes when the prescribed task value \(w\) is varied.

Let \(U\subset\mathcal W\) be a neighborhood of \(w\). Assume that, for
every \(w'\in U\), the constrained problem
\[
\min_{v\in\mathcal F_{w'}} J(v),
\qquad
\mathcal F_{w'}=f^{-1}(w'),
\]
has a selected minimizer
\[
\widehat v(w')\in\mathcal F_{w'},
\]
and that the resulting map
\[
\widehat v:U\to\mathcal V,
\qquad
w'\mapsto\widehat v(w'),
\]
is differentiable.

Define the optimal-value function along this differentiable selection
of minimizers by
\[
\mathcal J^{\mathrm{opt}}(w')
:=
J\bigl(\widehat v(w')\bigr)
=
\min_{v\in\mathcal F_{w'}}J(v).
\]

The feasibility of the selected minimizer gives
\[
f\bigl(\widehat v(w')\bigr)=w'.
\]
For a task variation \(\delta w\in T_w\mathcal W\), differentiating this
identity at \(w\) and applying the chain rule yields
\[
\dd f_{\widehat v(w)}
\left(
\dd\widehat v_w[\delta w]
\right)
=
\delta w.
\]

Let
\[
\mu\in T_w^*\mathcal W
\]
be the geometric multiplier at \(\widehat v(w)\), so that
\[
\dd J_{\widehat v(w)}
=
\bigl(\dd f_{\widehat v(w)}\bigr)^*\mu.
\]
Applying the chain rule to the optimal-value function gives
\begin{align*}
\dd\mathcal J^{\mathrm{opt}}_w(\delta w)
&=
\dd J_{\widehat v(w)}
\left(
\dd\widehat v_w[\delta w]
\right)
\\
&=
\mu\left(
\dd f_{\widehat v(w)}
\left(
\dd\widehat v_w[\delta w]
\right)
\right)
\\
&=
\mu(\delta w).
\end{align*}
Since this equality holds for every
\(\delta w\in T_w\mathcal W\), we conclude that
\[
\boxed{
\dd\mathcal J^{\mathrm{opt}}_w
=
\mu
=
-\lambda.
}
\]

\begin{geombox}
The differential
\[
\dd\mathcal J^{\mathrm{opt}}_w\in T_w^*\mathcal W
\]
measures the first-order change in the optimal cost produced by an
infinitesimal variation of the prescribed task value. The geometric
multiplier is exactly this sensitivity covector:
\[
\mu
=
\dd\mathcal J^{\mathrm{opt}}_w.
\]

Thus \(\mu(\delta w)\) is the first-order change in the optimal cost
associated with the task variation \(\delta w\). Under the conventional
plus-sign Lagrangian, the multiplier is \(\lambda=-\mu\), and therefore
\[
\dd\mathcal J^{\mathrm{opt}}_w=-\lambda.
\]
\end{geombox}

\begin{warningbox}[title={Sensitivity needs additional assumptions}]
The existence of a multiplier at a single constrained minimizer does
not by itself guarantee that nearby fibers possess selected minimizers
that vary differentiably with the task value. It also does not
guarantee that the resulting optimal-value function is differentiable.
The sensitivity relation above therefore relies on the stated
assumptions of local existence, differentiable selection, and suitable
stability of the minimizers.
\end{warningbox}




\section{From first-order geometry to numerical updates}

The preceding theory characterizes stationary points. To construct an
optimization algorithm, we must additionally explain how a tangent
descent direction produces a new point on the manifold.

A gradient is a tangent vector:
\[
-\grad_gJ(v)\in T_v\mathcal V.
\]
It represents an infinitesimal descent direction, but it is not itself
a point of \(\mathcal V\). On a nonlinear manifold, the coordinate
addition of this vector to the point \(v\) is not an intrinsic
operation. A retraction provides the required map from a tangent
displacement back to the manifold.

\begin{definition}[Retraction]
Let \(\mathcal U\subset T\mathcal V\) be an open neighborhood of the
zero section of the tangent bundle. A \emph{retraction} on
\(\mathcal V\) is a smooth map
\[
R:\mathcal U\subset T\mathcal V\to\mathcal V
\]
such that, for every \(v\in\mathcal V\), the restriction
\[
R_v:\mathcal U_v\subset T_v\mathcal V\to\mathcal V,
\qquad
R_v(\xi):=R(v,\xi),
\]
satisfies
\[
R_v(0_v)=v,
\qquad
\dd(R_v)_{0_v}
=
\Id_{T_v\mathcal V}.
\]
Here,
\[
\mathcal U_v
=
\{\xi\in T_v\mathcal V:(v,\xi)\in\mathcal U\}
\]
is a neighborhood of \(0_v\) in \(T_v\mathcal V\), and the canonical
identification
\[
T_{0_v}(T_v\mathcal V)\simeq T_v\mathcal V
\]
is understood in the second condition.
\end{definition}

For a fixed \(v\), the map \(R_v\) takes a sufficiently small tangent
displacement \(\xi\in T_v\mathcal V\) and returns a point
\(R_v(\xi)\in\mathcal V\). The first condition states that a zero
displacement leaves the point unchanged. The second states that the
retraction reproduces the tangent displacement to first order.

More precisely, in a local chart \(\varphi\) around \(v\),
\[
\varphi\bigl(R_v(\xi)\bigr)
=
\varphi(v)+[\xi]_\varphi
+
o\bigl(\|[\xi]_\varphi\|\bigr).
\]
This coordinate formula describes the first-order behavior of the
retraction; it is not its intrinsic definition.

An unconstrained metric-gradient iteration can therefore be written as
\[
\boxed{
v_{k+1}
=
R_{v_k}\bigl(
-\alpha_k\grad_gJ(v_k)
\bigr).
}
\]
The metric determines the tangent descent direction, while the
retraction determines how the finite tangent displacement is realized
as a new point of \(\mathcal V\).

\subsection{Optimization on a constraint fiber}

Now consider the embedded constraint fiber
\[
\mathcal F_w=f^{-1}(w)\subset\mathcal V.
\]
A constrained algorithm must solve two different geometric problems:

\begin{enumerate}[leftmargin=*]
    \item construct a descent direction belonging to the feasible
    tangent space \(T_v\mathcal F_w\);

    \item map the resulting tangent displacement to an actual point of
    \(\mathcal F_w\).
\end{enumerate}

The first problem is solved by tangent projection. The second is solved
by a retraction on the fiber.

Assume that \(\mathcal F_w\) carries the metric induced by the ambient
metric \(g\). Since
\[
T_v\mathcal V
=
T_v\mathcal F_w
\oplus
(T_v\mathcal F_w)^{\perp_g},
\]
every ambient tangent vector \(\eta\in T_v\mathcal V\) admits a unique
decomposition
\[
\eta
=
\eta^{\mathrm T}
+
\eta^{\mathrm N},
\]
where
\[
\eta^{\mathrm T}\in T_v\mathcal F_w,
\qquad
\eta^{\mathrm N}\in
(T_v\mathcal F_w)^{\perp_g}.
\]

\begin{definition}[Metric-orthogonal tangent projection]
The metric-orthogonal projection onto the feasible tangent space is
the linear map
\[
\Proj_{T_v\mathcal F_w}^{g}:
T_v\mathcal V
\to
T_v\mathcal F_w
\]
defined by
\[
\Proj_{T_v\mathcal F_w}^{g}(\eta)
=
\eta^{\mathrm T}.
\]
Equivalently, it is characterized by
\[
\eta-\Proj_{T_v\mathcal F_w}^{g}(\eta)
\in
(T_v\mathcal F_w)^{\perp_g}.
\]
\end{definition}

The projection depends on the metric because the orthogonal complement
\((T_v\mathcal F_w)^{\perp_g}\) depends on the metric.

\begin{proposition}[Gradient of the restricted cost]
For the metric induced on \(\mathcal F_w\),
\[
\boxed{
\grad_{\mathcal F_w}(J|_{\mathcal F_w})(v)
=
\Proj_{T_v\mathcal F_w}^{g}
\bigl(\grad_gJ(v)\bigr).
}
\]
\end{proposition}

\begin{proof}
Let
\[
\eta
=
\Proj_{T_v\mathcal F_w}^{g}
\bigl(\grad_gJ(v)\bigr).
\]
For every \(\xi\in T_v\mathcal F_w\), the difference
\(\grad_gJ(v)-\eta\) is \(g\)-orthogonal to \(\xi\). Hence
\begin{align*}
g_v(\eta,\xi)
&=
g_v\bigl(\grad_gJ(v),\xi\bigr)
\\
&=
\dd J_v(\xi)
\\
&=
\dd(J|_{\mathcal F_w})_v(\xi).
\end{align*}
Thus \(\eta\) satisfies the defining identity of the gradient of the
restricted cost. Uniqueness of the gradient proves the result.
\end{proof}

The negative restricted gradient is therefore a feasible descent
direction whenever it is nonzero:
\[
-\grad_{\mathcal F_w}(J|_{\mathcal F_w})(v)
\in
T_v\mathcal F_w.
\]

\subsection{Connection with constrained stationarity and multipliers}

This projected-gradient formula is the algorithmic counterpart of the
multiplier theory developed earlier. Indeed,
\[
\grad_{\mathcal F_w}(J|_{\mathcal F_w})(v)=0
\]
if and only if
\[
\Proj_{T_v\mathcal F_w}^{g}
\bigl(\grad_gJ(v)\bigr)=0.
\]
This means that the ambient gradient has no feasible tangent component
and lies entirely in the metric normal space:
\[
\grad_gJ(v)\in
(T_v\mathcal F_w)^{\perp_g}.
\]

Applying the flat map gives the equivalent metric-free statement
\[
\dd J_v\in
(T_v\mathcal F_w)^\circ.
\]
By the annihilator identity, this is equivalent to the existence of
the geometric multiplier
\[
\mu\in T_w^*\mathcal W
\]
such that
\[
\dd J_v=(\dd f_v)^*\mu.
\]

Consequently,
\[
\boxed{
\begin{aligned}
\grad_{\mathcal F_w}(J|_{\mathcal F_w})(v)=0
&\Longleftrightarrow
\dd J_v|_{T_v\mathcal F_w}=0
\\
&\Longleftrightarrow
\dd J_v\in(T_v\mathcal F_w)^\circ
\\
&\Longleftrightarrow
\dd J_v=(\dd f_v)^*\mu.
\end{aligned}
}
\]

Thus the multiplier equation characterizes the zeros of the constrained
gradient field. The projected gradient supplies the feasible descent
direction used to search for such zeros.

\subsection{Finite feasible updates}

Tangent projection alone does not produce a new feasible point. It
produces a vector in \(T_v\mathcal F_w\), which is feasible only to
first order. A finite ambient addition generally leaves a curved
constraint fiber.

Let
\[
R^{\mathcal F_w}:
\mathcal U^{\mathcal F_w}
\subset
T\mathcal F_w
\to
\mathcal F_w
\]
be a retraction on the constraint fiber. Its restriction at
\(v\in\mathcal F_w\) is
\[
R_v^{\mathcal F_w}:
\mathcal U_v^{\mathcal F_w}
\subset
T_v\mathcal F_w
\to
\mathcal F_w.
\]
A constrained metric-gradient iteration is then
\[
\boxed{
v_{k+1}
=
R_{v_k}^{\mathcal F_w}
\left(
-\alpha_k
\grad_{\mathcal F_w}
(J|_{\mathcal F_w})(v_k)
\right).
}
\]
Equivalently, using the ambient gradient and its tangent projection,
\[
\boxed{
v_{k+1}
=
R_{v_k}^{\mathcal F_w}
\left(
-\alpha_k
\Proj_{T_{v_k}\mathcal F_w}^{g}
\bigl(\grad_gJ(v_k)\bigr)
\right).
}
\]

\begin{keyidea}[title={Projection and retraction perform different tasks}]
The metric-orthogonal projection
\[
\Proj_{T_v\mathcal F_w}^{g}
\]
converts the ambient gradient into a feasible tangent direction. The
retraction
\[
R_v^{\mathcal F_w}
\]
converts the resulting tangent displacement into an actual feasible
point.

Projection is linear and acts within the tangent space at a fixed
point. Retraction is generally nonlinear and maps from the tangent
space back to the constraint manifold. Neither operation replaces the
other.
\end{keyidea}



\section{Unified geometric picture}

The complete structure developed in this lecture can be organized into
two connected paths in Fig.~\ref{fig:unified-first-order-geometry}. The upper path starts from the cost differential
and leads, through a metric, to an unconstrained numerical update. The
lower path introduces a task fiber, restricts the admissible tangent
directions, and leads both to the multiplier characterization of
stationarity and to a constrained numerical update.








\begin{figure}[p]
\centering

\resizebox{0.65\textwidth}{!}{%
\begin{tikzpicture}[
trim left=(lefttitle.west),
    trim right=(righttitle.east),
    >=Latex,
    node distance=6mm,
    centralbox/.style={
        draw,
        rounded corners=2mm,
        align=center,
        minimum height=9mm,
        text width=96mm,
        inner xsep=3mm,
        inner ysep=2.5mm,
        font=\sffamily\small
    },
    branchbox/.style={
        draw,
        rounded corners=2mm,
        align=center,
        minimum height=9mm,
        text width=57mm,
        inner xsep=3mm,
        inner ysep=2.5mm,
        font=\sffamily\small
    },
    arr/.style={
        -{Latex[length=2mm]},
        thick
    },
    equiv/.style={
        {Latex[length=2mm]}-{Latex[length=2mm]},
        thick,
        dashed
    },
    relation/.style={
        -{Latex[length=2mm]},
        thick,
        dashed
    },
    branchtitle/.style={
        font=\sffamily\bfseries
    }
]




% ------------------------------------------------------------------
% Common centered introduction
% ------------------------------------------------------------------

\node[
    centralbox,
    fill=softorange,
    draw=orange
] (J) {
    cost map
    \[
    J:\mathcal V\to\mathbb R
    \]
};

\node[
    centralbox,
    fill=softorange,
    draw=orange,
    below=of J
] (dJ) {
    intrinsic first-order information
    \[
    \dd J_v\in T_v^*\mathcal V
    \]
};

\node[
    centralbox,
    fill=softgreen,
    draw=green,
    below=of dJ
] (partition) {
    metric-independent first-order partition
    \[
    \ker\dd J_v,
    \qquad
    \mathcal D_v^-,
    \qquad
    \mathcal D_v^+
    \]
};

\draw[arr] (J)
    --
    node[right] {differentiate}
    (dJ);

\draw[arr] (dJ)
    --
    node[right] {evaluate tangent directions}
    (partition);

\node[
    font=\scriptsize\sffamily,
    teal,
    left=3mm of dJ
] {metric-free};

% ------------------------------------------------------------------
% Fixed symmetric column anchors
% ------------------------------------------------------------------

\coordinate (leftcolumn)  at ($(partition.south)+( -34mm,-15mm)$);
\coordinate (rightcolumn) at ($(partition.south)+(  34mm,-15mm)$);

\node[
    branchtitle,
    text=blue,
    anchor=north
] (lefttitle) at (leftcolumn) {
    Unconstrained optimization
};

\node[
    branchtitle,
    text=purple,
    anchor=north
] (righttitle) at (rightcolumn) {
    Optimization on a fiber
};

% ------------------------------------------------------------------
% Left column: unconstrained optimization
% ------------------------------------------------------------------

\node[
    branchbox,
    fill=softgray,
    draw=navy,
    below=4mm of lefttitle
] (metric) {
    chosen metric
    \[
    g_v
    \]
};

\node[
    branchbox,
    fill=softblue,
    draw=blue,
    below=of metric
] (grad) {
    metric gradient
    \[
    \grad_gJ(v)
    =
    \sharp_{g,v}(\dd J_v)
    \]
};

\node[
    branchbox,
    fill=softorange,
    draw=orange,
    below=of grad
] (udescent) {
    tangent descent direction
    \[
    -\grad_gJ(v)\in\mathcal D_v^-
    \]
};

\node[
    branchbox,
    fill=softred,
    draw=red,
    below=of udescent
] (uupdate) {
    unconstrained update
    \[
    v_{k+1}
    =
    R_{v_k}
    \bigl(
    -\alpha_k\grad_gJ(v_k)
    \bigr)
    \]
};

\draw[arr] (metric)
    --
    node[right] {defines \(\sharp_{g,v}\)}
    (grad);

\draw[arr] (grad)
    --
    node[right] {change sign}
    (udescent);

\draw[arr] (udescent)
    --
    node[right] {retract}
    (uupdate);

% Short connection from the common differential
\draw[arr] (dJ.south west)
    to[out=235,in=135]
    node[right,align=right,
    shift={(0.25cm,0.7cm)}] {
        convert covector
        to vector
    }
    (grad.north west);

% ------------------------------------------------------------------
% Right column: constraint geometry
% ------------------------------------------------------------------

\node[
    branchbox,
    fill=softblue,
    draw=blue,
    below=4mm of righttitle
] (task) {
    task map and prescribed value
    \[
    f:\mathcal V\to\mathcal W,
    \qquad
    w\in\mathcal W
    \]
};

\node[
    branchbox,
    fill=softgreen,
    draw=green,
    below=of task
] (fiber) {
    regular task fiber
    \[
    \mathcal F_w=f^{-1}(w)
    \]
};

\node[
    branchbox,
    fill=softgreen,
    draw=green,
    below=of fiber
] (tangent) {
    feasible tangent space
    \[
    T_v\mathcal F_w
    =
    \ker\dd f_v
    \]
};

\node[
    branchbox,
    fill=softred,
    draw=red,
    below=of tangent
] (conormal) {
    conormal space
    \[
    (T_v\mathcal F_w)^\circ
    =
    \operatorname{Im}(\dd f_v)^*
    \]
};

\node[
    branchbox,
    fill=softgray,
    draw=navy,
    below=of conormal
] (multiplier) {
    multiplier characterization
    \[
    \dd J_v
    =
    (\dd f_v)^*\mu,
    \qquad
    \mu\in T_w^*\mathcal W
    \]
};

\node[
    branchbox,
    fill=softblue,
    draw=purple,
    below=of multiplier
] (pgrad) {
    feasible gradient
    \[
    \grad_{\mathcal F_w}
    (J|_{\mathcal F_w})(v)
    =
    \Proj_{T_v\mathcal F_w}^{g}
    \bigl(\grad_gJ(v)\bigr)
    \]
};

\node[
    branchbox,
    fill=softred,
    draw=red,
    below=of pgrad
] (cupdate) {
    constrained update
    \[
    v_{k+1}
    =
    R_{v_k}^{\mathcal F_w}
    \left(
    -\alpha_k
    \grad_{\mathcal F_w}
    (J|_{\mathcal F_w})(v_k)
    \right)
    \]
};

\draw[arr] (task)
    --
    node[right] {select \(w\)}
    (fiber);

\draw[arr] (fiber)
    --
    node[right] {linearize}
    (tangent);

\draw[arr] (tangent)
    --
    node[right] {take annihilator}
    (conormal);

\draw[arr] (conormal)
    --
    node[right] {represent by pullback}
    (multiplier);

\draw[arr] (pgrad)
    --
    node[right] {change sign and retract}
    (cupdate);

% ------------------------------------------------------------------
% Short cross-column and stationarity connections
% ------------------------------------------------------------------

% Ambient gradient projected to the feasible gradient
\draw[arr] (grad.south west)
    to[out=225,in=225]
    node[right,align=left, 
    shift={(-0.5cm, 0.9cm)}] {
        metric-orthogonal\\
        tangent projection
    }
    (pgrad.south west);

% Cost differential enters the conormal space only at stationarity
\draw[relation] (dJ.south east)
    to[out=305,in=75]
    node[left,align=right,
    shift={(-0.5cm,2.5cm)}] {
        at constrained
        stationary points
    }
    (conormal.north east);

% Multiplier condition equivalent to vanishing feasible gradient
\draw[equiv] (multiplier.west)
    to[out=180,in=180]
    node[left,align=right] {
        equivalent to\\
        feasible gradient \(=0\)
    }
    ($(pgrad.west)+(-1mm,0)$);

\end{tikzpicture}
}

\caption{
The cost first supplies the metric-independent differential
\(\dd J_v\), which determines the level, ascent, and descent directions.
The left column shows how a metric converts this covector into an
unconstrained gradient direction and how a retraction produces a new
point of \(\mathcal V\). The right column shows how the task map defines
the constraint fiber, its feasible tangent space, and its conormal
space. The multiplier equation characterizes constrained stationary
points, while the projected gradient and a fiber retraction provide a
feasible numerical update.
}
\label{fig:unified-first-order-geometry}

\end{figure}



\section{Coordinate-free statements and coordinate implementation}

The following two tables summarize how the intrinsic constructions
developed in this lecture are represented in coordinates. Part~I covers
the differential, metric gradients, and metric selection. Part~II
covers constraint fibers, multipliers, and numerical updates on the
constraint manifold.

\subsection*{Part I: Differential, gradients, and metric selection}

\small

\begin{center}
\renewcommand{\arraystretch}{1.24}
\setlength{\tabcolsep}{4pt}

\begin{tabularx}{\textwidth}{
    >{\bfseries\color{navy}}p{0.22\textwidth}
    X
    X
}
\toprule
Object or operation
&
Intrinsic statement
&
Coordinate representation
\\
\midrule

\multicolumn{3}{l}{
\color{teal}\sffamily\bfseries
Cost differential and metric gradient
}
\\
\addlinespace[2pt]

Cost differential
&
\(\dd J_v\in T_v^*\mathcal V\)
&
\(d_v=\bigl(\partial J/\partial x^i(v)\bigr)_i\)
\\

Level directions
&
\(\ker\dd J_v\subset T_v\mathcal V\)
&
\(d_v^\top[\xi]_v=0\)
\\

Descent test
&
\(\dd J_v(\xi)<0\)
&
\(d_v^\top[\xi]_v<0\)
\\

Metric gradient
&
\(\grad_gJ(v)=\sharp_{g,v}(\dd J_v)\)
&
\([\grad_gJ]_v=G_v^{-1}d_v\)
\\

Steepest descent direction
&
\(\displaystyle
\arg\min_{\|\xi\|_g=1}\dd J_v(\xi)
\)
&
\(\displaystyle
\arg\min_{\xi^\top G_v\xi=1}d_v^\top\xi
\)
\\

Regularized gradient step
&
\(\displaystyle
\arg\min_{\xi}
\left[
\dd J_v(\xi)+\frac{1}{2\eta}\|\xi\|_g^2
\right]
\)
&
\(-\eta G_v^{-1}d_v\)
\\

Coordinate change
&
Vectors and covectors transform so that
\(\dd J_v(\xi)\) is invariant
&
\([\xi]_y=K[\xi]_x\),\quad
\([\dd J]_y=K^{-\top}[\dd J]_x\)
\\

\midrule

\multicolumn{3}{l}{
\color{teal}\sffamily\bfseries
Metric selection, preconditioning, and Newton
}
\\
\addlinespace[2pt]

Preconditioned direction
&
Negative sharp image under a selected metric
&
\(-P_vd_v\), with \(P_v=G_v^{-1}\succ0\)
\\

Newton direction
&
Negative gradient under the Hessian metric,
when \(H_v\succ0\)
&
\(-H_v^{-1}d_v\)
\\

Stationary-point invariance
&
\(\dd J_v=0
\Longleftrightarrow
\grad_gJ(v)=0\)
&
\(d_v=0
\Longleftrightarrow
G_v^{-1}d_v=0\)
\\

\bottomrule
\end{tabularx}
\end{center}

\normalsize


\subsection*{Part II: Constraint geometry, multipliers, and feasible updates}

\small

\begin{center}
\renewcommand{\arraystretch}{1.24}
\setlength{\tabcolsep}{4pt}

\begin{tabularx}{\textwidth}{
    >{\bfseries\color{navy}}p{0.22\textwidth}
    X
    X
}
\toprule
Object or operation
&
Intrinsic statement
&
Coordinate representation
\\
\midrule

\multicolumn{3}{l}{
\color{teal}\sffamily\bfseries
Constraint fibers, conormals, and multipliers
}
\\
\addlinespace[2pt]

Task fiber
&
\(\mathcal F_w=f^{-1}(w)\)
&
\(f(v)=w\)
\\

Feasible tangent space
&
\(T_v\mathcal F_w=\ker\dd f_v\)
&
\(F_v[\xi]_v=0\)
\\

Restricted differential
&
\(\dd(J|_{\mathcal F_w})_v
=
(\dd\iota_{w,v})^*(\dd J_v)\)
&
Restrict \(d_v^\top[\xi]_v\) to vectors satisfying
\(F_v[\xi]_v=0\)
\\

Constrained stationarity
&
\(\dd J_v|_{T_v\mathcal F_w}=0\)
&
\(d_v^\top[\xi]_v=0\) for every
\([\xi]_v\in\ker F_v\)
\\

Conormal space
&
\((T_v\mathcal F_w)^\circ
=
\operatorname{Im}(\dd f_v)^*\)
&
\(\operatorname{Im}F_v^\top\)
\\

Geometric multiplier
&
\(\dd J_v=(\dd f_v)^*\mu\)
&
\(d_v=F_v^\top[\mu]_w\)
\\

Plus-sign multiplier
&
\(\dd J_v+(\dd f_v)^*\lambda=0\),
\(\lambda=-\mu\)
&
\(d_v+F_v^\top[\lambda]_w=0\)
\\

Conormal-to-normal conversion
&
\(\sharp_{g,v}
\bigl((T_v\mathcal F_w)^\circ\bigr)
=
(T_v\mathcal F_w)^{\perp_g}
\)
&
A conormal column \(a_v\) becomes \(G_v^{-1}a_v\)
\\

Optimal-value sensitivity
&
\(\dd\mathcal J_w^{\mathrm{opt}}
=
\mu=-\lambda
\)
&
\(\delta\mathcal J^{\mathrm{opt}}
\approx
[\mu]_w^\top[\delta w]_w
\)
\\

\midrule

\multicolumn{3}{l}{
\color{teal}\sffamily\bfseries
Numerical updates on manifolds
}
\\
\addlinespace[2pt]

Restricted gradient
&
\(\displaystyle
\grad_{\mathcal F_w}(J|_{\mathcal F_w})(v)
=
\Proj_{T_v\mathcal F_w}^{g}
\bigl(\grad_gJ(v)\bigr)
\)
&
Project the ambient gradient components onto
\(\ker F_v\) using \(G_v\)
\\

Unconstrained update
&
\(\displaystyle
v_{k+1}
=
R_{v_k}\bigl(-\alpha_k\grad_gJ(v_k)\bigr)
\)
&
Compute the tangent components, then evaluate \(R_{v_k}\)
\\

Constrained update
&
\(\displaystyle
v_{k+1}
=
R_{v_k}^{\mathcal F_w}
\left(
-\alpha_k
\grad_{\mathcal F_w}(J|_{\mathcal F_w})(v_k)
\right)
\)
&
Project onto \(\ker F_{v_k}\), then evaluate the
fiber retraction
\\

\bottomrule
\end{tabularx}
\end{center}

\normalsize

\section*{Final synthesis}
\addcontentsline{toc}{section}{Final synthesis}

\begin{takeaway}
The cost
\[
J:\mathcal V\to\mathbb R
\]
supplies the intrinsic first-order covector
\[
\dd J_v\in T_v^*\mathcal V.
\]
This differential, rather than any particular coordinate formula or
gradient vector, is the metric-independent starting point of
first-order optimization. It determines the tangent directions of
zero first-order change and separates the intrinsic ascent and descent
half-spaces.

A Riemannian metric converts the differential into a tangent vector:
\[
\grad_gJ(v)=\sharp_{g,v}(\dd J_v).
\]
The metric determines lengths, orthogonality, normal directions, and
the meaning of steepest descent. Different metrics generally produce
different gradients from the same differential, while the stationary
set and the intrinsic ascent/descent partition remain unchanged.
Coordinates represent the differential, metric, and gradient by
compatible arrays, leading to
\[
[\grad_gJ]_v=G_v^{-1}d_v.
\]

Preconditioning is the coordinate realization of choosing an inverse
metric. When the Hessian is positive definite, Newton's direction is
the negative gradient associated with the Hessian-based metric. Newton
therefore uses second-order information to select the geometry in
which the differential is converted into a descent vector.

An equality constraint
\[
f(v)=w
\]
selects the regular fiber
\[
\mathcal F_w=f^{-1}(w),
\qquad
T_v\mathcal F_w=\ker\dd f_v.
\]
Constrained stationarity requires the cost differential to vanish on
this feasible tangent space:
\[
\dd J_v|_{T_v\mathcal F_w}=0.
\]
Equivalently, the cost differential belongs to the conormal space and
is the pullback of a task-space multiplier covector:
\[
\dd J_v
\in
(T_v\mathcal F_w)^\circ
=
\operatorname{Im}(\dd f_v)^*,
\qquad
\dd J_v=(\dd f_v)^*\mu.
\]
The familiar Jacobian transpose is the coordinate representation of
this pullback. Under the stated sensitivity assumptions, the same
multiplier is the differential of the optimal-value function:
\[
\dd\mathcal J_w^{\mathrm{opt}}
=
\mu
=
-\lambda.
\]

Finally, first-order geometry supplies tangent directions, not finite
manifold displacements. In constrained optimization, metric projection
converts the ambient gradient into a feasible tangent direction, while
a retraction converts that tangent displacement into a new feasible
point. Gradient, preconditioning, Newton, multipliers, projection, and
retraction are therefore not disconnected formulas. They are
complementary realizations of one intrinsic first-order geometric
structure centered on the differential.
\end{takeaway}




\clearpage
\section*{Some Exercises}
\addcontentsline{toc}{section}{Some Exercises}

The following exercises follow the conceptual progression of the
lecture, from intrinsic differentials and coordinate representations to
metric selection, constrained stationarity, and feasible numerical
updates.

\begin{exercise}[One function, two coordinate representations]
Consider the one-dimensional manifold \(\mathcal V=\mathbb R\). Suppose
that the cost is represented in the coordinate \(x\) by
\[
J_x(x)=x^2.
\]
Introduce the coordinate
\[
y=\arctan x.
\]

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Determine the coordinate representative \(J_y(y)\).

    \item Compute the coordinate expressions of \(\dd J\) in the
    \(x\)- and \(y\)-coordinates.

    \item Use the transformation relation between \(\dd x\) and
    \(\dd y\) to verify that the two expressions represent the same
    intrinsic one-form.
\end{enumerate}
\end{exercise}

\begin{exercise}[The level hyperplanes of a covector]
Let \(\alpha\in(\mathbb R^2)^*\) be defined by
\[
\alpha(\xi_1,\xi_2)=\xi_1+2\xi_2.
\]

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Determine the kernel \(\ker\alpha\).

    \item For \(a\in\mathbb R\), describe the affine level set
    \[
    H_a=\{\xi\in\mathbb R^2:\alpha(\xi)=a\}.
    \]

    \item Identify the positive and negative half-spaces determined by
    \(\alpha\).

    \item Compare the labelled level hyperplanes of \(\alpha\) and
    \(2\alpha\). State what remains unchanged and what additional
    information is lost if only the kernel is retained.
\end{enumerate}
\end{exercise}

\begin{exercise}[One differential and two metric gradients]
On \(\mathcal V=\mathbb R^2\), consider
\[
J(z)
=
\frac12(9z_1^2+z_2^2)
\]
and the two constant metrics represented in the selected coordinates by
\[
G_1=I,
\qquad
G_2=
\begin{bmatrix}
9&0\\
0&1
\end{bmatrix}.
\]

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Compute the component column \(d_z\) of \(\dd J_z\).

    \item Compute \([\grad_{g_1}J]_z\) and
    \([\grad_{g_2}J]_z\).

    \item Verify directly through the intrinsic pairing test that both
    negative gradients are strict descent directions whenever
    \(z\neq0\).

    \item Explain which first-order objects remain unchanged when the
    metric is changed and which objects depend on the metric.
\end{enumerate}
\end{exercise}

\begin{exercise}[Coordinate covariance in polar coordinates]
On \(\mathbb R^2\setminus\{0\}\), consider
\[
J(x,y)=xy.
\]
Introduce polar coordinates through
\[
x=r\cos\theta,
\qquad
y=r\sin\theta.
\]

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Determine the coordinate representative \(J_{r\theta}\).

    \item Compute the components of \(\dd J\) in Cartesian and polar
    coordinates.

    \item Transform the Cartesian covector components using the
    inverse-transpose Jacobian and verify agreement with the direct
    polar-coordinate computation.

    \item Represent the standard metric in polar coordinates and
    compute the corresponding gradient components.

    \item Verify that the gradient components transform as those of a
    tangent vector.

    \item Explain why replacing the polar metric matrix by \(I\) would
    select a different metric rather than merely a different
    representation of the same metric.
\end{enumerate}
\end{exercise}

\begin{exercise}[Hessian metric and Newton direction]
Let
\[
J(z)=\frac12z^\top Qz,
\qquad
Q=Q^\top\succ0.
\]

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Compute \(d_z\) and the Hessian \(H_z\).

    \item Compute the negative gradient direction for the metric
    represented by \(G_1=I\).

    \item Compute the negative gradient direction for the
    Hessian-based metric represented by \(G_2=Q\).

    \item Show that the second direction coincides with the Newton
    direction.

    \item Show that a unit step along the Newton direction reaches the
    minimizer in one iteration.

    \item Explain geometrically how the Hessian metric compensates for
    the anisotropy of the quadratic cost.

    \item Explain why this interpretation does not imply that Newton's
    method is a first-order method.
\end{enumerate}
\end{exercise}

\begin{exercise}[From feasible tangents to the multiplier]
Let
\[
f:\mathcal V\to\mathcal W
\]
be smooth, let \(w\in\mathcal W\) be a regular value, and let
\[
\mathcal F_w=f^{-1}(w).
\]
Suppose that \(v\in\mathcal F_w\) is stationary for
\(J|_{\mathcal F_w}\).

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Starting from
    \[
    T_v\mathcal F_w=\ker\dd f_v,
    \]
    show that
    \[
    \dd J_v\in(\ker\dd f_v)^\circ.
    \]

    \item Use the annihilator identity
    \[
    (\ker L)^\circ=\operatorname{Im}L^*
    \]
    to prove that there exists
    \(\mu\in T_w^*\mathcal W\) satisfying
    \[
    \dd J_v=(\dd f_v)^*\mu.
    \]

    \item Explain precisely why regularity of the fiber makes the
    multiplier \(\mu\) unique.

    \item Write the same condition using the conventional plus-sign
    Lagrangian multiplier \(\lambda\).
\end{enumerate}
\end{exercise}

\begin{exercise}[Generalized Rayleigh-quotient problem]
Let
\[
J(v)=\frac12v^\top Av,
\qquad
f(v)=\frac12v^\top Bv,
\]
where
\[
A=A^\top,
\qquad
B=B^\top\succ0,
\]
and consider the fiber corresponding to \(w=1/2\).

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Compute \(\dd J_v\) and \(\dd f_v\).

    \item Derive the intrinsic multiplier equation
    \[
    \dd J_v=\mu\,\dd f_v.
    \]

    \item Use the selected inner product to obtain the generalized
    eigenvalue equation
    \[
    Av=\mu Bv.
    \]

    \item Define the generalized Rayleigh quotient
    \[
    \mathcal R_{A,B}(v)
    =
    \frac{v^\top Av}{v^\top Bv},
    \qquad
    v\neq0,
    \]
    and show that its stationary value at a generalized eigenvector is
    the corresponding generalized eigenvalue.

    \item Characterize the constrained stationary points on the fiber
    \(v^\top Bv=1\).
\end{enumerate}
\end{exercise}

\begin{exercise}[Projection and retraction on the sphere]
Let
\[
\mathcal F_{1/2}
=
\mathbb S^{n-1}
\subset\mathbb R^n,
\]
and let \(v\in\mathbb S^{n-1}\).

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Show that
    \[
    T_v\mathbb S^{n-1}
    =
    \{\xi\in\mathbb R^n:v^\top\xi=0\}.
    \]

    \item For an ambient vector \(\eta\in\mathbb R^n\), derive its
    orthogonal projection onto \(T_v\mathbb S^{n-1}\).

    \item Show that, for a nonzero
    \(\xi\in T_v\mathbb S^{n-1}\), the finite ambient addition
    \(v+\xi\) does not generally belong to the sphere.

    \item Consider the normalization map
    \[
    R_v(\xi)
    =
    \frac{v+\xi}{\|v+\xi\|}.
    \]
    Verify that it maps sufficiently small tangent displacements back
    to the sphere.

    \item Verify the two defining retraction properties at
    \(\xi=0_v\).

    \item Explain the distinct roles played by tangent projection and
    retraction in one constrained gradient iteration.
\end{enumerate}
\end{exercise}

\begin{exercise}[Optional: sequential positive-definite maps]
Let
\[
d=
\begin{bmatrix}
10\\
1
\end{bmatrix},
\qquad
P_1=
\begin{bmatrix}
1&0\\
0&10
\end{bmatrix},
\qquad
P_2=
\begin{bmatrix}
1&-2\\
-2&5
\end{bmatrix}.
\]

\begin{enumerate}[label=(\alph*),leftmargin=*]
    \item Verify that \(P_1\) and \(P_2\) are symmetric positive
    definite.

    \item Show that
    \[
    -P_1d
    \]
    is a descent direction for the differential represented by \(d\).

    \item Compute
    \[
    -P_2P_1d
    \]
    and show that it is an ascent direction.

    \item Explain why interpreting both \(P_1\) and \(P_2\) as
    successive inverse-metric maps is not type-correct.

    \item State the different interpretation required to regard
    \(P_2\) as acting on the vector produced by \(P_1\).
\end{enumerate}
\end{exercise}

\end{document}
