On this page
Draw a row of points and a B-spline gives you a smooth curve that follows them. Drag one point and only the nearby part of the curve moves. That property, local control, is what this post checks with pencil and paper.
What is a B-spline?
A B-spline, short for basis spline, is a piecewise polynomial built so that each basis function is non-zero over as few knot intervals as possible for its degree (B-spline, Wikipedia). The pieces meet at parameter values called knots, and a curve is a weighted sum C(t) = Σ Bᵢ,ₚ(t)·Pᵢ of control points Pᵢ. Isaac Jacob Schoenberg coined the name in 1967, the same article notes.
Unlike cubic spline interpolation, which must pass through its data points, a B-spline curve is only pulled towards its control points.
How does the Cox–de Boor recursion work?
Degree 0 is a step: Bᵢ,₀(t) = 1 if tᵢ ≤ t < tᵢ₊₁, and 0 otherwise. Each higher degree p blends two neighbours:
Bᵢ,ₚ(t) = (t − tᵢ)/(tᵢ₊ₚ − tᵢ) · Bᵢ,ₚ₋₁(t) + (tᵢ₊ₚ₊₁ − t)/(tᵢ₊ₚ₊₁ − tᵢ₊₁) · Bᵢ₊₁,ₚ₋₁(t)
The first fraction ramps from 0 to 1, the second from 1 to 0, and degree 1 comes out as a triangle, a hat (B-spline, Wikipedia). Because Bᵢ,ₚ is non-zero only on tᵢ, tᵢ₊ₚ₊₁), every basis function lives on p + 1 knot spans. The formula carries the names of M. G. Cox and Carl de Boor, who both published on computing B-splines in 1972 ([Cox; de Boor).
What are the uniform cubic B-spline basis functions?
With equally spaced knots, each piece of a cubic B-spline uses four consecutive control points b₀ to b₃ and a local parameter t from 0 to 1 (B-spline, Wikipedia). The weights are:
on b₀: (1 − t)³/6
on b₁: (3t³ − 6t² + 4)/6
on b₂: (−3t³ + 3t² + 3t + 1)/6
on b₃: t³/6
Add the numerators term by term: the t³, t² and t coefficients each cancel to 0, and the constants give 1 + 4 + 1 = 6. So the weights sum to 1 for every t and none is negative, which makes each curve point a weighted average of four control points.
How do you evaluate one segment by hand?
Take b₀ = (0, 0), b₁ = (1, 2), b₂ = (3, 2), b₃ = (4, 0).
At t = 0 the weights are 1/6, 4/6, 1/6, 0, so C(0) = (7/6, 5/3).
At t = 1 they are 0, 1/6, 4/6, 1/6, so C(1) = (17/6, 5/3).
At t = 1/2 they are 1/48, 23/48, 23/48, 1/48, so C(1/2) = (2, 23/12), about (2, 1.92).
The curve touches none of the four points. Differentiate the weights and you get C′(1) = (b₃ − b₁)/2 and C″(1) = b₁ − 2b₂ + b₃. The next segment uses b₁ to b₄, and at its start C′(0) and C″(0) come out exactly the same. Position, slope and second derivative match, so the joint is C², as the general rule in the B-spline article predicts: with distinct knots, a B-spline of order n has continuous derivatives up to order n − 2. Matching second derivatives means curvature never jumps, the idea behind the osculating circle.
How are B-splines different from Bézier curves?
Local control. For a curve of degree d, a control point's influence is non-zero in only d + 1 knot spans (B-spline, Wikipedia). For a cubic that is 4 segments, as the diagram above shows. A single Bézier curve's weights are non-zero across all of 0 < t < 1, so moving any control point reshapes the whole curve.
Continuity for free. Uniform cubic B-splines are C² at every joint. Chained Bézier pieces are only guaranteed C⁰; smoother joins need extra constraints.
Endpoints. A Bézier curve starts and ends on its first and last control points; a uniform B-spline does not.
They convert. Each cubic B-spline piece is a cubic Bézier with end points (b₀ + 4b₁ + b₂)/6 and (b₁ + 4b₂ + b₃)/6, per the same article.
A quick rule: one short shape with fixed ends, use a Bézier; a long shape you will edit piece by piece, use a B-spline. Low-degree pieces also avoid the wiggles of one high-degree polynomial seen in Runge's phenomenon.
Why does CAD use NURBS?
NURBS, non-uniform rational B-splines, give each control point a weight; when every weight equals 1, a NURBS is simply a B-spline (B-spline, Wikipedia). The weights let NURBS represent circles and ellipses exactly, which non-rational splines and Bézier curves can only approximate (NURBS, Wikipedia). NURBS are used in CAD, CAM and CAE and appear in standards such as IGES and STEP, the same article notes, so one format holds both an exact circle and a free-form shape. Les Piegl's survey of NURBS is a good next read.
If the recursion still feels like symbols on a page, the Fermi Concept Library has its own lesson for each concept in mathematics, including the derivatives used above. Then recompute C(1/2) yourself before rereading the answer.



