July 17th, 2024

Closed form arc length parametrization is impossible for quadratic Bézier curves

The blog explores arc length parametrizations of Bézier curves, focusing on quadratic and cubic types in computer graphics. It discusses challenges, closed form solutions, Schanuel's conjecture, and limitations in mathematical contexts.

Read original articleLink Icon
InterestDebateCuriosity
Closed form arc length parametrization is impossible for quadratic Bézier curves

This blog post delves into the arc length parametrizations of Bézier curves, focusing on quadratic and cubic Bézier curves commonly used in computer graphics. While the arc length of cubic Bézier curves lacks a closed form solution and requires numerical computation, the post explores the closed form expression for quadratic Bézier curves. It discusses the challenge of finding an arc length parametrization for quadratic Bézier curves and the absence of a closed form solution, linking it to Schanuel's conjecture. The conjecture, which posits no nontrivial polynomial relationship between certain numbers, plays a crucial role in proving the nonexistence of closed form solutions for specific equations involving exponential and logarithmic functions. The post navigates through mathematical concepts like irreducible polynomials, algebraic numbers, closed form numbers, and elementary numbers to establish the limitations of closed form solutions in various mathematical contexts. By applying Lin's theorem and leveraging Schanuel's conjecture, the post demonstrates the impossibility of achieving a closed form formula for determining points on quadratic Bézier curves at specific arc lengths from the starting point.

Related

How does a computer/calculator compute logarithms?

How does a computer/calculator compute logarithms?

Computers and calculators compute logarithms using geometric series and polynomial equations from calculus. Natural logarithm's relation to $\frac{1}{1+x}$ is explained through curve areas. Polynomial series derived from integrating geometric series compute natural logarithms, but converge quickly only for $|x| < \frac{1}{2}."

Desperately Seeking Squircles

Desperately Seeking Squircles

An engineer aims to incorporate Apple's 'squircle' shape into Figma, navigating mathematical complexities with superellipse formulas and Bézier curves. Challenges in mirroring and transitioning the shape prompt a proposed smoothing scheme for versatile designs. Differential geometry aids in mathematically analyzing the squircle's perimeter, showcasing the intricate process of digital design translation.

What makes e natural? (2004)

What makes e natural? (2004)

The number e in mathematics, introduced by Euler, has unique properties like transcendence and relation to trigonometric functions. Historical figures like Bürgi, Napier, and Briggs contributed to logarithmic advancements. E's significance lies in its role in exponential and logarithmic functions, crucial in calculus.

String Theory Unravels New Pi Formula: A Quantum Leap in Mathematics

String Theory Unravels New Pi Formula: A Quantum Leap in Mathematics

Scientists at IISc discovered a new pi representation through string theory, combining Euler-Beta Function and Feynman Diagram. This simplifies high-energy particle calculations, potentially impacting various fields with practical applications.

New large value estimates for Dirichlet polynomials

New large value estimates for Dirichlet polynomials

The paper by Larry Guth and James Maynard introduces enhanced bounds for Dirichlet polynomials, impacting prime number theory and the Riemann zeta function. It offers zero density estimates and primes' behavior in short intervals, aiding prime number distribution comprehension. The 48-page paper falls under Number Theory with MSC classes 11M26 and 11N05, holding substantial implications for number theory.

AI: What people are saying
The comments on the article about arc length parametrizations of Bézier curves discuss various aspects and challenges.
  • There is a debate on the practicality of closed form solutions versus numerical methods, with some arguing that numerical methods are still needed even for closed forms.
  • Several comments mention that cubic Bézier curves require numerical methods for arc length due to the involvement of elliptic integrals.
  • Some commenters highlight alternative curves like Pythagorean-Hodograph curves and Euler spirals, noting their practical applications and stability.
  • One comment points out the lack of a provided closed form expression for quadratic Bézier curves in the article, offering a reference for those interested.
  • There is an appreciation for the article's educational value in explaining complex mathematical concepts to lay readers.
Link Icon 10 comments
By @LiamPowell - 7 months
> It is well known in the computer graphics community that the arc length of cubic Bézier curves has no closed form and has to be computed numerically. Sadly, I’ve not yet seen a proof sketch for that, though.

On a somewhat related note: There are of course exceptions to this, such as Pythagorean-Hodograph curves, which do have closed form solutions and would be suitable for a huge number of use-cases. Sadly there's not too many mathematicians working in computer graphics so we just end up with numerical solutions to everything.

By @nvpr - 7 months
The linked article says:

> The arc length of quadratic Bézier curves actually can be computed with a closed form expression.

While indeed true, the article doesn't provide the closed form expression. The curious or unsatisfied reader can find the solution for the 2D case at the top of page 7 of this SIGGRAPH paper:

https://developer.download.nvidia.com/devzone/devcenter/game...

The quadratic function Q(t)=(x,y) is of the monomial form At^2 + Bt + C where A, B, and C are 2D coefficients (see page 5) where A is non-zero.

Simply convert your Bezier quadratic form to monomial form to apply this equation.

This equation still doesn't provide an arc length parameterization, the article's actual focus.

But if you did, say, want to move 26% (or N%, more generally) of the arc length along a quadratic Bezier segment, first compute the total (100%) arc length with the paper's formula (take care doing so as the paper suggests). Then split the Bezier at a halfway guess (try t=0.5). Again use the formula to evaluate the split quadratic. Repeating this in a divide and conquer fashion, you narrow in on the t value very close to 26% (or N%) of the arc length.

2D vector graphics standards expect to dash cubic & quadratic Bezier segments so some practical strategy to provide an arc length parameterization -- even if unavailable in closed form.

By @magnio - 7 months
> It is well known in the computer graphics community that the arc length of cubic Bézier curves has no closed form and has to be computed numerically. Sadly, I’ve not yet seen a proof sketch for that, though.

A cubic Bezier curve B(t) is a cubic polynomial of t in [0, 1], parameterized by the four control points. Since it is continuously differentiable, its length is the integral from 0 to 1 of the square root of (1 + (B')^2), a quartic. Such an integral is well known to be reducible to the elliptic integrals, which have no closed form.

By @btown - 7 months
I love articles that walk a lay person through a mathematical discovery, piece by piece. An incredibly fun read.
By @red_trumpet - 7 months
Interesting topic!

However, I would like to point out that the dichotomy closed form <-> numerical methods is somewhat artificial. Even if one could express an arc length parametrization using exp and log, one would still need numerical methods to compute exp and log.

This somehow leads to the next question: What kind of functions are suitable to describe the arc length?

By @sfpotter - 7 months
I'm not sure how much more "closed form" you need than elliptic integrals.

For another approach, expand sqrt(1 + B'(t)^2) in a Chebyshev series and you're off to the races.

By @cyanmagenta - 7 months
Unless Schanuel’s conjecture is wrong, of course.
By @a_sync - 7 months
Yeah, interesting stuff. So, the whole debate between closed forms and numerical methods is kind of overplayed. Even if you had a closed form for arc length, you’d still need numerical methods to compute exp and log. What functions actually work best for arc length? That’s the real question.

Also, while some folks are hyped about Pythagorean-Hodograph curves, I think they’re kinda niche. Euler spirals seem more practical, even if you have to compute a special function for them. Numerical solutions tend to be more stable anyway, especially in cases where a closed form might break down, like near straight lines.