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). Euler spirals are also commonly referred to as spiros, clothoids, or Cornu spirals.
Euler spirals have applications to diffraction computations. They are also widely used as transition curves in railroad engineering/highway engineering for connecting and transitioning the geometry between a tangent and a circular curve. 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.
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 wideradius 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 linearly 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. This geometry is an Euler spiral.
Unaware of the solution of the geometry by Leonhard Euler, 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.
Marie Alfred Cornu (and later some civil engineers) also solved the calculus of the Euler spiral independently. Euler spirals are now widely used in rail and highway engineering for providing a transition or an easement between a tangent and a horizontal circular curve.
Optics
The Cornu spiral can be used to describe a diffraction pattern.^{[1]} 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
,
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 knifeedge, 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,^{[2]}^{[3]} to smoothen the abrupt change of curvature and coupling to radiation modes, or in multimode waveguides,^{[4]} 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,^{[5]} 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.
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.^{[6]}
Typography and digital vector drawing
Raph Levien has released Spiro as a toolkit for curve design, especially font design, in 2007^{[7]}^{[8]} 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.^{[9]} If the sphere is the globe, this produces a map projection whose distortion tends to zero as n tends to the infinity.^{[10]}
Whisker shapes
Natural shapes of rat's mystacial pad vibrissae (whiskers) are well approximated by pieces of the Euler spiral. When all these pieces for a single rat are assembled together, they span an interval extending from one coiled domain of the Euler spiral to the other.^{[11]}
Formulation
Symbols
R Radius of curvature R_{c} Radius of xircular 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
Derivation 

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 doubleend Euler spiral in the first quadrant.

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):
Normalization and conclusion
For a given Euler curve with:
or
then
where
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,
Then
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:
Then
and
We scale down the Euler spiral by √60000, i.e. 100√6 to normalized Euler spiral that has:
and
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:
or expressed as power series:
The normalized Euler spiral will converge to a single point in the limit, which can be expressed as:
Normalized Euler spirals have the following properties:
and
Note that 2R_{c}L_{s} = 1 also means 1/R_{c} = 2L_{s}, in agreement with the last mathematical statement.
Code for producing an Euler spiral
The following SageMath code produces the second graph above. The first four lines express the Euler spiral component. Fresnel functions could not be found. Instead, the integrals of two expanded Taylor series are adopted. The remaining code expresses respectively the tangent and the circle, including the computation for the center coordinates.
var('L')
p = integral(taylor(cos(L^2), L, 0, 12), L)
q = integral(taylor(sin(L^2), L, 0, 12), L)
r1 = parametric_plot([p, q], (L, 0, 1), color = 'red')
r2 = line([(1.0, 0), (0,0)], rgbcolor = 'blue')
x1 = p.subs(L = 1)
y1 = q.subs(L = 1)
R = 0.5
x2 = x1  R*sin(1.0)
y2 = y1 + R*cos(1.0)
r3 = circle((x2, y2), R, rgbcolor = 'green')
show(r1 + r2 + r3, aspect_ratio = 1, axes=false)
The following is Mathematica code for the Euler spiral component (it works directly in wolframalpha.com):
ParametricPlot[{
FresnelC[Sqrt[2/\[Pi]] t]/Sqrt[2/\[Pi]],
FresnelS[Sqrt[2/\[Pi]] t]/Sqrt[2/\[Pi]]
}, {t, 10, 10}]
The following is Xcas code for the Euler spiral component:
plotparam([int(cos(u^2),u,0,t),int(sin(u^2),u,0,t)],t,4,4)
The following is SageMath code for the complete double ended Euler spiral:
s = var('s')
parametric_plot((lambda s: numerical_integral(cos(x**2),0,s)[0], lambda s: numerical_integral(sin(x**2),0,s)[0]), (3*pi/2, 3*pi/2))
The following is JavaScript code for drawing an Euler spiral on a canvas element:
function drawEulerSpiral(canvas, T, N, scale) {
ctx = canvas.getContext("2d");
var dx, dy, t=0, prev = {x:0, y:0}, current;
var dt = T/N;
ctx.beginPath();
while (N) {
dx = Math.cos(t*t) * dt;
dy = Math.sin(t*t) * dt;
t += dt;
current = {
x: prev.x + dx,
y: prev.y + dy
};
ctx.lineTo(current.x*scale, current.y*scale);
prev = current;
}
ctx.stroke();
}
drawEulerSpiral(document.getElementById("myCanvas"),10,10000,100)
The following is Logo (programming language) code for drawing the Euler spiral using the turtle sprite.
rt 90
repeat 720 [ fd 10 lt repcount ]
See also
 Archimedean spiral
 Fresnel integral
 Geometric design of roads
 List of spirals
 Track transition curve
References
Notes
 ^ Eugene Hecht (1998). Optics (3rd ed.). AddisonWesley. p. 491. ISBN 9780201304251.
 ^ Kohtoku, M.; et al. (7 July 2005). "New Waveguide Fabrication Techniques for Nextgeneration PLCs" (PDF). NTT Technical Review. 3 (7): 37–41. Retrieved 24 January 2017.
 ^ Li, G.; et al. (11 May 2012). "Ultralowloss, highdensity SOI optical waveguide routing for macrochip interconnects". Optics Express. 20 (11): 12035–12039. doi:10.1364/OE.20.012035. PMID 22714189.
 ^ Cherchi, M.; et al. (18 July 2013). "Dramatic size reduction of waveguide bends on a micronscale silicon photonic platform". Optics Express. 21 (15): 17814–17823. arXiv:1301.2197. doi:10.1364/OE.21.017814. PMID 23938654.
 ^ Unger, H.G. (September 1957). "Normal Mode Bends for Circular Electric Waves". The Bell System Technical Journal. 36 (5): 1292–1307. doi:10.1002/j.15387305.1957.tb01509.x.
 ^ Development, Paradigm Shift Driver; Brouillard, Adam (20160318). The Perfect Corner: A Driver's StepByStep Guide to Finding Their Own Optimal Line Through the Physics of Racing. Paradigm Shift Motorsport Books. ISBN 9780997382426.
 ^ http://levien.com/spiro/
 ^ http://www.typophile.com/node/33531
 ^ Bartholdi, Laurent; Henriques, André (2012). "Orange Peels and Fresnel Integrals". The Mathematical Intelligencer. 34 (3): 1–3. arXiv:1202.3033. doi:10.1007/s0028301293041. ISSN 03436993.
 ^ "A Strange Map Projection (Euler Spiral)  Numberphile".
 ^ Starostin, E.L.; et al. (15 January 2020). "The Euler spiral of rat whiskers". Science Advances. 6 (3): eaax5145. doi:10.1126/sciadv.aax5145.
Sources
Further reading
 Kellogg, Norman Benjamin (1907). The Transition Curve or Curve of Adjustment (3rd ed.). New York: McGraw.
 Weisstein, Eric W. "Cornu Spiral". MathWorld.
 R. Nave, The Cornu spiral, Hyperphysics (2002) (Uses πt²/2 instead of t².)
 Milton Abramowitz and Irene A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972. (See Chapter 7)
 "Roller Coaster Loop Shapes". Retrieved 20101112.