Plane curve reconstructed from curvature (source code)

= Plane curve reconstructed from curvature

Given a smooth function $\kappa(s)$, set
$$
\theta(s)=\int_0^s\kappa(u)\,du,
\qquad
\gamma(s)=\int_0^s(\cos\theta(u),\sin\theta(u))\,du.
$$
Then $\gamma$ is unit speed and has signed curvature $\kappa$. This gives the existence part of the fundamental theorem of plane curves.