Modeling and Analysis of Mechanical Systems — Gradient-Based Optimization
The derivatives post showed that the gradient points uphill and the Hessian tells cups from domes. This post turns that into algorithms: the steepest descent method, how to pick its step size, why it is slow, and how the conjugate gradient method fixes it. The running example is a quadratic function, because near any minimum every smooth function looks quadratic (its Taylor series), and because minimizing a quadratic is the same as solving $A\vec x=\vec b$.
1. The landscape of optimization methods
| Family | Methods | Uses | Best for |
|---|---|---|---|
| Gradient-based | steepest descent, conjugate gradient, Newton / quasi-Newton (BFGS) | $\nabla f$ (and sometimes $H$) | smooth functions, many variables, cheap gradients |
| Non-gradient (derivative-free) | stochastic: genetic algorithms, simulated annealing, particle swarm | only values of $f$ | noisy, discontinuous or multi-modal functions |
| Bayesian optimization | values of $f$ + a surrogate model | expensive black-box functions (a simulation or experiment per evaluation) |
Gradient-based methods converge fast but only to a local optimum near the start. Non-gradient methods explore more globally but need many more function evaluations.
2. Background: quadratic forms and positive definite matrices
For $\vec x\in\mathbb R^{m}$ and $A\in\mathbb R^{m\times m}$, the quadratic form
\[Q=\vec x^TA\vec x\qquad (1\times m)(m\times m)(m\times1)=1\times1\]is a scalar. For $2\times2$:
\[\vec x^TA\vec x=\begin{bmatrix}x_1&x_2\end{bmatrix}\begin{bmatrix}a_{11}x_1+a_{12}x_2\\a_{21}x_1+a_{22}x_2\end{bmatrix} =a_{11}x_1^2+(a_{12}+a_{21})x_1x_2+a_{22}x_2^2 ,\]and for symmetric $A$ ($a_{12}=a_{21}$), $Q=a_{11}x_1^2+2a_{12}x_1x_2+a_{22}x_2^2$. Only the symmetric part of $A$ affects $Q$, so we always take $A$ symmetric.
A symmetric $A$ is
- positive definite (PD) if $Q>0$ for every $\vec x\ne\vec0$ $\iff$ all eigenvalues $\lambda_i>0$;
- positive semi-definite (PSD) if $Q\ge0$ for every $\vec x$ $\iff$ all $\lambda_i\ge0$.
Consequences of PD. Since $\det A=\prod\lambda_i$ and $\operatorname{tr}A=\sum\lambda_i$, a PD matrix has $\det A>0$ and $\operatorname{tr}A>0$. No eigenvalue is zero, so $A$ is invertible, and $A^{-1}$ (eigenvalues $1/\lambda_i>0$) is PD too.
The converse fails: $\det A>0$ and $\operatorname{tr}A>0$ do not imply PD for $3\times3$ and larger. $\operatorname{diag}(-1,-1,4)$ has $\det=4$, $\operatorname{tr}=2$, but two negative eigenvalues. For a reliable test use Sylvester’s criterion.
Sylvester’s criterion. A symmetric matrix is PD if and only if all its leading principal minors (determinants of the upper-left $1\times1$, $2\times2$, …, $m\times m$ blocks) are positive.
Example.
\[A=\begin{bmatrix}4&2&1\\2&3&2\\1&2&3\end{bmatrix}\ (\text{symmetric})\] \[P_1=4>0,\qquad P_2=\begin{vmatrix}4&2\\2&3\end{vmatrix}=12-4=8>0,\] \[P_3=4\begin{vmatrix}3&2\\2&3\end{vmatrix}-2\begin{vmatrix}2&2\\1&3\end{vmatrix}+1\begin{vmatrix}2&3\\1&2\end{vmatrix}=4(5)-2(4)+1(1)=13>0 .\]All three are positive, so $A$ is PD. (Check: its eigenvalues are $0.769,\ 2.517,\ 6.714$, all positive, with product $13=P_3$.)
What PD means for optimization. If the Hessian is PD at a critical point, the surface is locally a bowl opening upward and the point is a strict local minimum. If the Hessian is PD everywhere (a strictly convex function, such as a quadratic with PD $A$), there is at most one critical point, and it is the unique global minimum. PD at one point alone does not guarantee a global minimum.
3. Minimizing a quadratic is solving $A\vec x=\vec b$
Define the scalar objective
\[G(\vec x)=\tfrac12\vec x^TA\vec x-\vec b^T\vec x,\qquad \vec b,\vec x\in\mathbb R^{m}\ (\vec b^T\vec x\ \text{is}\ 1\times1).\]For $2\times2$, differentiating term by term and using $a_{12}=a_{21}$:
\[\nabla G=\begin{bmatrix}\partial G/\partial x_1\\\partial G/\partial x_2\end{bmatrix} =\begin{bmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\end{bmatrix}\begin{bmatrix}x_1\\x_2\end{bmatrix}-\begin{bmatrix}b_1\\b_2\end{bmatrix} =A\vec x-\vec b .\](The $\tfrac12$ cancels the 2 from differentiating $x_i^2$ and from the two equal cross terms.) The Hessian is $H=A$. Setting $\nabla G=\vec 0$:
\[A\vec x=\vec b\qquad\Big(a_{11}x_1+a_{12}x_2=b_1,\ \ a_{21}x_1+a_{22}x_2=b_2\Big).\]If $A$ is symmetric PD, $G$ is a bowl and its unique minimum is the solution of $A\vec x=\vec b$. Minimizing $G$ and solving the linear system are the same problem. This is how huge sparse systems (finite elements, CFD) are solved iteratively. Two useful facts follow:
- The negative gradient is the residual: $-\nabla G=\vec b-A\vec x=\vec r$, the amount by which the current guess fails the equations.
- If $A$ is not PD, $\nabla G=\vec0$ is a saddle or a maximum, and descent methods are no longer guaranteed to work.
4. The steepest descent method
Start with an initial guess $\vec x^0$ and update
\[\vec x^{k+1}=\vec x^k+\alpha^k\vec s^k,\qquad \vec s^k=-\nabla f(\vec x^k),\]i.e. $\vec x^{k+1}=\vec x^k-\alpha^k\nabla f^k$. Here $\vec s^k$ is the search direction (steepest descent, §2 of the derivatives post), and $\alpha^k>0$ is the step size at the $k$-th iteration (the learning rate in machine learning).
Stopping. When $\nabla f^k=\vec0$ the update gives $\vec x^{k+1}=\vec x^k$: the method has stopped. In practice stop when $\lVert\nabla f^k\rVert$ or $\lVert\vec x^{k+1}-\vec x^k\rVert$ falls below a tolerance. A zero gradient can mean a minimum, a maximum or a saddle, so check the Hessian (or that $f$ decreased) at the end.
Choosing $\alpha^k$. Three options:
- Constant $\alpha$. Simple, but must be small enough to be stable. For a quadratic, fixed-step descent converges only if $\alpha<2/\lambda_\text{max}(A)$.
- Variable $\alpha^k$ from a rule, e.g. backtracking: start large and halve until $f$ decreases enough.
- Optimal $\alpha^k$ (exact line search). Choose $\alpha^k$ to minimize $f$ along the line $\vec x^k+\alpha\vec s^k$: \(\frac{d}{d\alpha}f(\vec x^k+\alpha\vec s^k)=\nabla f(\vec x^{k+1})\cdot\vec s^k=0 .\)
Optimal step for the quadratic $G$. With $\vec g^k=\nabla G(\vec x^k)=A\vec x^k-\vec b$ and $\vec s^k=-\vec g^k$:
\[\frac{d}{d\alpha}G(\vec x^k+\alpha\vec s^k)=\vec s^{kT}\big(A(\vec x^k+\alpha\vec s^k)-\vec b\big)=\vec s^{kT}\vec g^k+\alpha\,\vec s^{kT}A\vec s^k=0 \;\Rightarrow\; \alpha^k=\frac{\vec g^{kT}\vec g^k}{\vec g^{kT}A\,\vec g^k}.\]The denominator is a quadratic form, positive because $A$ is PD, so $\alpha^k>0$.
Consequence: successive directions are orthogonal. The line-search condition says the new gradient is perpendicular to the old direction, $\nabla f(\vec x^{k+1})\cdot\vec s^k=0$. Since $\vec s^{k+1}=-\nabla f(\vec x^{k+1})$,
\[\vec s^{k+1}\cdot\vec s^k=0 .\]With exact line search, every turn is a right angle. You walk downhill until the path stops descending, which is exactly where you are crossing a contour tangentially, then turn 90°. That produces the characteristic zig-zag.
5. Worked example
Minimize $G(\vec x)=\tfrac12\vec x^TA\vec x-\vec b^T\vec x$ with the PD matrix $A$ of §2 and $\vec b=(7,\ 7,\ 6)^T$, starting from $\vec x^0=\vec 0$. The exact answer is $\vec x^=(1,1,1)^T$ with $G^=-10$.
Iteration 1.
\[\vec g^0=A\vec 0-\vec b=\begin{bmatrix}-7\\-7\\-6\end{bmatrix},\quad \vec g^{0T}\vec g^0=134,\quad \vec g^{0T}A\vec g^0=899,\quad \alpha^0=\frac{134}{899}=0.149,\] \[\vec x^1=\vec x^0-\alpha^0\vec g^0=\begin{bmatrix}1.043\\1.043\\0.894\end{bmatrix},\qquad G(\vec x^1)=-9.987 .\]Iteration 2. $\vec g^1=A\vec x^1-\vec b=(0.155,\ 0.006,\ -0.187)^T$. Check orthogonality: $\vec g^1\cdot\vec g^0=-7(0.155)-7(0.006)-6(-0.187)\approx0$ ✓. Then $\alpha^1=0.415$ and $\vec x^2=(0.979,\ 1.041,\ 0.972)^T$.
| $k$ | $\vec x^k$ | $\alpha^k$ | $G(\vec x^k)$ | $\lVert\nabla G^k\rVert$ |
|---|---|---|---|---|
| 0 | $(0,\ 0,\ 0)$ | 0.149 | 0 | 11.58 |
| 1 | $(1.043,\ 1.043,\ 0.894)$ | 0.415 | −9.9867 | 0.243 |
| 2 | $(0.979,\ 1.041,\ 0.972)$ | 0.687 | −9.9989 | 0.045 |
| 3 | $(0.999,\ 1.024,\ 0.988)$ | 0.169 | −9.9995 | 0.055 |
| 9 | $(1.000,\ 1.003,\ 0.999)$ | 0.177 | −10.0000 | 0.0054 |
| 34 | $(1,\ 1,\ 1)$ | — | −10 | $<10^{-6}$ |
Most of the progress happens in the first step. After that the method zig-zags slowly, needing 34 iterations to reach $\lVert\nabla G\rVert<10^{-6}$ — for a problem with only 3 unknowns. The gradient norm doesn’t even decrease every iteration (rows 2→3); only $G$ is guaranteed to.
Fixed step size. Here $2/\lambda_\text{max}=2/6.714=0.298$. With $\alpha=0.1$ or $0.25$ the method converges; with $\alpha=0.3$ it diverges ($\vec x$ blows up to around $-16$ after 200 steps). Too large a learning rate overshoots across the valley further each time.
On a log scale the difference is stark: steepest descent decreases the gradient roughly geometrically (a straight-ish line, with bumps), while conjugate gradient drops to round-off level at iteration 3.
{"data":[{"type":"scatter","x":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"y":[11.58,0.2426,0.04492,0.05546,0.01888,0.02302,0.00888,0.01096,0.004386,0.005442,0.002195,0.002726,0.001101,0.001367,0.0005522,0.0006861,0.0002771,0.0003443,0.000139,0.0001727,6.976e-05,8.667e-05,3.5e-05,4.349e-05,1.756e-05,2.182e-05,8.813e-06,1.095e-05,4.422e-06,5.494e-06,2.219e-06,2.757e-06,1.113e-06,1.383e-06,5.586e-07,6.941e-07,2.803e-07,3.483e-07,1.406e-07,1.747e-07,7.057e-08],"mode":"lines+markers","name":"steepest descent","line":{"color":"crimson"}},{"type":"scatter","x":[0,1,2,3],"y":[11.58,0.2426,0.04269,2.23e-14],"mode":"lines+markers","name":"conjugate gradient","line":{"color":"green","width":3}},{"type":"scatter","x":[0,40],"y":[1e-06,1e-06],"mode":"lines","line":{"dash":"dot","color":"gray"},"name":"tolerance 10\u207b\u2076"}],"layout":{"title":{"text":"Convergence on the 3\u00d73 example (\u03ba = 8.7)"},"xaxis":{"title":{"text":"iteration k"}},"yaxis":{"title":{"text":"\u2016\u2207G\u2016"},"type":"log","exponentformat":"power"},"height":450,"legend":{"orientation":"h","y":-0.2}}}
6. Why steepest descent is slow: the condition number
How fast steepest descent converges depends on the shape of the bowl, measured by the condition number $\kappa=\lambda_\text{max}/\lambda_\text{min}$. With exact line search, the error (in the $A$-norm) shrinks each iteration by at least
\[\frac{\kappa-1}{\kappa+1}.\]For our $A$, $\kappa=6.714/0.769=8.7$, giving a factor of about $0.79$ per step — slow. A round bowl ($\kappa=1$) converges in one step, because $-\nabla G$ points straight at the minimum. A long, narrow valley ($\kappa\gg1$) makes the gradient point mostly across the valley, not along it — exactly what we saw on the elliptical ski hill. Rescaling the variables so the bowl is rounder (preconditioning) is the standard cure, and is the same idea as standardizing features before PCA.
7. A better direction: conjugate gradient
Steepest descent wastes effort by repeatedly undoing earlier progress along old directions. The conjugate gradient (CG) method chooses each new direction to be $A$-conjugate to the previous ones, $\vec s^{(i)T}A\,\vec s^{(j)}=0$ for $i\ne j$, instead of merely orthogonal. Then a step never spoils the minimization already done along earlier directions. For an $m\times m$ symmetric PD system, CG reaches the exact solution in at most $m$ iterations (in exact arithmetic):
\[\vec s^{k+1}=-\nabla G^{k+1}+\beta^k\vec s^k,\qquad \beta^k=\frac{\lVert\nabla G^{k+1}\rVert^2}{\lVert\nabla G^k\rVert^2}\quad\text{(Fletcher–Reeves)}.\]The only change from steepest descent is the “memory” term $\beta^k\vec s^k$. On our example:
| Method | Iterations to $\lVert\nabla G\rVert<10^{-6}$ |
|---|---|
| Steepest descent | 34 |
| Conjugate gradient | 3 (exact, $= m$) |
The first CG step is identical to steepest descent; by step 3 it lands on $(1,1,1)$ with residual $\sim10^{-14}$. For large $m$, CG is usually stopped long before $m$ steps, since it converges in about $\sqrt\kappa$ rather than $\kappa$ iterations. For non-quadratic $f$, nonlinear CG and quasi-Newton (BFGS) methods are the practical workhorses; Newton’s method (derivatives post §11) converges fastest per iteration but needs the Hessian.
Seeing the zig-zag. A 2-D bowl makes the geometry visible. Take $G=\tfrac12\vec x^TA\vec x$ with $A=\operatorname{diag}(1,10)$ ($\kappa=10$), starting from $(10,1)$ — the worst-case start for this bowl. Each red steepest-descent step stops where it is tangent to a contour and turns 90°, shrinking the error by only $(\kappa-1)/(\kappa+1)=9/11$ per step; after 12 steps it is still about $0.9$ from the minimum. The green conjugate-gradient path reaches the minimum in exactly 2 steps ($=m$). Drag to zoom in on the corners and check that they are right angles.
{"data":[{"type":"contour","x":[-11.0,-10.75,-10.5,-10.25,-10.0,-9.75,-9.5,-9.25,-9.0,-8.75,-8.5,-8.25,-8.0,-7.75,-7.5,-7.25,-7.0,-6.75,-6.5,-6.25,-6.0,-5.75,-5.5,-5.25,-5.0,-4.75,-4.5,-4.25,-4.0,-3.75,-3.5,-3.25,-3.0,-2.75,-2.5,-2.25,-2.0,-1.75,-1.5,-1.25,-1.0,-0.75,-0.5,-0.25,0.0,0.25,0.5,0.75,1.0,1.25,1.5,1.75,2.0,2.25,2.5,2.75,3.0,3.25,3.5,3.75,4.0,4.25,4.5,4.75,5.0,5.25,5.5,5.75,6.0,6.25,6.5,6.75,7.0,7.25,7.5,7.75,8.0,8.25,8.5,8.75,9.0,9.25,9.5,9.75,10.0,10.25,10.5,10.75,11.0],"y":[-3.6,-3.4,-3.2,-3.0,-2.8,-2.6,-2.4,-2.2,-2.0,-1.8,-1.6,-1.4,-1.2,-1.0,-0.8,-0.6,-0.4,-0.2,0.0,0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,2.0,2.2,2.4,2.6,2.8,3.0,3.2,3.4,3.6],"z":[[125.3,122.58,119.93,117.33,114.8,112.33,109.93,107.58,105.3,103.08,100.93,98.83,96.8,94.83,92.93,91.08,89.3,87.58,85.93,84.33,82.8,81.33,79.93,78.58,77.3,76.08,74.93,73.83,72.8,71.83,70.93,70.08,69.3,68.58,67.93,67.33,66.8,66.33,65.93,65.58,65.3,65.08,64.93,64.83,64.8,64.83,64.93,65.08,65.3,65.58,65.93,66.33,66.8,67.33,67.93,68.58,69.3,70.08,70.93,71.83,72.8,73.83,74.93,76.08,77.3,78.58,79.93,81.33,82.8,84.33,85.93,87.58,89.3,91.08,92.93,94.83,96.8,98.83,100.93,103.08,105.3,107.58,109.93,112.33,114.8,117.33,119.93,122.58,125.3],[118.3,115.58,112.92,110.33,107.8,105.33,102.92,100.58,98.3,96.08,93.92,91.83,89.8,87.83,85.92,84.08,82.3,80.58,78.92,77.33,75.8,74.33,72.92,71.58,70.3,69.08,67.92,66.83,65.8,64.83,63.92,63.08,62.3,61.58,60.92,60.33,59.8,59.33,58.92,58.58,58.3,58.08,57.92,57.83,57.8,57.83,57.92,58.08,58.3,58.58,58.92,59.33,59.8,60.33,60.92,61.58,62.3,63.08,63.92,64.83,65.8,66.83,67.92,69.08,70.3,71.58,72.92,74.33,75.8,77.33,78.92,80.58,82.3,84.08,85.92,87.83,89.8,91.83,93.92,96.08,98.3,100.58,102.92,105.33,107.8,110.33,112.92,115.58,118.3],[111.7,108.98,106.33,103.73,101.2,98.73,96.33,93.98,91.7,89.48,87.33,85.23,83.2,81.23,79.33,77.48,75.7,73.98,72.33,70.73,69.2,67.73,66.33,64.98,63.7,62.48,61.33,60.23,59.2,58.23,57.33,56.48,55.7,54.98,54.33,53.73,53.2,52.73,52.33,51.98,51.7,51.48,51.33,51.23,51.2,51.23,51.33,51.48,51.7,51.98,52.33,52.73,53.2,53.73,54.33,54.98,55.7,56.48,57.33,58.23,59.2,60.23,61.33,62.48,63.7,64.98,66.33,67.73,69.2,70.73,72.33,73.98,75.7,77.48,79.33,81.23,83.2,85.23,87.33,89.48,91.7,93.98,96.33,98.73,101.2,103.73,106.33,108.98,111.7],[105.5,102.78,100.12,97.53,95.0,92.53,90.12,87.78,85.5,83.28,81.12,79.03,77.0,75.03,73.12,71.28,69.5,67.78,66.12,64.53,63.0,61.53,60.12,58.78,57.5,56.28,55.12,54.03,53.0,52.03,51.12,50.28,49.5,48.78,48.12,47.53,47.0,46.53,46.12,45.78,45.5,45.28,45.12,45.03,45.0,45.03,45.12,45.28,45.5,45.78,46.12,46.53,47.0,47.53,48.12,48.78,49.5,50.28,51.12,52.03,53.0,54.03,55.12,56.28,57.5,58.78,60.12,61.53,63.0,64.53,66.12,67.78,69.5,71.28,73.12,75.03,77.0,79.03,81.12,83.28,85.5,87.78,90.12,92.53,95.0,97.53,100.12,102.78,105.5],[99.7,96.98,94.32,91.73,89.2,86.73,84.32,81.98,79.7,77.48,75.32,73.23,71.2,69.23,67.32,65.48,63.7,61.98,60.32,58.73,57.2,55.73,54.32,52.98,51.7,50.48,49.32,48.23,47.2,46.23,45.32,44.48,43.7,42.98,42.32,41.73,41.2,40.73,40.32,39.98,39.7,39.48,39.32,39.23,39.2,39.23,39.32,39.48,39.7,39.98,40.32,40.73,41.2,41.73,42.32,42.98,43.7,44.48,45.32,46.23,47.2,48.23,49.32,50.48,51.7,52.98,54.32,55.73,57.2,58.73,60.32,61.98,63.7,65.48,67.32,69.23,71.2,73.23,75.32,77.48,79.7,81.98,84.32,86.73,89.2,91.73,94.32,96.98,99.7],[94.3,91.58,88.93,86.33,83.8,81.33,78.93,76.58,74.3,72.08,69.93,67.83,65.8,63.83,61.92,60.08,58.3,56.58,54.92,53.33,51.8,50.33,48.92,47.58,46.3,45.08,43.92,42.83,41.8,40.83,39.93,39.08,38.3,37.58,36.93,36.33,35.8,35.33,34.93,34.58,34.3,34.08,33.93,33.83,33.8,33.83,33.93,34.08,34.3,34.58,34.93,35.33,35.8,36.33,36.93,37.58,38.3,39.08,39.93,40.83,41.8,42.83,43.92,45.08,46.3,47.58,48.92,50.33,51.8,53.33,54.92,56.58,58.3,60.08,61.92,63.83,65.8,67.83,69.93,72.08,74.3,76.58,78.93,81.33,83.8,86.33,88.93,91.58,94.3],[89.3,86.58,83.92,81.33,78.8,76.33,73.92,71.58,69.3,67.08,64.92,62.83,60.8,58.83,56.92,55.08,53.3,51.58,49.92,48.33,46.8,45.33,43.92,42.58,41.3,40.08,38.92,37.83,36.8,35.83,34.92,34.08,33.3,32.58,31.92,31.33,30.8,30.33,29.92,29.58,29.3,29.08,28.92,28.83,28.8,28.83,28.92,29.08,29.3,29.58,29.92,30.33,30.8,31.33,31.92,32.58,33.3,34.08,34.92,35.83,36.8,37.83,38.92,40.08,41.3,42.58,43.92,45.33,46.8,48.33,49.92,51.58,53.3,55.08,56.92,58.83,60.8,62.83,64.92,67.08,69.3,71.58,73.92,76.33,78.8,81.33,83.92,86.58,89.3],[84.7,81.98,79.32,76.73,74.2,71.73,69.32,66.98,64.7,62.48,60.32,58.23,56.2,54.23,52.32,50.48,48.7,46.98,45.32,43.73,42.2,40.73,39.33,37.98,36.7,35.48,34.33,33.23,32.2,31.23,30.33,29.48,28.7,27.98,27.33,26.73,26.2,25.73,25.33,24.98,24.7,24.48,24.33,24.23,24.2,24.23,24.33,24.48,24.7,24.98,25.33,25.73,26.2,26.73,27.33,27.98,28.7,29.48,30.33,31.23,32.2,33.23,34.33,35.48,36.7,37.98,39.33,40.73,42.2,43.73,45.32,46.98,48.7,50.48,52.32,54.23,56.2,58.23,60.32,62.48,64.7,66.98,69.32,71.73,74.2,76.73,79.32,81.98,84.7],[80.5,77.78,75.12,72.53,70.0,67.53,65.12,62.78,60.5,58.28,56.12,54.03,52.0,50.03,48.12,46.28,44.5,42.78,41.12,39.53,38.0,36.53,35.12,33.78,32.5,31.28,30.12,29.03,28.0,27.03,26.12,25.28,24.5,23.78,23.12,22.53,22.0,21.53,21.12,20.78,20.5,20.28,20.12,20.03,20.0,20.03,20.12,20.28,20.5,20.78,21.12,21.53,22.0,22.53,23.12,23.78,24.5,25.28,26.12,27.03,28.0,29.03,30.12,31.28,32.5,33.78,35.12,36.53,38.0,39.53,41.12,42.78,44.5,46.28,48.12,50.03,52.0,54.03,56.12,58.28,60.5,62.78,65.12,67.53,70.0,72.53,75.12,77.78,80.5],[76.7,73.98,71.32,68.73,66.2,63.73,61.32,58.98,56.7,54.48,52.32,50.23,48.2,46.23,44.32,42.48,40.7,38.98,37.33,35.73,34.2,32.73,31.33,29.98,28.7,27.48,26.33,25.23,24.2,23.23,22.33,21.48,20.7,19.98,19.33,18.73,18.2,17.73,17.33,16.98,16.7,16.48,16.33,16.23,16.2,16.23,16.33,16.48,16.7,16.98,17.33,17.73,18.2,18.73,19.33,19.98,20.7,21.48,22.33,23.23,24.2,25.23,26.33,27.48,28.7,29.98,31.33,32.73,34.2,35.73,37.33,38.98,40.7,42.48,44.32,46.23,48.2,50.23,52.32,54.48,56.7,58.98,61.32,63.73,66.2,68.73,71.32,73.98,76.7],[73.3,70.58,67.92,65.33,62.8,60.33,57.92,55.58,53.3,51.08,48.92,46.83,44.8,42.83,40.93,39.08,37.3,35.58,33.93,32.33,30.8,29.33,27.93,26.58,25.3,24.08,22.93,21.83,20.8,19.83,18.93,18.08,17.3,16.58,15.93,15.33,14.8,14.33,13.93,13.58,13.3,13.08,12.93,12.83,12.8,12.83,12.93,13.08,13.3,13.58,13.93,14.33,14.8,15.33,15.93,16.58,17.3,18.08,18.93,19.83,20.8,21.83,22.93,24.08,25.3,26.58,27.93,29.33,30.8,32.33,33.93,35.58,37.3,39.08,40.93,42.83,44.8,46.83,48.92,51.08,53.3,55.58,57.92,60.33,62.8,65.33,67.92,70.58,73.3],[70.3,67.58,64.92,62.33,59.8,57.33,54.92,52.58,50.3,48.08,45.92,43.83,41.8,39.83,37.92,36.08,34.3,32.58,30.92,29.33,27.8,26.33,24.92,23.58,22.3,21.08,19.92,18.83,17.8,16.83,15.92,15.08,14.3,13.58,12.92,12.33,11.8,11.33,10.92,10.58,10.3,10.08,9.92,9.83,9.8,9.83,9.92,10.08,10.3,10.58,10.92,11.33,11.8,12.33,12.92,13.58,14.3,15.08,15.92,16.83,17.8,18.83,19.92,21.08,22.3,23.58,24.92,26.33,27.8,29.33,30.92,32.58,34.3,36.08,37.92,39.83,41.8,43.83,45.92,48.08,50.3,52.58,54.92,57.33,59.8,62.33,64.92,67.58,70.3],[67.7,64.98,62.32,59.73,57.2,54.73,52.32,49.98,47.7,45.48,43.32,41.23,39.2,37.23,35.32,33.48,31.7,29.98,28.32,26.73,25.2,23.73,22.32,20.98,19.7,18.48,17.32,16.23,15.2,14.23,13.32,12.48,11.7,10.98,10.32,9.73,9.2,8.73,8.32,7.98,7.7,7.48,7.32,7.23,7.2,7.23,7.32,7.48,7.7,7.98,8.32,8.73,9.2,9.73,10.32,10.98,11.7,12.48,13.32,14.23,15.2,16.23,17.32,18.48,19.7,20.98,22.32,23.73,25.2,26.73,28.32,29.98,31.7,33.48,35.32,37.23,39.2,41.23,43.32,45.48,47.7,49.98,52.32,54.73,57.2,59.73,62.32,64.98,67.7],[65.5,62.78,60.12,57.53,55.0,52.53,50.12,47.78,45.5,43.28,41.12,39.03,37.0,35.03,33.12,31.28,29.5,27.78,26.12,24.53,23.0,21.53,20.12,18.78,17.5,16.28,15.12,14.03,13.0,12.03,11.12,10.28,9.5,8.78,8.12,7.53,7.0,6.53,6.12,5.78,5.5,5.28,5.12,5.03,5.0,5.03,5.12,5.28,5.5,5.78,6.12,6.53,7.0,7.53,8.12,8.78,9.5,10.28,11.12,12.03,13.0,14.03,15.12,16.28,17.5,18.78,20.12,21.53,23.0,24.53,26.12,27.78,29.5,31.28,33.12,35.03,37.0,39.03,41.12,43.28,45.5,47.78,50.12,52.53,55.0,57.53,60.12,62.78,65.5],[63.7,60.98,58.32,55.73,53.2,50.73,48.32,45.98,43.7,41.48,39.32,37.23,35.2,33.23,31.32,29.48,27.7,25.98,24.32,22.73,21.2,19.73,18.32,16.98,15.7,14.48,13.32,12.23,11.2,10.23,9.32,8.48,7.7,6.98,6.32,5.73,5.2,4.73,4.32,3.98,3.7,3.48,3.32,3.23,3.2,3.23,3.32,3.48,3.7,3.98,4.32,4.73,5.2,5.73,6.32,6.98,7.7,8.48,9.32,10.23,11.2,12.23,13.32,14.48,15.7,16.98,18.32,19.73,21.2,22.73,24.32,25.98,27.7,29.48,31.32,33.23,35.2,37.23,39.32,41.48,43.7,45.98,48.32,50.73,53.2,55.73,58.32,60.98,63.7],[62.3,59.58,56.92,54.33,51.8,49.33,46.92,44.58,42.3,40.08,37.92,35.83,33.8,31.83,29.92,28.08,26.3,24.58,22.92,21.33,19.8,18.33,16.92,15.58,14.3,13.08,11.92,10.83,9.8,8.83,7.93,7.08,6.3,5.58,4.93,4.33,3.8,3.33,2.93,2.58,2.3,2.08,1.93,1.83,1.8,1.83,1.93,2.08,2.3,2.58,2.93,3.33,3.8,4.33,4.93,5.58,6.3,7.08,7.93,8.83,9.8,10.83,11.92,13.08,14.3,15.58,16.92,18.33,19.8,21.33,22.92,24.58,26.3,28.08,29.92,31.83,33.8,35.83,37.92,40.08,42.3,44.58,46.92,49.33,51.8,54.33,56.92,59.58,62.3],[61.3,58.58,55.92,53.33,50.8,48.33,45.92,43.58,41.3,39.08,36.92,34.83,32.8,30.83,28.92,27.08,25.3,23.58,21.92,20.33,18.8,17.33,15.92,14.58,13.3,12.08,10.92,9.83,8.8,7.83,6.92,6.08,5.3,4.58,3.92,3.33,2.8,2.33,1.92,1.58,1.3,1.08,0.92,0.83,0.8,0.83,0.92,1.08,1.3,1.58,1.92,2.33,2.8,3.33,3.92,4.58,5.3,6.08,6.92,7.83,8.8,9.83,10.92,12.08,13.3,14.58,15.92,17.33,18.8,20.33,21.92,23.58,25.3,27.08,28.92,30.83,32.8,34.83,36.92,39.08,41.3,43.58,45.92,48.33,50.8,53.33,55.92,58.58,61.3],[60.7,57.98,55.32,52.73,50.2,47.73,45.32,42.98,40.7,38.48,36.33,34.23,32.2,30.23,28.32,26.48,24.7,22.98,21.32,19.73,18.2,16.73,15.32,13.98,12.7,11.48,10.32,9.23,8.2,7.23,6.32,5.48,4.7,3.98,3.32,2.73,2.2,1.73,1.32,0.98,0.7,0.48,0.32,0.23,0.2,0.23,0.32,0.48,0.7,0.98,1.32,1.73,2.2,2.73,3.32,3.98,4.7,5.48,6.32,7.23,8.2,9.23,10.32,11.48,12.7,13.98,15.32,16.73,18.2,19.73,21.32,22.98,24.7,26.48,28.32,30.23,32.2,34.23,36.33,38.48,40.7,42.98,45.32,47.73,50.2,52.73,55.32,57.98,60.7],[60.5,57.78,55.12,52.53,50.0,47.53,45.12,42.78,40.5,38.28,36.12,34.03,32.0,30.03,28.12,26.28,24.5,22.78,21.12,19.53,18.0,16.53,15.12,13.78,12.5,11.28,10.12,9.03,8.0,7.03,6.12,5.28,4.5,3.78,3.12,2.53,2.0,1.53,1.12,0.78,0.5,0.28,0.12,0.03,0.0,0.03,0.12,0.28,0.5,0.78,1.12,1.53,2.0,2.53,3.12,3.78,4.5,5.28,6.12,7.03,8.0,9.03,10.12,11.28,12.5,13.78,15.12,16.53,18.0,19.53,21.12,22.78,24.5,26.28,28.12,30.03,32.0,34.03,36.12,38.28,40.5,42.78,45.12,47.53,50.0,52.53,55.12,57.78,60.5],[60.7,57.98,55.32,52.73,50.2,47.73,45.32,42.98,40.7,38.48,36.33,34.23,32.2,30.23,28.32,26.48,24.7,22.98,21.32,19.73,18.2,16.73,15.32,13.98,12.7,11.48,10.32,9.23,8.2,7.23,6.32,5.48,4.7,3.98,3.32,2.73,2.2,1.73,1.33,0.98,0.7,0.48,0.33,0.23,0.2,0.23,0.33,0.48,0.7,0.98,1.33,1.73,2.2,2.73,3.32,3.98,4.7,5.48,6.32,7.23,8.2,9.23,10.32,11.48,12.7,13.98,15.32,16.73,18.2,19.73,21.32,22.98,24.7,26.48,28.32,30.23,32.2,34.23,36.33,38.48,40.7,42.98,45.32,47.73,50.2,52.73,55.32,57.98,60.7],[61.3,58.58,55.92,53.33,50.8,48.33,45.92,43.58,41.3,39.08,36.92,34.83,32.8,30.83,28.92,27.08,25.3,23.58,21.92,20.33,18.8,17.33,15.92,14.58,13.3,12.08,10.92,9.83,8.8,7.83,6.92,6.08,5.3,4.58,3.92,3.33,2.8,2.33,1.92,1.58,1.3,1.08,0.92,0.83,0.8,0.83,0.92,1.08,1.3,1.58,1.92,2.33,2.8,3.33,3.92,4.58,5.3,6.08,6.92,7.83,8.8,9.83,10.92,12.08,13.3,14.58,15.92,17.33,18.8,20.33,21.92,23.58,25.3,27.08,28.92,30.83,32.8,34.83,36.92,39.08,41.3,43.58,45.92,48.33,50.8,53.33,55.92,58.58,61.3],[62.3,59.58,56.92,54.33,51.8,49.33,46.92,44.58,42.3,40.08,37.92,35.83,33.8,31.83,29.92,28.08,26.3,24.58,22.92,21.33,19.8,18.33,16.92,15.58,14.3,13.08,11.92,10.83,9.8,8.83,7.93,7.08,6.3,5.58,4.93,4.33,3.8,3.33,2.93,2.58,2.3,2.08,1.93,1.83,1.8,1.83,1.93,2.08,2.3,2.58,2.93,3.33,3.8,4.33,4.93,5.58,6.3,7.08,7.93,8.83,9.8,10.83,11.92,13.08,14.3,15.58,16.92,18.33,19.8,21.33,22.92,24.58,26.3,28.08,29.92,31.83,33.8,35.83,37.92,40.08,42.3,44.58,46.92,49.33,51.8,54.33,56.92,59.58,62.3],[63.7,60.98,58.32,55.73,53.2,50.73,48.32,45.98,43.7,41.48,39.33,37.23,35.2,33.23,31.33,29.48,27.7,25.98,24.33,22.73,21.2,19.73,18.33,16.98,15.7,14.48,13.33,12.23,11.2,10.23,9.33,8.48,7.7,6.98,6.33,5.73,5.2,4.73,4.33,3.98,3.7,3.48,3.33,3.23,3.2,3.23,3.33,3.48,3.7,3.98,4.33,4.73,5.2,5.73,6.33,6.98,7.7,8.48,9.33,10.23,11.2,12.23,13.33,14.48,15.7,16.98,18.33,19.73,21.2,22.73,24.33,25.98,27.7,29.48,31.33,33.23,35.2,37.23,39.33,41.48,43.7,45.98,48.32,50.73,53.2,55.73,58.32,60.98,63.7],[65.5,62.78,60.13,57.53,55.0,52.53,50.13,47.78,45.5,43.28,41.13,39.03,37.0,35.03,33.13,31.28,29.5,27.78,26.13,24.53,23.0,21.53,20.13,18.78,17.5,16.28,15.13,14.03,13.0,12.03,11.13,10.28,9.5,8.78,8.13,7.53,7.0,6.53,6.13,5.78,5.5,5.28,5.13,5.03,5.0,5.03,5.13,5.28,5.5,5.78,6.13,6.53,7.0,7.53,8.13,8.78,9.5,10.28,11.13,12.03,13.0,14.03,15.13,16.28,17.5,18.78,20.13,21.53,23.0,24.53,26.13,27.78,29.5,31.28,33.13,35.03,37.0,39.03,41.13,43.28,45.5,47.78,50.13,52.53,55.0,57.53,60.13,62.78,65.5],[67.7,64.98,62.33,59.73,57.2,54.73,52.33,49.98,47.7,45.48,43.33,41.23,39.2,37.23,35.33,33.48,31.7,29.98,28.33,26.73,25.2,23.73,22.33,20.98,19.7,18.48,17.33,16.23,15.2,14.23,13.33,12.48,11.7,10.98,10.33,9.73,9.2,8.73,8.33,7.98,7.7,7.48,7.33,7.23,7.2,7.23,7.33,7.48,7.7,7.98,8.33,8.73,9.2,9.73,10.33,10.98,11.7,12.48,13.33,14.23,15.2,16.23,17.33,18.48,19.7,20.98,22.33,23.73,25.2,26.73,28.33,29.98,31.7,33.48,35.33,37.23,39.2,41.23,43.33,45.48,47.7,49.98,52.33,54.73,57.2,59.73,62.33,64.98,67.7],[70.3,67.58,64.92,62.33,59.8,57.33,54.92,52.58,50.3,48.08,45.92,43.83,41.8,39.83,37.92,36.08,34.3,32.58,30.92,29.33,27.8,26.33,24.92,23.58,22.3,21.08,19.92,18.83,17.8,16.83,15.92,15.08,14.3,13.58,12.92,12.33,11.8,11.33,10.92,10.58,10.3,10.08,9.92,9.83,9.8,9.83,9.92,10.08,10.3,10.58,10.92,11.33,11.8,12.33,12.92,13.58,14.3,15.08,15.92,16.83,17.8,18.83,19.92,21.08,22.3,23.58,24.92,26.33,27.8,29.33,30.92,32.58,34.3,36.08,37.92,39.83,41.8,43.83,45.92,48.08,50.3,52.58,54.92,57.33,59.8,62.33,64.92,67.58,70.3],[73.3,70.58,67.92,65.33,62.8,60.33,57.92,55.58,53.3,51.08,48.92,46.83,44.8,42.83,40.93,39.08,37.3,35.58,33.93,32.33,30.8,29.33,27.93,26.58,25.3,24.08,22.93,21.83,20.8,19.83,18.93,18.08,17.3,16.58,15.93,15.33,14.8,14.33,13.93,13.58,13.3,13.08,12.93,12.83,12.8,12.83,12.93,13.08,13.3,13.58,13.93,14.33,14.8,15.33,15.93,16.58,17.3,18.08,18.93,19.83,20.8,21.83,22.93,24.08,25.3,26.58,27.93,29.33,30.8,32.33,33.93,35.58,37.3,39.08,40.93,42.83,44.8,46.83,48.92,51.08,53.3,55.58,57.92,60.33,62.8,65.33,67.92,70.58,73.3],[76.7,73.98,71.32,68.73,66.2,63.73,61.32,58.98,56.7,54.48,52.32,50.23,48.2,46.23,44.32,42.48,40.7,38.98,37.33,35.73,34.2,32.73,31.33,29.98,28.7,27.48,26.33,25.23,24.2,23.23,22.33,21.48,20.7,19.98,19.33,18.73,18.2,17.73,17.33,16.98,16.7,16.48,16.33,16.23,16.2,16.23,16.33,16.48,16.7,16.98,17.33,17.73,18.2,18.73,19.33,19.98,20.7,21.48,22.33,23.23,24.2,25.23,26.33,27.48,28.7,29.98,31.33,32.73,34.2,35.73,37.33,38.98,40.7,42.48,44.32,46.23,48.2,50.23,52.32,54.48,56.7,58.98,61.32,63.73,66.2,68.73,71.32,73.98,76.7],[80.5,77.78,75.12,72.53,70.0,67.53,65.12,62.78,60.5,58.28,56.13,54.03,52.0,50.03,48.13,46.28,44.5,42.78,41.13,39.53,38.0,36.53,35.13,33.78,32.5,31.28,30.13,29.03,28.0,27.03,26.13,25.28,24.5,23.78,23.13,22.53,22.0,21.53,21.13,20.78,20.5,20.28,20.13,20.03,20.0,20.03,20.13,20.28,20.5,20.78,21.13,21.53,22.0,22.53,23.13,23.78,24.5,25.28,26.13,27.03,28.0,29.03,30.13,31.28,32.5,33.78,35.13,36.53,38.0,39.53,41.13,42.78,44.5,46.28,48.13,50.03,52.0,54.03,56.13,58.28,60.5,62.78,65.12,67.53,70.0,72.53,75.12,77.78,80.5],[84.7,81.98,79.33,76.73,74.2,71.73,69.33,66.98,64.7,62.48,60.33,58.23,56.2,54.23,52.33,50.48,48.7,46.98,45.33,43.73,42.2,40.73,39.33,37.98,36.7,35.48,34.33,33.23,32.2,31.23,30.33,29.48,28.7,27.98,27.33,26.73,26.2,25.73,25.33,24.98,24.7,24.48,24.33,24.23,24.2,24.23,24.33,24.48,24.7,24.98,25.33,25.73,26.2,26.73,27.33,27.98,28.7,29.48,30.33,31.23,32.2,33.23,34.33,35.48,36.7,37.98,39.33,40.73,42.2,43.73,45.33,46.98,48.7,50.48,52.33,54.23,56.2,58.23,60.33,62.48,64.7,66.98,69.33,71.73,74.2,76.73,79.33,81.98,84.7],[89.3,86.58,83.92,81.33,78.8,76.33,73.92,71.58,69.3,67.08,64.92,62.83,60.8,58.83,56.92,55.08,53.3,51.58,49.92,48.33,46.8,45.33,43.92,42.58,41.3,40.08,38.92,37.83,36.8,35.83,34.92,34.08,33.3,32.58,31.92,31.33,30.8,30.33,29.92,29.58,29.3,29.08,28.92,28.83,28.8,28.83,28.92,29.08,29.3,29.58,29.92,30.33,30.8,31.33,31.92,32.58,33.3,34.08,34.92,35.83,36.8,37.83,38.92,40.08,41.3,42.58,43.92,45.33,46.8,48.33,49.92,51.58,53.3,55.08,56.92,58.83,60.8,62.83,64.92,67.08,69.3,71.58,73.92,76.33,78.8,81.33,83.92,86.58,89.3],[94.3,91.58,88.93,86.33,83.8,81.33,78.93,76.58,74.3,72.08,69.93,67.83,65.8,63.83,61.92,60.08,58.3,56.58,54.92,53.33,51.8,50.33,48.92,47.58,46.3,45.08,43.92,42.83,41.8,40.83,39.93,39.08,38.3,37.58,36.93,36.33,35.8,35.33,34.93,34.58,34.3,34.08,33.93,33.83,33.8,33.83,33.93,34.08,34.3,34.58,34.93,35.33,35.8,36.33,36.93,37.58,38.3,39.08,39.93,40.83,41.8,42.83,43.92,45.08,46.3,47.58,48.92,50.33,51.8,53.33,54.92,56.58,58.3,60.08,61.92,63.83,65.8,67.83,69.93,72.08,74.3,76.58,78.93,81.33,83.8,86.33,88.93,91.58,94.3],[99.7,96.98,94.33,91.73,89.2,86.73,84.33,81.98,79.7,77.48,75.33,73.23,71.2,69.23,67.33,65.48,63.7,61.98,60.33,58.73,57.2,55.73,54.33,52.98,51.7,50.48,49.33,48.23,47.2,46.23,45.33,44.48,43.7,42.98,42.33,41.73,41.2,40.73,40.33,39.98,39.7,39.48,39.33,39.23,39.2,39.23,39.33,39.48,39.7,39.98,40.33,40.73,41.2,41.73,42.33,42.98,43.7,44.48,45.33,46.23,47.2,48.23,49.33,50.48,51.7,52.98,54.33,55.73,57.2,58.73,60.33,61.98,63.7,65.48,67.33,69.23,71.2,73.23,75.33,77.48,79.7,81.98,84.33,86.73,89.2,91.73,94.33,96.98,99.7],[105.5,102.78,100.13,97.53,95.0,92.53,90.13,87.78,85.5,83.28,81.13,79.03,77.0,75.03,73.13,71.28,69.5,67.78,66.13,64.53,63.0,61.53,60.13,58.78,57.5,56.28,55.13,54.03,53.0,52.03,51.13,50.28,49.5,48.78,48.13,47.53,47.0,46.53,46.13,45.78,45.5,45.28,45.13,45.03,45.0,45.03,45.13,45.28,45.5,45.78,46.13,46.53,47.0,47.53,48.13,48.78,49.5,50.28,51.13,52.03,53.0,54.03,55.13,56.28,57.5,58.78,60.13,61.53,63.0,64.53,66.13,67.78,69.5,71.28,73.13,75.03,77.0,79.03,81.13,83.28,85.5,87.78,90.13,92.53,95.0,97.53,100.13,102.78,105.5],[111.7,108.98,106.33,103.73,101.2,98.73,96.33,93.98,91.7,89.48,87.33,85.23,83.2,81.23,79.33,77.48,75.7,73.98,72.33,70.73,69.2,67.73,66.33,64.98,63.7,62.48,61.33,60.23,59.2,58.23,57.33,56.48,55.7,54.98,54.33,53.73,53.2,52.73,52.33,51.98,51.7,51.48,51.33,51.23,51.2,51.23,51.33,51.48,51.7,51.98,52.33,52.73,53.2,53.73,54.33,54.98,55.7,56.48,57.33,58.23,59.2,60.23,61.33,62.48,63.7,64.98,66.33,67.73,69.2,70.73,72.33,73.98,75.7,77.48,79.33,81.23,83.2,85.23,87.33,89.48,91.7,93.98,96.33,98.73,101.2,103.73,106.33,108.98,111.7],[118.3,115.58,112.92,110.33,107.8,105.33,102.92,100.58,98.3,96.08,93.92,91.83,89.8,87.83,85.92,84.08,82.3,80.58,78.92,77.33,75.8,74.33,72.92,71.58,70.3,69.08,67.92,66.83,65.8,64.83,63.92,63.08,62.3,61.58,60.92,60.33,59.8,59.33,58.92,58.58,58.3,58.08,57.92,57.83,57.8,57.83,57.92,58.08,58.3,58.58,58.92,59.33,59.8,60.33,60.92,61.58,62.3,63.08,63.92,64.83,65.8,66.83,67.92,69.08,70.3,71.58,72.92,74.33,75.8,77.33,78.92,80.58,82.3,84.08,85.92,87.83,89.8,91.83,93.92,96.08,98.3,100.58,102.92,105.33,107.8,110.33,112.92,115.58,118.3],[125.3,122.58,119.93,117.33,114.8,112.33,109.93,107.58,105.3,103.08,100.93,98.83,96.8,94.83,92.93,91.08,89.3,87.58,85.93,84.33,82.8,81.33,79.93,78.58,77.3,76.08,74.93,73.83,72.8,71.83,70.93,70.08,69.3,68.58,67.93,67.33,66.8,66.33,65.93,65.58,65.3,65.08,64.93,64.83,64.8,64.83,64.93,65.08,65.3,65.58,65.93,66.33,66.8,67.33,67.93,68.58,69.3,70.08,70.93,71.83,72.8,73.83,74.93,76.08,77.3,78.58,79.93,81.33,82.8,84.33,85.93,87.58,89.3,91.08,92.93,94.83,96.8,98.83,100.93,103.08,105.3,107.58,109.93,112.33,114.8,117.33,119.93,122.58,125.3]],"colorscale":"Blues","reversescale":true,"contours":{"coloring":"lines","start":1,"end":60,"size":6},"showscale":false,"name":"G"},{"type":"scatter","x":[10.0,8.1818,6.6942,5.4771,4.4813,3.6665,2.9998,2.4544,2.0082,1.643,1.3443,1.0999,0.8999],"y":[1.0,-0.8182,0.6694,-0.5477,0.4481,-0.3666,0.3,-0.2454,0.2008,-0.1643,0.1344,-0.11,0.09],"mode":"lines+markers","line":{"color":"crimson"},"name":"steepest descent (12 steps, still zig-zagging)"},{"type":"scatter","x":[10.0,8.1818,-0.0],"y":[1.0,-0.8182,-0.0],"mode":"lines+markers","line":{"color":"green","width":3},"name":"conjugate gradient (exact in 2 steps)"},{"type":"scatter","x":[0],"y":[0],"mode":"markers","marker":{"symbol":"star","size":14,"color":"gold","line":{"color":"black","width":1}},"name":"minimum"}],"layout":{"title":{"text":"G = \u00bdx\u1d40Ax with A = diag(1, 10), \u03ba = 10, start (10, 1)"},"xaxis":{"title":{"text":"x\u2081"},"range":[-11,11],"constrain":"domain"},"yaxis":{"title":{"text":"x\u2082"},"range":[-3.6,3.6],"scaleanchor":"x","constrain":"domain"},"height":420,"legend":{"orientation":"h","y":-0.3}}}
Recap
| Topic | Core idea |
|---|---|
| Quadratic form | $Q=\vec x^TA\vec x$ (scalar); $a_{11}x_1^2+2a_{12}x_1x_2+a_{22}x_2^2$ for symmetric $2\times2$. |
| PD / PSD | $Q>0$ / $\ge0$ for $\vec x\ne\vec0$ $\iff$ all $\lambda>0$ / $\ge0$. |
| Sylvester’s criterion | Symmetric $A$ is PD $\iff$ all leading principal minors $>0$. (det, tr $>0$ is not enough.) |
| Quadratic objective | $G=\tfrac12\vec x^TA\vec x-\vec b^T\vec x$, $\nabla G=A\vec x-\vec b$, $H=A$: min $G\iff A\vec x=\vec b$. |
| Steepest descent | $\vec x^{k+1}=\vec x^k+\alpha^k\vec s^k$, $\vec s^k=-\nabla f^k$. |
| Optimal step (quadratic) | $\alpha^k=\vec g^T\vec g/\vec g^TA\vec g$; then $\vec s^{k+1}\perp\vec s^k$ (zig-zag). |
| Fixed step | Stable only for $\alpha<2/\lambda_\text{max}$. |
| Convergence | Error factor $(\kappa-1)/(\kappa+1)$ per step, $\kappa=\lambda_\text{max}/\lambda_\text{min}$. |
| Conjugate gradient | $A$-conjugate directions; exact in $\le m$ steps for SPD quadratics. |
Check our understanding
True or False
- The quadratic form $\vec x^TA\vec x$ is a scalar.
- A positive definite matrix is always invertible.
- A symmetric $3\times3$ matrix with $\det A>0$ and $\operatorname{tr}A>0$ is positive definite.
- If the Hessian is PD at a critical point, that point is the global minimum.
- Minimizing $\tfrac12\vec x^TA\vec x-\vec b^T\vec x$ for symmetric PD $A$ is equivalent to solving $A\vec x=\vec b$.
- With exact line search, consecutive steepest-descent directions are orthogonal.
- A larger fixed step size always makes steepest descent converge faster.
- Steepest descent converges in one step when all eigenvalues of $A$ are equal.
- Conjugate gradient solves a $3\times3$ SPD system in at most 3 iterations (exact arithmetic).
View Answer Key
- True. $(1\times m)(m\times m)(m\times1)=1\times1$.
- True. No eigenvalue is zero, so $\det A\ne0$; $A^{-1}$ is PD too.
- False. $\operatorname{diag}(-1,-1,4)$; use Sylvester’s criterion or the eigenvalues.
- False. Only a local minimum, unless the Hessian is PD everywhere (strictly convex function).
- True. $\nabla G=A\vec x-\vec b=\vec0$, and $H=A$ PD makes it the minimum.
- True. $\nabla f(\vec x^{k+1})\cdot\vec s^k=0$.
- False. Beyond $2/\lambda_\text{max}$ it diverges; $\alpha=0.3$ diverged in the example.
- True. $\kappa=1$: the bowl is round and $-\nabla G$ points straight at the minimum.
- True.
Practice questions
Q1. Is $A=\begin{bmatrix}2&-1&0\-1&2&-1\0&-1&2\end{bmatrix}$ positive definite?
View Answer
$P_1=2$, $P_2=4-1=3$, $P_3=2(4-1)-(-1)(-2-0)+0=6-2=4$. All positive, so yes. (This is the matrix of a 1-D finite-difference or spring-chain model; its eigenvalues are $2-\sqrt2,\ 2,\ 2+\sqrt2$.)
Q2. For $G=\tfrac12\vec x^TA\vec x-\vec b^T\vec x$ with $A=\begin{bmatrix}2&0\0&8\end{bmatrix}$, $\vec b=\vec 0$ and $\vec x^0=(1,1)^T$, take one exact steepest-descent step.
View Answer
$\vec g^0=A\vec x^0=(2,8)^T$, $\vec g^T\vec g=68$, $\vec g^TA\vec g=2(4)+8(64)=520$, so $\alpha^0=68/520=0.131$ and $\vec x^1=(1,1)-0.131(2,8)=(0.738,\ -0.046)$. The minimum is at the origin, but the step overshoots in $x_2$ and undershoots in $x_1$: here $\kappa=4$, so the path zig-zags.