Algorithm Search⌘K

Definitionadvanced

Pythagorean hodograph curve

Also called PH curve.

A polynomial curve whose speed is a polynomial, x'^2 + y'^2 = s^2, so its arc length is a polynomial and its offsets are rational, after Farouki and Sakkalis.

A Pythagorean hodograph (PH) curve is a polynomial plane curve r(t)=(x(t),y(t))r(t) = (x(t), y(t)) whose derivative, the hodograph, satisfies x′(t)2+y′(t)2=σ(t)2x'(t)^2 + y'(t)^2 = \sigma(t)^2 for a polynomial σ\sigma. So the speed ∣r′(t)∣|r'(t)| is a polynomial in tt, not the square root of one. As a result the arc length of a PH curve is a polynomial, its unit tangent and normal are rational, and its offset curves are exactly rational, which makes PH curves useful for tool paths and for motion at constant speed. Farouki and Sakkalis introduced them in 1990 and showed that all of them come from two polynomials u,vu, v by x′=u2−v2x' = u^2 - v^2, y′=2uvy' = 2uv, up to a common factor.

Definition

A polynomial curve r(t)=(x(t),y(t))r(t) = (x(t), y(t)) with x,y∈R[t]x, y \in \mathbb{R}[t] is a Pythagorean hodograph curve if there is σ∈R[t]\sigma \in \mathbb{R}[t] with

x′(t)2+y′(t)2=σ(t)2for all t.x'(t)^2 + y'(t)^2 = \sigma(t)^2 \quad \text{for all } t.

Then ∣r′(t)∣=∣σ(t)∣|r'(t)| = |\sigma(t)|. This page uses the left unit normal N=(−y′,x′)/σN = (-y', x')/\sigma, which is r′r' turned by +90°+90° when σ>0\sigma > 0, and the signed curvature κ=(x′y′′−y′x′′)/∣r′∣3\kappa = (x' y'' - y' x'')/|r'|^3, positive where the curve turns toward NN. The mean curvature HH of surfaces does not appear on this page.

The characterization

Theorem (Farouki and Sakkalis 1990, from Kubota 1972). Let a,b,c∈R[t]a, b, c \in \mathbb{R}[t]. Then a2+b2=c2a^2 + b^2 = c^2 if and only if there are w,u,v∈R[t]w, u, v \in \mathbb{R}[t] with gcd⁡(u,v)=1\gcd(u, v) = 1 and

a=w(u2−v2),b=2wuv,c=±w(u2+v2).a = w (u^2 - v^2), \qquad b = 2 w u v, \qquad c = \pm w (u^2 + v^2).

So rr is a PH curve if and only if x′=w(u2−v2)x' = w(u^2 - v^2) and y′=2wuvy' = 2wuv for such w,u,vw, u, v, and then σ=±w(u2+v2)\sigma = \pm w (u^2 + v^2).

Proof. "If": (u2−v2)2+(2uv)2=u4+2u2v2+v4=(u2+v2)2(u^2 - v^2)^2 + (2uv)^2 = u^4 + 2u^2v^2 + v^4 = (u^2 + v^2)^2, and multiply by w2w^2.

"Only if". If a=b=0a = b = 0, then c=0c = 0; take w=0w = 0, u=1u = 1, v=0v = 0. Otherwise let w=gcd⁡(a,b)w = \gcd(a, b) in R[t]\mathbb{R}[t] (see polynomial GCD), and write a=wa1a = w a_1, b=wb1b = w b_1 with gcd⁡(a1,b1)=1\gcd(a_1, b_1) = 1. Then w2(a12+b12)=c2w^2 (a_1^2 + b_1^2) = c^2, so w2w^2 divides c2c^2, and since R[t]\mathbb{R}[t] is a unique factorization domain, ww divides cc. Write c=wc1c = w c_1, so that a12+b12=c12a_1^2 + b_1^2 = c_1^2.

Work in C[t]\mathbb{C}[t], also a unique factorization domain, and put A=a1+ib1A = a_1 + i b_1 and Aˉ=a1−ib1\bar A = a_1 - i b_1. Then AAˉ=c12A \bar A = c_1^2.

  • AA and Aˉ\bar A are coprime. A common factor pp of AA and Aˉ\bar A divides A+Aˉ=2a1A + \bar A = 2a_1 and A−Aˉ=2ib1A - \bar A = 2i b_1. Since gcd⁡(a1,b1)=1\gcd(a_1, b_1) = 1 in R[t]\mathbb{R}[t], there are s,q∈R[t]s, q \in \mathbb{R}[t] with sa1+qb1=1s a_1 + q b_1 = 1, so pp divides 11 and is a unit.
  • AA is a constant times a square. Each linear factor t−zt - z of c12c_1^2 has even multiplicity. Since AA and Aˉ\bar A are coprime, each such factor divides only one of them, with its full even multiplicity. So A=λh2A = \lambda h^2 with λ∈C∖{0}\lambda \in \mathbb{C} \setminus \{0\} and h∈C[t]h \in \mathbb{C}[t].
  • Take a complex square root. Write λ=μ2\lambda = \mu^2 with μ∈C\mu \in \mathbb{C}, and let u,v∈R[t]u, v \in \mathbb{R}[t] be the real and imaginary parts of μh\mu h. Then A=(u+iv)2=(u2−v2)+i(2uv)A = (u + iv)^2 = (u^2 - v^2) + i (2uv), so a1=u2−v2a_1 = u^2 - v^2 and b1=2uvb_1 = 2uv.

A common factor of uu and vv in R[t]\mathbb{R}[t] would divide a1a_1 and b1b_1, so gcd⁡(u,v)=1\gcd(u, v) = 1. Finally c12=a12+b12=(u2+v2)2c_1^2 = a_1^2 + b_1^2 = (u^2 + v^2)^2, so (c1−(u2+v2))(c1+(u2+v2))=0(c_1 - (u^2 + v^2))(c_1 + (u^2 + v^2)) = 0, and c1=±(u2+v2)c_1 = \pm (u^2 + v^2) because R[t]\mathbb{R}[t] has no zero divisors. Multiply by ww. □\square

No exchange of x′x' and y′y' is needed: the complex square root μ\mu absorbs the rotation that an exchange would give. In complex form the theorem says that the hodograph x′+iy′x' + i y' of a PH curve is w(t) z(t)2w(t)\, z(t)^2 with z=u+iv∈C[t]z = u + iv \in \mathbb{C}[t] (Farouki 2008, Chapter 19).

Degree. If w=1w = 1 and m=max⁡(deg⁡u,deg⁡v)m = \max(\deg u, \deg v), then rr has degree 2m+12m + 1, which is odd. The PH cubics come from linear u,vu, v, and the PH quintics from quadratic u,vu, v. A quintic has enough free parameters to match end points and end tangents, which is the PH quintic Hermite interpolation problem.

What the property gives

  • Polynomial arc length. The arc length from 00 to tt is s(t)=∫0t∣σ(τ)∣ dτs(t) = \int_0^t |\sigma(\tau)|\, d\tau. If σ\sigma has no sign change on [0,t][0, t], this is ±∫0tσ\pm \int_0^t \sigma, a polynomial in tt of degree deg⁡σ+1\deg \sigma + 1. When w=1w = 1, σ=u2+v2≥0\sigma = u^2 + v^2 \ge 0, so ss is a polynomial on every interval. Then the inverse problem of arc length parametrization, finding tt with s(t)=Ss(t) = S, is the root of a monotone polynomial, which a parametric CNC interpolator solves in real time by a few Newton steps.
  • Rational normal and offsets. Where σ≠0\sigma \ne 0, N=(−y′,x′)/σN = (-y', x')/\sigma is rational, so the offset rd=r+dN=(σr+d(−y′,x′))/σr_d = r + d N = (\sigma r + d(-y', x'))/\sigma is a rational curve for every distance dd. If rr has degree nn, the numerator has degree at most 2n−12n - 1 and the denominator degree n−1n - 1. For a general polynomial curve the offset is not rational (see offset curve).
  • Rational curvature. With w=1w = 1 and z=u+ivz = u + iv, r′=z2r' = z^2 and r′′=2zz′r'' = 2 z z', so x′y′′−y′x′′=Im⁡(zˉ2⋅2zz′)=2∣z∣2Im⁡(zˉz′)x' y'' - y' x'' = \operatorname{Im}(\bar z^2 \cdot 2 z z') = 2 |z|^2 \operatorname{Im}(\bar z z'), and
κ=2(uv′−u′v)(u2+v2)2.\kappa = \frac{2 (u v' - u' v)}{(u^2 + v^2)^2}.
  • Bézier form of PH cubics. A cubic Bézier curve with control polygon legs L1,L2,L3L_1, L_2, L_3 is a PH curve if and only if ∣L2∣=∣L1∣∣L3∣|L_2| = \sqrt{|L_1| |L_3|} and the angle between L1L_1 and L2L_2 equals the angle between L2L_2 and L3L_3 (Farouki and Sakkalis 1990).

Examples and non-examples

The PH cubic

u=1u = 1, v=tv = t give r(t)=(t−t3/3, t2)r(t) = (t - t^3/3,\ t^2) with σ=1+t2\sigma = 1 + t^2; its exact offset and its cusps are on the offset curve page. Its arc length from 00 to 11 is ∫01(1+t2) dt=4/3\int_0^1 (1 + t^2)\, dt = 4/3. On [0,1][0, 1] its Bézier control points are (0,0)(0, 0), (1/3,0)(1/3, 0), (2/3,1/3)(2/3, 1/3), (2/3,1)(2/3, 1), with legs (1/3,0)(1/3, 0), (1/3,1/3)(1/3, 1/3), (0,2/3)(0, 2/3) of lengths 1/31/3, 2/3\sqrt 2/3, 2/32/3. So ∣L2∣2=2/9=∣L1∣∣L3∣|L_2|^2 = 2/9 = |L_1| |L_3|, and both angles are 45°45°.

A PH quintic

Take z=(1+it)2z = (1 + it)^2, that is u=1−t2u = 1 - t^2 and v=2tv = 2t, with gcd⁡(u,v)=1\gcd(u, v) = 1. Then

x′=(1−t2)2−4t2=1−6t2+t4,y′=4t(1−t2),σ=(1+t2)2,x' = (1 - t^2)^2 - 4t^2 = 1 - 6t^2 + t^4, \qquad y' = 4t(1 - t^2), \qquad \sigma = (1 + t^2)^2,
r(t)=(t−2t3+t55, 2t2−t4).r(t) = \left(t - 2t^3 + \tfrac{t^5}{5},\ 2t^2 - t^4\right).
  • The arc length from 00 to 11 is ∫01(1+2t2+t4) dt=1+2/3+1/5=28/15\int_0^1 (1 + 2t^2 + t^4)\, dt = 1 + 2/3 + 1/5 = 28/15.
  • uv′−u′v=2(1−t2)+4t2=2(1+t2)uv' - u'v = 2(1 - t^2) + 4t^2 = 2(1 + t^2), so κ=4/(1+t2)3>0\kappa = 4/(1 + t^2)^3 > 0, and the curve has no inflection.
  • At t=1t = 1, r=(−4/5,1)r = (-4/5, 1), r′=(−4,0)r' = (-4, 0) and σ=4\sigma = 4, so N=(0,−1)N = (0, -1), and the offset point at distance dd is (−4/5,1−d)(-4/5, 1 - d), exactly.

Non-example: the parabola

r(t)=(t,t2)r(t) = (t, t^2) has x′2+y′2=1+4t2x'^2 + y'^2 = 1 + 4t^2. This polynomial has the simple complex roots ±i/2\pm i/2, and a square of a polynomial has only roots of even multiplicity, so it is not a square. The arc length ∫011+4t2 dt=52+14asinh⁡2≈1.478943\int_0^1 \sqrt{1 + 4t^2}\, dt = \frac{\sqrt 5}{2} + \frac{1}{4} \operatorname{asinh} 2 \approx 1.478943 is not a polynomial value, and the offsets of the parabola are not rational.

Degenerate cases

  • Lines. Every polynomial parametrization of a line is a PH curve: x′=p(t)cos⁡ϕx' = p(t) \cos \phi, y′=p(t)sin⁡ϕy' = p(t) \sin \phi has σ=p\sigma = p. In the theorem, w=pw = p and u+ivu + iv is a constant.
  • Cusps. If ww has a real root in the interval, then r′=0r' = 0 there and the curve can have a cusp. There σ\sigma changes sign, the arc length is only piecewise polynomial, and the normal NN flips. Designs usually take w=1w = 1.
  • Spatial PH curves. Polynomial space curves with x′2+y′2+z′2=σ2x'^2 + y'^2 + z'^2 = \sigma^2. They are described by a quaternion polynomial A(t)\mathcal{A}(t) with r′=A i A∗r' = \mathcal{A}\, \mathbf{i}\, \mathcal{A}^*, the analogue of z2z^2 in the plane (Farouki 2008, Chapter 22), related to unit quaternion rotation.
  • PH quintic Hermite interpolation. The construction of a planar PH quintic with given end points and end derivatives; see PH quintic Hermite interpolation.
  • Offset curve. The curve at constant normal distance; see offset curve and curve offsetting.
  • Rational curves. The exact offset of a PH curve is a rational Bézier curve on each interval where σ≠0\sigma \ne 0.

References

  1. Rida T. Farouki and Takis Sakkalis, Pythagorean hodographs, IBM Journal of Research and Development 34(5), 1990, pp. 736 to 752 (the definition, the characterization x' = w(u^2 - v^2), y' = 2wuv, polynomial arc length, rational offsets, and the Bézier form of PH cubics)
  2. K. K. Kubota, Pythagorean triples in unique factorization domains, American Mathematical Monthly 79(5), 1972, pp. 503 to 505 (the form of all solutions of a^2 + b^2 = c^2 in a unique factorization domain)
  3. Rida T. Farouki, Pythagorean-Hodograph Curves, Algebra and Geometry Inseparable, Springer, 2008, Chapter 17, Pythagorean-hodograph curves; Chapter 19, Complex representation; Chapter 22, Quaternion representation (spatial PH curves)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/PW764Q/text.yaml