A Bézier Curve is a parametric polynomial spline curve formulated by Pierre Bézier (1962) for automotive body engineering. Defined by a set of control points, the curve is mathematically modeled as an affine combination of Bernstein basis polynomials and can be evaluated with numerical stability using the recursive De Casteljau linear interpolation algorithm.
[01]Mathematical Architecture & Closed-Form Derivations
KaTeX Mathematical RenderIn modern computational pipelines, this mathematical structure operates at $\mathcal{O}(N)$ to $\mathcal{O}(N \log N)$ complexity per epoch. The interactive sliders above directly alter these parameter coefficients, exposing how physical stability, convergence rates, and non-linear boundaries react to real-time vector adjustments.
[02]Theoretical Foundations & Geometric Intuition
Introduction
Bézier curves transformed computer graphics, vector illustration, and typography. Every digital letter rendered on a screen—from TrueType and OpenType fonts to PostScript printer instructions and SVG graphics—is constructed from connected quadratic and cubic Bézier splines.
Mathematical Derivation
1. Bernstein Polynomial Formulation:
B(t) = \sum_{i=0}^{n} B_{i,n}(t) P_i, \quad t \in [0, 1].
Where the Bernstein basis polynomials are:
B_{i,n}(t) = \binom{n}{i} t^i (1 - t)^{n-i} = \frac{n!}{i!(n - i)!} t^i (1 - t)^{n-i}.
Key Properties of Bernstein Basis:
• Partition of Unity: \sum_{i=0}^{n} B_{i,n}(t) = 1 for all t. The curve is an affine convex combination.
• Convex Hull Property: The entire curve lies strictly within the convex hull formed by its control points.
• Endpoint Interpolation: The curve starts exactly at P_0 (B(0) = P_0) and ends at P_n (B(1) = P_n).
2. Cubic Bézier Curve (Degree n = 3):
The standard cubic Bézier used in SVG paths and typography is:
B(t) = (1-t)^3 P_0 + 3(1-t)^2 t P_1 + 3(1-t) t^2 P_2 + t^3 P_3.
First Derivative & Tangent Vectors:
B'(t) = 3(1-t)^2 (P_1 - P_0) + 6(1-t)t (P_2 - P_1) + 3t^2 (P_3 - P_2).
• Tangent at start (t = 0): B'(0) = 3(P_1 - P_0) (directed along control arm P_0 \to P_1).
• Tangent at end (t = 1): B'(1) = 3(P_3 - P_2) (directed along control arm P_2 \to P_3).
3. De Casteljau Recursive Algorithm:
Rather than evaluating powers of t directly, the curve point B(t) is computed via recursive linear interpolations (lerp):
\beta_i^{(0)} = P_i
\beta_i^{(j)} = (1 - t) \beta_i^{(j-1)} + t \beta_{i+1}^{(j-1)}, \quad j = 1, \dots, n, \; i = 0, \dots, n-j.
At the final step j = n, the unique scalar result \beta_0^{(n)} = B(t).
Industry Applications
• Digital Typography & Font Rasterization: OpenType, TrueType, and PostScript font glyph outlines (e.g., FreeType library).
• Vector Illustration & Graphic Software: Pen tool path modeling in Adobe Illustrator, Figma, and browser SVG engines.
• Robotic Motion Planning & Drone Waypoints: Generating kinematically smooth, continuous-jerk trajectories through spatial waypoints.
• Computer-Aided Design (CAD) & Automotive Styling: Aerodynamic body contour modeling in Siemens NX, Autodesk Maya, and CATIA.
When To Use
[03]Interactive Laboratory Walkthrough
Hands-On ExperimentsDrag anchor points and tangent control handles to watch recursive De Casteljau lines sculpt smooth cubic curves in real time.
Experiment 01: Testing Endpoint Tangency
Notice how the curve departure angle from P0 rotates to remain strictly parallel to the line segment P0-P1.
Experiment 02: Forming an Inflection Loop
Watch the cubic spline create a self-intersecting loop, illustrating the flexibility of degree-3 polynomials.
Experiment 03: Visualizing De Casteljau Subdivisions
Inspect the nested green and orange line segments that iteratively interpolate down to the exact curve point.
[04]Parametric Spline Architecture Matrix
| Spline Family | Polynomial Degree | Local Control | Parametric Continuity | Primary Industry Use Case |
|---|---|---|---|---|
| Quadratic Bézier | Degree 2 (3 Points) | Global (Within Segment) | C¹ (Position + Velocity) | TrueType font glyphs & web animations |
| Cubic Bézier | Degree 3 (4 Points) | Global (Within Segment) | C¹ (Position + Velocity) | SVG vector graphics, Adobe Pen tool, OpenType |
| B-Spline | Arbitrary Degree k | Strictly Local Control | C^{k-1} Continuity | CAD industrial modeling & numerical analysis |
| NURBS Splines | Rational Polynomials | Strictly Local Control | C² or higher | Automotive body CAD & aerospace surfaces (CATIA) |
| Catmull-Rom Spline | Piecewise Cubic | Passes through all points | C¹ Continuity | Camera fly-through tracks & robotic waypoints |
[05]Critical Pitfalls, Numerical Traps & Engineering Solutions
Evaluating B(t) at uniform time intervals (t = 0.0, 0.1, 0.2...) does not produce constant physical travel velocity. Objects accelerate along straight segments and slow down dramatically around sharp high-curvature bends.
Connecting two cubic Bézier curves with positional alignment (C⁰) and tangent alignment (C¹) can still produce an abrupt change in radius of curvature (C²), causing visible lighting reflection kinks on car body panels.
Evaluating Bézier curves of degree n > 10 using direct monomial polynomial expansion (t^n) causes catastrophic floating-point cancellation error.
[06]Multi-Platform Production Implementation
Python • NumPy • PyTorch • Vectorizedimport numpy as np
import matplotlib.pyplot as plt
def de_casteljau(points, t):
"""Evaluates a Bézier curve at parameter t using recursive linear interpolation."""
beta = np.copy(points)
n = len(points)
for j in range(1, n):
beta[:n - j] = (1 - t) * beta[:n - j] + t * beta[1:n - j + 1]
return beta[0]
# Define 4 control points for a cubic Bézier
control_pts = np.array([
[0.0, 0.0], # P0 Start Anchor
[1.0, 4.0], # P1 Handle
[4.0, 3.0], # P2 Handle
[5.0, 0.0] # P3 End Anchor
])
# Sample 100 points along the curve
t_steps = np.linspace(0.0, 1.0, 100)
curve_points = np.array([de_casteljau(control_pts, t) for t in t_steps])
print(f"Start Point: {curve_points[0]}")
print(f"Midpoint (t=0.5): {curve_points[50]}")
print(f"End Point: {curve_points[-1]}")
[07]Industrial AI & Engineering Applications
Applied in obstacle avoidance, feature spatial registration, and SLAM trajectory mapping.
Governs forward propagation, backpropagation gradient descent, and latent space manifold routing.
Used across high-frequency algorithmic arbitrage, physics game engines, and structural engineering simulations.
[09]Frequently Asked Technical Questions
Why does a Bézier curve stay inside the convex hull of its control points?
According to the partition of unity property, the Bernstein polynomials sum to exactly 1 (∑ B_{i,n}(t) = 1) and are strictly non-negative for all t ∈ [0, 1]. Because every curve point is a convex linear combination of the control points, it is mathematically impossible for the curve to extend outside the polygon formed by the control points.
What is the difference between a Bézier curve and a B-Spline?
A Bézier curve has global control: moving a single control point alters the entire curve from start to finish. In contrast, a B-Spline is composed of multiple piecewise polynomial segments connected by knot vectors. Moving a B-Spline control point only alters local neighboring segments, leaving the rest of the curve completely unchanged.
How can a circle be approximated using cubic Bézier curves?
An exact circle cannot be represented by polynomial Bézier curves (it requires rational polynomials / NURBS). However, a circular arc of 90° can be approximated using a cubic Bézier with optimal handle offset constant κ = 4(√2 - 1)/3 ≈ 0.5522847. By chaining 4 cubic segments, a circle is approximated with a maximum radial error of less than 0.054%.
What is the De Casteljau subdivision algorithm used for in rendering?
When rendering vector curves on digital displays, De Casteljau subdivision splits a curve at t = 0.5 into two smaller sub-curves. If a sub-curve is sufficiently flat (tested by measuring control point distance to the baseline), it is drawn as a straight pixel line. If not, it is subdivided recursively, providing adaptive pixel-perfect rendering.