ArticleslgStudy

mathematics

B-spline

B-spline is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand B-spline rather than just read about it. In short: In numerical analysis, a B-spline (short for basis spline) is a type of spline function designed to have minimal support (overlap) for a given degree, smoothness, and set of breakpoints (knots that partition its domain), making it a fundamental building block for all spline functions of that degree. A B-spline is defined as a piecewise polynomial of order n, meaning a degree of n−1.

B-spline — main illustration
B-spline — illustration

Key takeaways

  • B-spline belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect B-spline to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of B-spline from memory before moving on to harder problems.

Reference excerpt

In numerical analysis, a B-spline (short for basis spline) is a type of spline function designed to have minimal support (overlap) for a given degree, smoothness, and set of breakpoints (knots that partition its domain), making it a fundamental building block for all spline functions of that degree. A B-spline is defined as a piecewise polynomial of order n, meaning a degree of n−1. It is built from sections that meet at these knots, where the continuity of the function and its derivatives depends on how often each knot repeats (its multiplicity). Any spline function of a specific degree can be uniquely expressed as a linear combination of B-splines of that degree over the same knots, a property that makes them versatile in mathematical modeling. A special subtype, cardinal B-splines, uses equidistant knots. The concept of B-splines traces back to the 19th century, when Nikolai Lobachevsky explored similar ideas at Kazan University in Russia, though the term "B-spline" was coined by Isaac Jacob Schoenberg in 1967, reflecting their role as basis functions.

B-splines are widely used in fields like computer-aided design (CAD) and computer graphics, where they shape curves and surfaces through a set of control points, as well as in data analysis for tasks like curve fitting and numerical differentiation of experimental data.

Definition

A B-spline of order p+1 is a collection of piecewise polynomial functions Bi,p(t) of degree p in a variable t. The values of t where the pieces of polynomial meet are known as knots, denoted t0,t1,t2,…,tm and sorted into nondecreasing order. For a given sequence of knots, there is, up to a scaling factor, a unique spline Bi,p(t) satisfying

Bi,p(t)={non-zeroif ti≤t<ti+p+1,0if t<ti∨ti+p+1≤t. If we add the additional constraint that

∑i=0m−p−1Bi,p(t)=1 for all t between the knots tp and tm−p, then the scaling factor of Bi,p(t) becomes fixed. The knots in-between (and not including) tp and tm−p are called the internal knots. B-splines can be constructed by means of the Cox–de Boor recursion formula. We start with the B-splines of degree p=0, i.e. piecewise constant polynomials.

Bi,0(t):={1if ti≤t<ti+1,0otherwise. The higher (p+1)-degree B-splines are defined by recursion

Bi,p(t):=t−titi+p−tiBi,p−1(t)+ti+p+1−tti+p+1−ti+1Bi+1,p−1(t).

Properties A B-spline function is a combination of flexible bands that is controlled by a number of points that are called control points, creating smooth curves. These functions are used to create and manage complex shapes and surfaces using a number of points. B-spline function and Bézier functions are applied extensively in shape optimization methods. A B-spline of order n is a piecewise polynomial function of degree n−1 in a variable x. It is defined over n locations ti, called knots or breakpoints, which must be in non-descending order ti≤ti+1. The B-spline contributes only in the range between the first and last of these knots and is zero elsewhere. If each knot is separated by the same distance h (where h=ti+1−ti) from its predecessor, the knot vector and the corresponding B-splines are called "uniform" (see cardinal B-spline below). For each finite knot interval where it is non-zero, a B-spline is a polynomial of degree n−1. A B-spline is a continuous function at the knots. When all knots belonging to the B-spline are distinct, its derivatives are also continuous up to the derivative of degree n−2. If the knots are coincident at a given value of x, the continuity of derivative order is reduced by 1 for each additional coincident knot. B-splines may share a subset of their knots, but two B-splines defined over exactly the same knots are identical. In other words, a B-spline is uniquely defined by its knots. One distinguishes internal knots and end points. Internal knots cover the x-domain one is interested in. Since a single B-spline already extends over n knots, it follows that the internal knots need to be extended with n−1 endpoints on each side, to give full support to the first and last B-spline, which affect the internal knot intervals. The values of the endpoints do not matter, usually the first or last internal knot is just repeated. The usefulness of B-splines lies in the fact that any spline function of order n on a given set of knots can be expressed as a linear combination of B-splines:

Sn,𝐭(x)=∑iαiBi,n(x). B-splines play the role of basis functions for the spline function space, hence the name. This property follows from the fact that all pieces have the same continuity properties, within their individual range of support, at the knots. Expressions for the polynomial pieces can be derived by means of the Cox–de Boor recursion formula

Bi,0(x):={1if ti≤x<ti+1,0otherwise. Bi,k(x):=x−titi+k−tiBi,k−1(x)+ti+k+1−xti+k+1−ti+1Bi+1,k−1(x). That is, Bi,0(x) is piecewise constant one or zero indicating which knot span x is in (zero if knot span i is repeated). The recursion equation is in two parts:

x−titi+k−ti ramps from zero to one as x goes from ti to ti+k, and

ti+k+1−xti+k+1−ti+1 ramps from one to zero as x goes from ti+1 to ti+k+1. The corresponding Bs are zero outside those respective ranges. For example, Bi,1(x) is a triangular function that is zero below x=ti, ramps to one at x=ti+1 and back to zero at and beyond x=ti+2. However, because B-spline basis functions have local support, B-splines are typically computed by algorithms that do not need to evaluate basis functions where they are zero, such as de Boor's algorithm. This relation leads directly to the FORTRAN-coded algorithm BSPLV, which generates values of the B-splines of order n at x. The following scheme illustrates how each piece of order n is a linear combination of the pieces of B-splines of order n − 1 to its left.

000Bi−2,2Bi−1,1Bi,0Bi−1,2Bi,10Bi,200 Application of the recursion formula with the knots at (0,1,2,3) gives the piecewise components of the uniform B-spline of order 3

b0=x2/2b1=(−2x2+6x−3)/2b2=(3−x)2/2 where

B0,2(x)={b0if 0≤x<1,b1if 1≤x<2,b2if 2≤x<3,0otherwise. These pieces are shown in the diagram. The continuity property of a quadratic spline function and its first derivative at the internal knots are illustrated, as follows

At x=1: b0=b1=0.5, db0dx=db1dx=1.At x=2: b1=b2=0.5, db1dx=db2dx=−1. The second derivative of a B-spline of degree 2 is discontinuous at the knots:

d2b0dx2=1, d2b1dx2=−2, d2b2dx2=1. Faster variants of the de Boor algorithm have been proposed, but they suffer from comparatively lower stability.

… excerpt ends here. Continue reading the full article.

Illustrations

B-spline: Spline curve drawn as a weighted sum of B-splines with control points/control polygon, and marked component curves
Spline curve drawn as a weighted sum of B-splines with control points/control polygon, and marked component curves
B-spline: Cardinal quadratic B-spline with knot vector (0, 0, 0, 1, 2, 3, 3, 3) and control points (0, 0, 1, 0, 0), and its first derivative
Cardinal quadratic B-spline with knot vector (0, 0, 0, 1, 2, 3, 3, 3) and control points (0, 0, 1, 0, 0), and its first derivative
B-spline: Cardinal cubic B-spline with knot vector (−2, −2, −2, −2, −1, 0, 1, 2, 2, 2, 2) and control points (0, 0, 0, 6, 0, 0, 0), and its first derivative
Cardinal cubic B-spline with knot vector (−2, −2, −2, −2, −1, 0, 1, 2, 2, 2, 2) and control points (0, 0, 0, 6, 0, 0, 0), and its first derivative
B-spline: Cardinal quartic B-spline with knot vector (0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 5, 5, 5, 5) and control points (0, 0, 0, 0, 1, 0, 0, 0, 0), and its first and second derivatives
Cardinal quartic B-spline with knot vector (0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 5, 5, 5, 5) and control points (0, 0, 0, 0, 1, 0, 0, 0, 0), and its first and second derivatives
B-spline: NURBS curve – polynomial curve defined in homogeneous coordinates (blue) and its projection on plane – rational curve (red)
NURBS curve – polynomial curve defined in homogeneous coordinates (blue) and its projection on plane – rational curve (red)

Worked examples

Example 1 — a first encounter with B-spline

Start with the simplest possible case. Write down what B-spline claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to B-spline before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about B-spline ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of B-spline

In research
B-spline appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses B-spline in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
B-spline is common in secondary-school and first-year university syllabi. It links to neighbouring topics Interpolation, Splines (mathematics), so understanding it makes those chapters shorter.
In everyday life
Look for B-spline outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “B-spline” →

How to study B-spline in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what B-spline means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain B-spline out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is B-spline in simple terms?

In numerical analysis, a B-spline (short for basis spline) is a type of spline function designed to have minimal support (overlap) for a given degree, smoothness, and set of breakpoints (knots that partition its domain), making it a fundamental building block for all spline functions of that degree…

Why does B-spline matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study B-spline?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on B-spline.

Tags

  • Interpolation
  • Splines (mathematics)

Keep exploring