Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 14

Bézier Curves and Bernstein Polynomials

Recommended resources

Welcome to our next lesson on parametric curves. In the previous session, we explored how to analyze the geometry of any parametric curve by computing its tangent and curvature. This gave us the tools to measure a curve's direction and bend, but it didn't tell us how to create curves that have the specific shapes we want. For designers, direct and intuitive control over form is paramount.

Today, we delve into one of the most elegant and foundational solutions to this challenge: the Bézier curve. You've likely encountered these curves already, as they are the backbone of vector graphics software used in print media, as well as in nearly all 3D modeling and animation systems. Our goal is to define a Bézier curve precisely by understanding its two core components: a set of control points that guide its shape, and a family of special polynomials, known as the Bernstein basis, that blend these points together into a smooth, continuous path.

The Intuitive Idea: Building Curves from Lines

At its heart, a Bézier curve is generated through a surprisingly simple and recursive process of linear interpolation. As you know from your math background, linear interpolation (or "lerp") finds a point along the line segment between two points, and , using a parameter from 0 to 1. The formula is .

A Bézier curve elegantly extends this idea. Instead of interpolating just once, we create a cascade of interpolations.

  • A linear Bézier curve (degree 1) with two control points, and , is simply the line segment between them.
  • A quadratic Bézier curve (degree 2) uses three control points: . For any given , we first find a point on the segment and another on . We then connect these two new points and find a point on that segment using the same . The path traced by this final point as goes from 0 to 1 is the quadratic Bézier curve.
  • A cubic Bézier curve (degree 3), the most common type, uses four control points and adds another layer to this process.

This nested interpolation scheme is known as the de Casteljau algorithm, a topic we will formalize in our next lesson. For now, the visual intuition is what matters.

The following video by Freya Holmér provides one of the best visual explanations of this concept.

The Beauty of Bézier Curves

This video brilliantly illustrates how Bézier curves are constructed from the ground up using repeated linear interpolation.

Watch the segment from the beginning of the explanation. Pay close attention to how the simple "lerp" function is layered to create quadratic and cubic curves from a set of control points.


From Geometric Construction to a Single Formula

This process of nested interpolations is elegant geometrically, but to analyze and implement it efficiently, we need a single, explicit formula. We can derive this by algebraically expanding the lerp operations.

Let's take the cubic curve with control points . The final point is the result of three levels of interpolation. If we write out the full expression for and collect the terms associated with each control point , we discover something remarkable. The final position is a weighted sum of the original control points:

Each weight is a specific polynomial in . For the cubic case, these polynomials are:

This shifts our perspective from a recursive process to a blending function. Each control point's influence on the final curve is dictated by its corresponding polynomial weight.

The same video continues to explain this algebraic rearrangement beautifully.

The Beauty of Bézier Curves

This next segment demonstrates how the nested 'lerp' math can be rearranged to reveal the underlying polynomial blending functions.

Continue watching from where the math is expanded. The key insight is seeing the final formula re-expressed as a weighted sum of the control point vectors.


The Bernstein Polynomial Basis

The polynomials we derived are not arbitrary; they are members of a famous family known as Bernstein basis polynomials. The formal definition of a Bézier curve of degree with control points is given by this explicit formula:

The functions are the Bernstein basis polynomials, defined as:

Here, is the binomial coefficient, which you'll recall from algebra and probability theory. It represents the number of ways to choose items from a set of .

The following video provides a concise mathematical summary of this general form.

Bezier Curves

This lecture from the "Mathematics of Computer Graphics" series gives the formal, generalized definition of a Bézier curve using Bernstein polynomials.

Watch the segment that introduces the general form. This connects the visual intuition we've built to the rigorous mathematical notation.

For a more detailed textual reference, the Wikipedia article on Bézier curves lays out the definition very clearly.

Bézier curve

This article provides the explicit mathematical formulas for the Bézier curve and the Bernstein basis polynomials.

First, read the short section "Explicit definition" to see the main summation formula. Then, read the next section, "Terminology", which formally defines the Bernstein basis polynomials and the role of control points.


Properties of the Blending Functions

The genius of this formulation lies in the properties of the Bernstein polynomials. They are not just any polynomials; they are perfectly suited to be "blending functions."

Let's look at what they look like for a cubic curve (degree 3, ).

The four Bernstein basis polynomials, \(b_{i,3}(t)\), for a cubic Bézier curve. Each polynomial dictates the "influence" of one of the four control points across the parameter \(t\).

And here for a degree 4 curve:

The five Bernstein basis polynomials of degree 4, \(b_{i,4}(t)\). The orange line at the top shows that for any value of \(t\), the sum of all five polynomials is exactly 1.

These graphs reveal two critical properties:

  1. Partition of Unity: For any , the sum of all the Bernstein basis polynomials of a given degree is exactly 1.

    This is a direct consequence of the binomial theorem, as . This property ensures that the curve is a true "blend" or weighted average of its control points. It also means the curve's shape is independent of the coordinate system's origin.

  2. Positivity: For any , all . This means all weights are non-negative. Combined with the partition of unity, this guarantees that the entire Bézier curve lies within the convex hull of its control points. This is a powerful property, as it gives a predictable boundary for the curve's location.

The way these blending functions "trade off" influence is what gives designers such intuitive control.

Bezier Curves

This final clip explains how the behavior of the Bernstein polynomials translates into influence over the curve's shape.

Watch this segment from "how do these behave" to see a graphical explanation of how each control point's influence rises and falls as the parameter t changes.

As the video explains, at , only the first polynomial is non-zero (it is 1), so . The curve starts at the first control point. Similarly, at , only the last polynomial is 1, so . The curve always ends at the last control point. In between, the other points pull the curve toward them, with the influence of being strongest around .

[PDF] Day 13 Bezier Curves & Bernstein Polynomials - Rose-Hulman

For a more rigorous mathematical treatment, these course notes from Rose-Hulman Institute of Technology provide an excellent summary of the properties of Bernstein polynomials.

Please read the section titled "Bernstein Polynomials and Bezier Curves". This text provides an inductive argument for the formula and explicitly states the key properties, including the partition of unity and symmetry.


Conclusion

In this lesson, we have defined the Bézier curve, a cornerstone of computational design. We moved from an intuitive, geometric construction to a formal, explicit mathematical definition.

Here are the key takeaways:

  • A Bézier curve is a parametric curve defined by a set of control points.
  • The curve is a weighted sum of these control points, where the weights are given by Bernstein basis polynomials.
  • The formula for a Bézier curve of degree is .
  • Bernstein polynomials form a partition of unity, meaning they sum to 1. This ensures the curve is a proper blend of its control points and lies within their convex hull.
  • The curve always passes through the first and last control points, and the intermediate points act as "magnets" that pull the curve's shape.

We began this lesson by exploring a recursive geometric construction. In our next lesson, we will formalize this process as the de Casteljau algorithm. We will see that it's not only a way to conceptualize the curve, but also an efficient and numerically stable method for calculating any point on it.