9/5/2025

AutoCAD's Spline and understanding Bézier Curves: From Ellipses to Hyperbolas

Many engineers and designers have used Spline Fit or Spline CV commands without ever wondering about the mathematics behind them. To make sense of this fascinating topic, let’s take a look at how Bézier curves are defined and how they can be applied to create conic sections such as ellipses, parabolas, and hyperbolas.

The Mathematics of Rational Bézier Curves

Rational Bézier curves can be described by the following equation:

Rational Bézier curves equation Rational Bézier curves equation

We are interested in the equation when n = 2, and then it looks like this:

Rational Bézier curves equation for n=2 Rational Bézier curves equation for n=2

In the above equation, we used the following notations:

Pi = (xi, yi) - control points

wi - weight parameter

t0 - curve parameter, ranging from 0 to 1

Linking Theory with Software


When working with splines in CAD software, you saw a panel of curve properties:

Properties panel in AutoCAD Properties panel in AutoCAD

Let’s now analyze what each piece of data in the panel represents in relation to the formula.

  • Number of points corresponds to the number of terms in the numerator and denominator of the Bézier equation.

  • Control point X, Y, Z values represent the coordinates of Pi. While the formula indexes points from 0 to 2, the software may label them from 1 to 3.

  • Weight corresponds to the wi parameter of each control point.

By adjusting these parameters, you can generate different conic curves:

  • If w0 = w2 = 1 and 0 < w1 > 0.5 the curve is an ellipse.

  • If w0 = w1 = w2 = 1 the curve is an parabola

  • If w1 > 0.5 the curve is an hyperbola

Constructing a Hyperbola with Bézier Curves

Let’s examine the hyperbola in the figure below.

Hyperbola Hyperbola

In the figure, we can see two focal points of hyperbola, and also semi-major axis a = 64 and semi-minor axis b = 48.

To model this hyperbola using Spline CV, we must determine the positions of the three control points.

The equation of the hyperbola is:

The equation of the hyperbola The equation of the hyperbola

The equation of the tangent to the hyperbola is:

The equation of the tangent to the hyperbola The equation of the tangent to the hyperbola

Let us look at some of Spline properties:

Spline Spline

An important property of the spline is that the lines P1P0 and P2P1 are tangents at points P0 and P2. If we apply the tangent equation at point P0, we obtain the following expression:

the tangent equation at point P the tangent equation at point P

Because P1 = (x1, 0)

If the control points have coordinates (x0, y0), (x1, 0), (x0, -y0) and the weight parameters are 1, w1, 1, then, based on the rational Bézier curve, the value of the vertex can be written as:

equation for the vertex equation for the vertex

After simplification, the above equation becomes:

the equation after simplification the equation after simplification

Now, we have 2 equations

2 equations after simplification 2 equations after simplification

If we apply the equation of the hyperbola at the point P0 = (x0, y0), we obtain the following equation:

The hyperbola equation for point P0 The hyperbola equation for point P0

When solving the system of three equations with three unknowns, we obtain the coordinates for the P0point.

The solved equation The solved equation

These equations are valid exclusively for the positions of the control points forming an equilateral triangle and for values of w1 > 1.

This is the final shape of the hyperbola when the calculated coordinates for w1 = 2 are applied.

Hyperbola Hyperbola

Why This Matters

Understanding the connection between mathematical equations and CAD tools not only helps engineers design more precisely but also deepens appreciation for the hidden elegance of mathematics. Bézier curves are used everywhere, from car design to computer graphics. They are more than just smooth lines. They are a bridge between abstract equations and real-world shapes.

If you wish to learn more, you can watch this video by Freya Holmér The Continuity of Splines. And of course, see our YouTube series AutoCAD in Math

Be CADonist! Follow us on LinkedIn or subscribe to our YouTube channel for more tips.
Contact us
An unhandled error has occurred. Reload 🗙