Lesson 1 of 2 · Differential Geometry
Curves, arc length and curvature
A parametric curve \(r(t)\) describes a path in the plane or in space; its derivative is a tangent vector, the arc length is the integral of its speed, and the curvature measures how fast the tangent direction turns, so it is \(1/R\) for a circle and zero for a straight line.
Lesson contents
1 Introduction
The path of a self-driving car, the motion of a robot arm and the path of the parameters during training are all curves. How long is the path? And where does it turn sharply? Differential geometry answers with the tools of calculus.
Learning objectives
- Represent a curve parametrically and compute the tangent vector
- Compute arc length by integration
- Compute and interpret the curvature of a plane curve
- Link curvature to the second derivative and the Hessian
2 Why study this topic?
Curvature is a central concept in machine learning: the curvature of the loss function (the Hessian) determines the safe learning rate and the behavior of optimizers, robot path planning constrains the curvature of the path, and the study of curves is the natural gateway to manifolds and representation spaces.
3 Theoretical explanation
The parametric curve and the tangent
A curve is a function \(r(t) = (x(t), y(t))\) or \((x(t), y(t), z(t))\). The vector \(r'(t)\) is tangent to the curve, and its length \(|r'(t)|\) is the speed. The circle \(r(t) = (R\cos t, R\sin t)\) has constant speed R, and the helix \((\cos t, \sin t, t)\) has speed \(\sqrt 2\).
Arc length
\[L = \int_{t_0}^{t_1} |r'(t)|\,dt\]
For the graph \(y = f(x)\) this becomes \(L = \int \sqrt{1 + f'(x)^2}\,dx\). The length of the parabola \(y = x^2\) from 0 to 1:
\[L = \int_0^1\sqrt{1 + 4x^2}\,dx = \frac{2\sqrt5 + \sinh^{-1}2}{4} \approx 1.4789\]
Curvature
The curvature κ is the rate at which the unit tangent vector turns with respect to arc length. For a parametric plane curve:
\[\kappa = \frac{|x'y'' - y'x''|}{(x'^2 + y'^2)^{3/2}},\qquad \text{and for a graph}\quad \kappa = \frac{|f''(x)|}{(1 + f'(x)^2)^{3/2}}\]
For a circle \(\kappa = 1/R\): a small circle is more sharply curved. At the vertex of the parabola \(y = x^2\), \(\kappa = 2\), so the osculating circle has radius \(1/2\), and the curvature then decreases moving away: at \(x = 1\), \(\kappa = 2/5^{3/2} \approx 0.1789\).
Curvature and the Hessian
At a point where \(f'(x) = 0\) (a critical point) the curvature equals \(|f''(x)|\). That is why the Hessian at minima is called the "curvature" of the loss function: large eigenvalues are sharp directions that require a small learning rate, and small ones are flat directions.
4 Mathematical definitions
- Parametric curve
- A function that maps a real parameter t to a point in the plane or in space.\[r(t)\]
- Arc length
- The integral of the speed over the range of the parameter.\[L=\int|r'(t)|dt\]
- Curvature
- The rate of change of the tangent direction with respect to arc length.\[\kappa=\frac{|x'y''-y'x''|}{(x'^2+y'^2)^{3/2}}\]
- Osculating circle
- The circle that matches the curve in point, tangent and curvature, with radius \(1/\kappa\).
- Arc length
- The integral of the speed \(|r'(t)|\) over the parameter range.\[L=\int|r'(t)|dt\]
- Curvature
- The rate of change of the tangent direction with respect to arc length; \(1/R\) for a circle.\[\kappa=\frac{|f''|}{(1+f'^2)^{3/2}}\]
5 The equations
6 Step-by-step worked example
Circumference of a circle
Problem: Compute the length of the circle \((3\cos t, 3\sin t)\) for \(t \in [0, 2\pi]\).
- \(|r'(t)| = 3\).
- \(L = \int_0^{2\pi}3\,dt\).
Result: \(L = 6\pi \approx 18.8496\)
Length of the helix
Problem: Compute the length of one turn of the helix \((\cos t, \sin t, t)\).
- \(r' = (-\sin t, \cos t, 1)\), and \(|r'| = \sqrt2\).
- \(L = 2\pi\sqrt2\).
Result: \(L \approx 8.8858\)
Curvature of a parabola
Problem: Compute the curvature of \(y = x^2\) at \(x = 0\) and \(x = 1\).
- \(f' = 2x\), \(f'' = 2\).
- At 0: \(2/1 = 2\).
- At 1: \(2/5^{3/2}\).
Result: \(\kappa(0) = 2\), \(\kappa(1) \approx 0.1789\)
7 Practical application in AI
- Curvature of the loss function: The eigenvalues of the Hessian measure the curvature in each direction and determine the safe learning rate \(\eta \lt 2/\lambda_{\max}\).
- Path planning: Planned paths for vehicles are constrained by the maximum curvature allowed by the turning radius.
- Computer graphics: Bézier curves and splines are designed to be smooth with continuous curvature.
8 Interactive lab linked to the lesson
Plotting functions, computing the derivative numerically and drawing the tangent, partial derivatives and the gradient of a two-variable function, the chain rule step by step, and numerical integration with the trapezoidal and Simpson's rules.
Open the Calculus Lab9 Practice exercises
Review questions for reflection
- Why does the arc length not change if we change the parameter (such as \(t \to 2t\))?
- Where is the curvature of \(y = x^2\) largest?
Common mistakes
- Confusing curvature with the second derivative outside critical points.
- Forgetting the square root in the arc length integral.
- Assuming that curvature depends on the speed of the parameter; it is a geometric property of the curve itself.
- Dropping the absolute value, so a negative curvature appears in the plane curve formula.
10 Lesson summary
- \(r'(t)\) is a tangent vector and its length is the speed.
- Arc length is the integral of the speed.
- Curvature is \(1/R\) for a circle and zero for a line.
- At critical points the curvature is \(|f''|\), hence the name curvature for the Hessian.
11 Short quiz
5 questions · 10 minutes · pass mark 60% — passing it completes the lesson.
