# Euler spiral

An Euler spiral is a curve whose curvature changes linearly with its curve length (the curvature of a circular curve is equal to the reciprocal of the radius). This curve is also referred to as a clothoid or Cornu spiral. The behavior of Fresnel integrals can be illustrated by an Euler spiral, a connection first made by Marie Alfred Cornu in 1874. Euler's spiral is a type of superspiral that has the property of a monotonic curvature function.
The Euler spiral has applications to diffraction computations. They are also widely used in railway and highway engineering to design transition curves between straight and curved sections of railways or roads. A similar application is also found in photonic integrated circuits. The principle of linear variation of the curvature of the transition curve between a tangent and a circular curve defines the geometry of the Euler spiral:
* Its curvature begins with zero at the straight section (the tangent) and increases linearly with its curve length.
* Where the Euler spiral meets the circular curve, its curvature becomes equal to that of the latter.

## History

The spiral has multiple names reflecting its discovery and application in multiple fields. The three major arenas were elastic springs ("Euler spiral", 1744), graphical computations in light diffraction ("Cornu spiral", 1874), and railway transitions ("the railway transition spiral", 1890).
Leonhard Euler's work on the spiral came after James Bernoulli posed a problem in the theory of elasticity: what shape must a pre-curved wire spring be in such that, when flattened by pressing on the free end, it becomes a straight line? Euler established the properties of the spiral in 1744, noting at that time that the curve must have two limits, points that the curve wraps around and around but never reaches. Thirty-eight years later, in 1781, he reported his discovery of the formula for the limit (by "happy chance").
Augustin Fresnel, working in 1818 on the diffraction of light, developed the Fresnel integral that defines the same spiral. He was unaware of Euler's integrals or the connection to the theory of elasticity. In 1874, Alfred Marie Cornu showed that diffraction intensity could be read off a graph of the spiral by squaring the distance between two points on the graph. In his biographical sketch of Cornu, Henri Poincaré praised the advantages of the "spiral of Cornu" over the "unpleasant multitude of hairy integral formulas". Ernesto Cesàro chose to name the same curve "clothoid" after Clotho, one of the three Fates who spin the thread of life in Greek mythology.
The third independent discovery occurred in the 1800s when various railway engineers sought a formula for gradual curvature in track shape. By 1880 Arthur Newell Talbot worked out the integral formulas and their solution, which he called the "railway transition spiral". The connection to Euler's work was not made until 1922.
Unaware of the solution of the geometry by Euler, William Rankine cited the cubic curve (a polynomial curve of degree 3), which is an approximation of the Euler spiral for small angular changes in the same way that a parabola is an approximation to a circular curve.

## Applications
### Track transition curve

To travel along a circular path, an object needs to be subject to a centripetal acceleration (for example: the Moon circles around the Earth because of gravity; a car turns its front wheels inward to generate a centripetal force). If a vehicle traveling on a straight path were to suddenly transition to a tangential circular path, it would require centripetal acceleration suddenly switching at the tangent point from zero to the required value; this would be difficult to achieve (think of a driver instantly moving the steering wheel from straight line to turning position, and the car actually doing it), putting mechanical stress on the vehicle's parts, and causing much discomfort (due to lateral jerk).
On early railroads this instant application of lateral force was not an issue since low speeds and wide-radius curves were employed (lateral forces on the passengers and the lateral sway was small and tolerable). As speeds of rail vehicles increased over the years, it became obvious that an easement is necessary, so that the centripetal acceleration increases smoothly with the traveled distance. Given the expression of centripetal acceleration ⁠v$^2$/r⁠, the obvious solution is to provide an easement curve whose curvature, ⁠1/R⁠, increases linearly with the traveled distance.

### Optics

In optics, the term Cornu spiral is used.$^{:432}$ The Cornu spiral can be used to describe a diffraction pattern. Consider a plane wave with phasor amplitude E$_0$e$^{−jkz}$ which is diffracted by a "knife edge" of height h above x = 0 on the z = 0 plane. Then the diffracted wave field can be expressed as $\mathbf {E} (x,z)=E_{0}e^{-jkz}{\frac {\mathrm {Fr} (\infty )-\mathrm {Fr} \left({\sqrt {\frac {2}{\lambda z}}}(h-x)\right)}{\mathrm {Fr} (\infty )-\mathrm {Fr} (-\infty )}},$ where Fr(x) is the Fresnel integral function, which forms the Cornu spiral on the complex plane.
So, to simplify the calculation of plane wave attenuation as it is diffracted from the knife-edge, one can use the diagram of a Cornu spiral by representing the quantities Fr(a) − Fr(b) as the physical distances between the points represented by Fr(a) and Fr(b) for appropriate a and b. This facilitates a rough computation of the attenuation of the plane wave by the knife edge of height h at a location (x, z) beyond the knife edge.

### Integrated optics

Bends with continuously varying radius of curvature following the Euler spiral are also used to reduce losses in photonic integrated circuits, either in singlemode waveguides, to smoothen the abrupt change of curvature and suppress coupling to radiation modes, or in multimode waveguides, in order to suppress coupling to higher order modes and ensure effective singlemode operation. A pioneering and very elegant application of the Euler spiral to waveguides had been made as early as 1957, with a hollow metal waveguide for microwaves. There the idea was to exploit the fact that a straight metal waveguide can be physically bent to naturally take a gradual bend shape resembling an Euler spiral.

### Feynman's path integral

In the path integral formulation of quantum mechanics, the probability amplitude for propagation between two points can be visualized by connecting action phase arrows for each time step between the two points. The arrows spiral around each endpoint forming what is termed a Cornu spiral.

### Auto racing

Motorsport author Adam Brouillard has shown the Euler spiral's use in optimizing the racing line during the corner entry portion of a turn.

### Typography and digital vector drawing

Raph Levien has released Spiro as a toolkit for curve design, especially font design, in 2007 under a free licence. This toolkit has been implemented quite quickly afterwards in the font design tool Fontforge and the digital vector drawing Inkscape.

### Map projection

Cutting a sphere along a spiral with width ⁠1/N⁠ and flattening out the resulting shape yields an Euler spiral when n tends to the infinity. If the sphere is the globe, this produces a map projection whose distortion tends to zero as n tends to the infinity.

### Whisker shapes

Natural shapes of rats' whiskers are well approximated by segments of Euler spirals; for a single rat all of the whiskers can be approximated as segments of the same spiral. The two parameters of the Cesàro equation for an Euler spiral segment might give insight into the keratinization mechanism of whisker growth.

## Formulation
### Symbols

| R | Radius of curvature |
| R$_c$ | Radius of circular curve at the end of the spiral |
| θ | Angle of curve from beginning of spiral (infinite R) to a particular point on the spiral. This can also be measured as the angle between the initial tangent and the tangent at the concerned point. |
| θ$_s$ | Angle of full spiral curve |
| L, s | Length measured along the spiral curve from its initial position |
| L$_s$, s$_o$ | Length of spiral curve |
The graph on the right illustrates an Euler spiral used as an easement (transition) curve between two given curves, in this case a straight line (the negative x axis) and a circle. The spiral starts at the origin in the positive x direction and gradually turns anticlockwise to osculate the circle.
The spiral is a small segment of the above double-end Euler spiral in the first quadrant.
From the definition of the curvature, ${\frac {1}{R}}={\frac {d\theta }{ds}}\propto s$ i.e., ${\begin{aligned}Rs={\text{constant}}&=R_{c}s_{o}\\{\frac {d\theta }{ds}}&={\frac {s}{R_{c}s_{o}}}\end{aligned}}$ We write in the format, ${\frac {d\theta }{ds}}=2a^{2}s$ where $2a^{2}={\frac {1}{R_{c}s_{o}}}$ or $a={\frac {1}{\sqrt {2R_{c}s_{o}}}}$ thus $\theta =(as)^{2}$ Now $x=\int _{0}^{L}\cos \theta \,ds=\int _{0}^{L}\cos \left[\left(as\right)^{2}\right]\,ds$ If $s'=as$ Then $ds={\frac {ds'}{a}}$ Thus ${\begin{aligned}x&={\frac {1}{a}}\int _{0}^{L'}\cos \left(s^{2}\right)\,ds\\y&=\int _{0}^{L}\sin \theta \,ds\\&=\int _{0}^{L}\sin \left[\left(as\right)^{2}\right]\,ds\\&={\frac {1}{a}}\int _{0}^{L'}\sin \left({s}^{2}\right)\,ds\end{aligned}}$

### Expansion of Fresnel integral

If a = 1, which is the case for normalized Euler curve, then the Cartesian coordinates are given by Fresnel integrals (or Euler integrals): ${\begin{aligned}C(L)&=\int _{0}^{L}\cos \left(s^{2}\right)\,ds\\S(L)&=\int _{0}^{L}\sin \left(s^{2}\right)\,ds\end{aligned}}$

### Normalization

For a given Euler curve with: $2RL=2R_{c}L_{s}={\frac {1}{a^{2}}}$ or ${\frac {1}{R}}={\frac {L}{R_{c}L_{s}}}=2a^{2}L$ then ${\begin{aligned}x&={\frac {1}{a}}\int _{0}^{L'}\cos \left(s^{2}\right)\,ds\\y&={\frac {1}{a}}\int _{0}^{L'}\sin \left(s^{2}\right)\,ds\end{aligned}}$ where ${\begin{aligned}L'&=aL\\a&={\frac {1}{\sqrt {2R_{c}L_{s}}}}.\end{aligned}}$
The process of obtaining solution of (x, y) of an Euler spiral can thus be described as:
* Map L of the original Euler spiral by multiplying with factor a to L′ of the normalized Euler spiral;
* Find (x′, y′) from the Fresnel integrals; and
* Map (x′, y′) to (x, y) by scaling up (denormalize) with factor ⁠1/a⁠. Note that ⁠1/a⁠ > 1.
In the normalization process, ${\begin{aligned}R'_{c}&={\frac {R_{c}}{\sqrt {2R_{c}L_{s}}}}={\sqrt {\frac {R_{c}}{2L_{s}}}}\\L'_{s}&={\frac {L_{s}}{\sqrt {2R_{c}L_{s}}}}={\sqrt {\frac {L_{s}}{2R_{c}}}}\end{aligned}}$ Then $2R'_{c}L'_{s}=2{\sqrt {\frac {R_{c}}{2L_{s}}}}{\sqrt {\frac {L_{s}}{2R_{c}}}}={\frac {2}{2}}=1$
Generally the normalization reduces L′ to a small value (less than 1) and results in good converging characteristics of the Fresnel integral manageable with only a few terms (at a price of increased numerical instability of the calculation, especially for bigger θ values.).

#### Illustration

Given: ${\begin{aligned}R_{c}&=300\,\mathrm {m} \\L_{s}&=100\,\mathrm {m} \end{aligned}}$ Then $\theta _{s}={\frac {L_{s}}{2R_{c}}}={\frac {100}{2\times 300}}={\frac {1}{6}}\ \mathrm {radian}$ and $2R_{c}L_{s}=60\,000$
We scale down the Euler spiral by √60000, i.e. 100√6 to normalized Euler spiral that has: ${\begin{aligned}R'_{c}&={\tfrac {3}{\sqrt {6}}}\,\mathrm {m} \\L'_{s}&={\tfrac {1}{\sqrt {6}}}\,\mathrm {m} \\2R'_{c}L'_{s}&=2\times {\tfrac {3}{\sqrt {6}}}\times {\tfrac {1}{\sqrt {6}}}\\&=1\end{aligned}}$ and $\theta _{s}={\frac {L'_{s}}{2R'_{c}}}={\frac {\frac {1}{\sqrt {6}}}{2\times {\frac {3}{\sqrt {6}}}}}={\frac {1}{6}}\ \mathrm {radian}$
The two angles θ$_s$ are the same. This thus confirms that the original and normalized Euler spirals are geometrically similar. The locus of the normalized curve can be determined from Fresnel Integral, while the locus of the original Euler spiral can be obtained by scaling up or denormalizing.

### Other properties of normalized Euler spirals

Normalized Euler spirals can be expressed as: ${\begin{aligned}x&=\int _{0}^{L}\cos \left(s^{2}\right)\,ds\\y&=\int _{0}^{L}\sin \left(s^{2}\right)\,ds\end{aligned}}$ or expressed as power series: ${\begin{aligned}x&=\left.\sum _{i=0}^{\infty }{\frac {(-1)^{i}}{(2i)!}}{\frac {s^{4i+1}}{4i+1}}\right|_{0}^{L}&&=\sum _{i=0}^{\infty }{\frac {(-1)^{i}}{(2i)!}}{\frac {L^{4i+1}}{4i+1}}\\y&=\left.\sum _{i=0}^{\infty }{\frac {(-1)^{i}}{(2i+1)!}}{\frac {s^{4i+3}}{4i+3}}\right|_{0}^{L}&&=\sum _{i=0}^{\infty }{\frac {(-1)^{i}}{(2i+1)!}}{\frac {L^{4i+3}}{4i+3}}\end{aligned}}$
The normalized Euler spiral will converge to a single point in the limit as the parameter L approaches infinity, which can be expressed as: ${\begin{aligned}x^{\prime }&=\lim _{L\to \infty }\int _{0}^{L}\cos \left(s^{2}\right)\,ds&&={\frac {1}{2}}{\sqrt {\frac {\pi }{2}}}\approx 0.6267\\y^{\prime }&=\lim _{L\to \infty }\int _{0}^{L}\sin \left(s^{2}\right)\,ds&&={\frac {1}{2}}{\sqrt {\frac {\pi }{2}}}\approx 0.6267\end{aligned}}$
Normalized Euler spirals have the following properties: ${\begin{aligned}2R_{c}L_{s}&=1\\\theta _{s}&={\frac {L_{s}}{2R_{c}}}=L_{s}^{2}\end{aligned}}$ and ${\begin{aligned}\theta &=\theta _{s}\cdot {\frac {L^{2}}{L_{s}^{2}}}=L^{2}\\{\frac {1}{R}}&={\frac {d\theta }{dL}}=2L\end{aligned}}$
Note that 2R$_c$L$_s$ = 1 also means ⁠1/R$_c$⁠ = 2L$_s$, in agreement with the last mathematical statement.