High order parametric polynomial approximation of conic sections

Similar documents
On Parametric Polynomial Circle Approximation

Curvature variation minimizing cubic Hermite interpolants

Geometric Lagrange Interpolation by Planar Cubic Pythagorean-hodograph Curves

Approximation of Circular Arcs by Parametric Polynomial Curves

ON GEOMETRIC INTERPOLATION BY PLANAR PARAMETRIC POLYNOMIAL CURVES

Motion design with Euler-Rodrigues frames of quintic Pythagorean-hodograph curves

ON INTERPOLATION BY PLANAR CUBIC G 2 PYTHAGOREAN-HODOGRAPH SPLINE CURVES

Geometric Interpolation by Planar Cubic Polynomials

Approximation of Circular Arcs by Parametric Polynomials

An O(h 2n ) Hermite approximation for conic sections

Barycentric coordinates for Lagrange interpolation over lattices on a simplex

A quaternion approach to polynomial PN surfaces

b = 2, c = 3, we get x = 0.3 for the positive root. Ans. (D) x 2-2x - 8 < 0, or (x - 4)(x + 2) < 0, Therefore -2 < x < 4 Ans. (C)

ELLIPTIC CURVES BJORN POONEN

Geometric meanings of the parameters on rational conic segments

1. The positive zero of y = x 2 + 2x 3/5 is, to the nearest tenth, equal to

Math Academy I Fall Study Guide. CHAPTER ONE: FUNDAMENTALS Due Thursday, December 8

Introduction. Chapter Points, Vectors and Coordinate Systems

Introduction to Computer Graphics (Lecture No 07) Ellipse and Other Curves

ECM Calculus and Geometry. Revision Notes

EXPLICIT ERROR BOUND FOR QUADRATIC SPLINE APPROXIMATION OF CUBIC SPLINE

SKILL BUILDER TEN. Graphs of Linear Equations with Two Variables. If x = 2 then y = = = 7 and (2, 7) is a solution.

WA State Common Core Standards - Mathematics

Things You Should Know Coming Into Calc I

Chordal cubic spline interpolation is fourth order accurate

Planar interpolation with a pair of rational spirals T. N. T. Goodman 1 and D. S. Meek 2

ALGEBRA 2 X. Final Exam. Review Packet

Introduction to conic sections. Author: Eduard Ortega

MATH 205C: STATIONARY PHASE LEMMA

MCPS Algebra 2 and Precalculus Standards, Categories, and Indicators*

Classical transcendental curves

Pre-Calculus and Trigonometry Capacity Matrix

Precalculus Table of Contents Unit 1 : Algebra Review Lesson 1: (For worksheet #1) Factoring Review Factoring Using the Distributive Laws Factoring

PURE MATHEMATICS AM 27

Some Highlights along a Path to Elliptic Curves

Chapter 2 Formulas and Definitions:

G 1 Hermite Interpolation by Minkowski Pythagorean Hodograph Cubics

Chapter 8B - Trigonometric Functions (the first part)

Calculus I

PURE MATHEMATICS AM 27

To Be (a Circle) or Not to Be?

Algebra 2. Chapter 4 Exponential and Logarithmic Functions. Chapter 1 Foundations for Functions. Chapter 3 Polynomial Functions

On the Normal Parameterization of Curves and Surfaces

Algebra 2 Khan Academy Video Correlations By SpringBoard Activity

Approximation by Conditionally Positive Definite Functions with Finitely Many Centers

Algebra 2 Khan Academy Video Correlations By SpringBoard Activity

Distance and Midpoint Formula 7.1

MA 323 Geometric Modelling Course Notes: Day 07 Parabolic Arcs

Things you should have learned in Calculus II

TEST CODE: MMA (Objective type) 2015 SYLLABUS

Learning Objectives for Math 166

Chapter 3a Topics in differentiation. Problems in differentiation. Problems in differentiation. LC Abueg: mathematical economics

ADDITIONAL MATHEMATICS

Alg Review/Eq & Ineq (50 topics, due on 01/19/2016)

Two chain rules for divided differences

Math 370 Semester Review Name

IYGB. Special Paper U. Time: 3 hours 30 minutes. Created by T. Madas. Created by T. Madas

x = x y and y = x + y.

UNIVERSITY OF CAMBRIDGE Faculty of Mathematics MATHEMATICS WORKBOOK

DESK Secondary Math II

MATH II CCR MATH STANDARDS

Math 370 Semester Review Name

THE INVERSE TRIGONOMETRIC FUNCTIONS

PRECALCULUS BISHOP KELLY HIGH SCHOOL BOISE, IDAHO. Prepared by Kristina L. Gazdik. March 2005

154 Chapter 9 Hints, Answers, and Solutions The particular trajectories are highlighted in the phase portraits below.

Hermite Interpolation with Euclidean Pythagorean Hodograph Curves

Preliminary algebra. Polynomial equations. and three real roots altogether. Continue an investigation of its properties as follows.

Tennessee s State Mathematics Standards Precalculus

Since x + we get x² + 2x = 4, or simplifying it, x² = 4. Therefore, x² + = 4 2 = 2. Ans. (C)

Complex numbers, the exponential function, and factorization over C

MATHEMATICS. Higher 2 (Syllabus 9740)

Calculus: Early Transcendental Functions Lecture Notes for Calculus 101. Feras Awad Mahmoud

Functions, Graphs, Equations and Inequalities

Curves, Surfaces and Segments, Patches

Mathematics AKS

Chapter 2 Polynomial and Rational Functions

MATH 100 and MATH 180 Learning Objectives Session 2010W Term 1 (Sep Dec 2010)

CURRICULUM GUIDE. Honors Algebra II / Trigonometry

MATHEMATICS LEARNING AREA. Methods Units 1 and 2 Course Outline. Week Content Sadler Reference Trigonometry

Homework. Basic properties of real numbers. Adding, subtracting, multiplying and dividing real numbers. Solve one step inequalities with integers.

Chapter 10: Conic Sections; Polar Coordinates; Parametric Equations

y d y b x a x b Fundamentals of Engineering Review Fundamentals of Engineering Review 1 d x y Introduction - Algebra Cartesian Coordinates

Curriculum Scope & Sequence

Spiral spline interpolation to a planar spiral

Pre-Calculus Chapter 0. Solving Equations and Inequalities 0.1 Solving Equations with Absolute Value 0.2 Solving Quadratic Equations

REVIEW OF DIFFERENTIAL CALCULUS

ax 2 + bx + c = 0 where

MATH-1420 Review Concepts (Haugen)

Physics 307. Mathematical Physics. Luis Anchordoqui. Wednesday, August 31, 16

function independent dependent domain range graph of the function The Vertical Line Test

Precalculus. Precalculus Higher Mathematics Courses 85

Finite-dimensional spaces. C n is the space of n-tuples x = (x 1,..., x n ) of complex numbers. It is a Hilbert space with the inner product

NORTH ALLEGHENY SCHOOL DISTRICT MATHEMATICS DEPARTMENT HONORS PRE-CALCULUS SYLLABUS COURSE NUMBER: 3421

Algebraic. techniques1

AS PURE MATHS REVISION NOTES

Notes on Complex Analysis

MAT100 OVERVIEW OF CONTENTS AND SAMPLE PROBLEMS

High School Math Contest

Algebra and Trigonometry

Transcription:

High order parametric polynomial approximation of conic sections Gašper Jaklič a,b,c, Jernej Kozak a,b, Marjeta Krajnc a,b, Vito Vitrih c, Emil Žagar a,b, a FMF, University of Ljubljana, Jadranska 19, Ljubljana, Slovenia b IMFM, Jadranska 19, Ljubljana, Slovenia c PINT, University of Primorska, Muzejski trg, Koper, Slovenia Abstract In this paper, a particular shape preserving parametric polynomial approximation of conic sections is studied. The approach is based upon a general strategy to the parametric approximation of implicitly defined planar curves. Polynomial approximants derived are given in a closed form and provide the highest possible approximation order. Although they are primarily studied to be of practical use, their theoretical background is not to be underestimated: they confirm the Höllig-Koch s conjecture for the Lagrange interpolation of conic sections too. Key words: conic section, parametric curve, implicit curve, approximation order, Lagrange interpolation, approximation 1 Introduction Conic sections are standard objects in CAGD computer aided geometric design) and many computer graphics systems include them by default. An ellipse and a hyperbola can be represented in a parametric form using e.g. trigonometric and hyperbolic functions. In contrast to a parabola, they do not have a parametric polynomial parameterization, but they can be written as quadratic rational Bézier curves. In many applications a parametric polynomial approximation of conic sections is needed and it is important to derive accurate polynomial approximants. Corresponding author. Email address: emil.zagar@fmf.uni-lj.si Emil Žagar). Preprint submitted to Elsevier Science 15 September 009

General results on Hermite type approximation of conic sections by parametric polynomial curves of odd degree are given in [1] and []. However, the results hold true only asymptotically, i.e., for small segments of a particular conic section. Among conic sections circular arcs are the most important geometric objects in practice. A lot of papers consider good approximation of circular segments with the radial error as the parametric distance. In [3], the authors study cubic Bézier Hermite type interpolants which are sixth-order accurate, and in [4] a similar problem with various boundary conditions is presented. Quadratic Bézier approximants are considered in [5], and some new special types of Hermite interpolation schemes are derived in [6] and [7]. An interesting closed form solution of the Taylor type interpolation of a circular arc by parametric polynomial curves of odd degree goes back to [8]. In that paper the authors constructed an explicit formula for parametric polynomial approximants. The results have been later extended to even degree curves in [9] and to a more general class of rational parametric curves in [10]. As a motivation to improve the results obtained in [8] and [9], consider the following example. Take a particular parametric quintic polynomial approximant of the unit circle, given in [8,9] as 1 t + t 4. 1) t t 3 + t 5 It is shown in Fig. 1 together with a new quintic approximant 1 3 + 5)t + 1 + 5)t 4 1 + 5)t 3 +. ) 5)t 3 + t 5 Quite clearly, the latter has much better approximation properties. One of the aims of this paper is to establish a general framework for a construction of parametric polynomial approximants of conic sections such as ). The main problem considered turns out to be, how to find two nonconstant polynomials x n, y n R[t] of degree n, such that for the elliptic case, and x nt) + y nt) = 1 + t 3) x nt) y nt) = 1 ± t 4) for the hyperbola. The implicit form of the unit circle or the unit hyperbola is x ± y = 1. 5)

1.0 0.5 1.0 0.5 0.5 1.0 0.5 1.0 Fig. 1. The unit circle dashed), quintic parametric polynomial approximant given by 1) black) and a new parametric approximant of the same degree given by ) grey). This clearly indicates that the considered problem is equivalent to finding a good parametric polynomial approximation of the implicit representation 5). The importance of the equation 3) has already been noted in [8] and the existence of a solution has been established for odd n. However, in [9] it has been shown that the equation 3) has at least one real solution for all n N. It is based upon a particular rational parameterization of the circle, and the coefficients of polynomials x n and y n can be elegantly expressed in terms of Chebyshev polynomials of the first and the second kind. However, such a solution is far from optimal see Fig. 1). In this paper, all solutions of 3) and 4) are constructed in a closed form, and the best ones with respect to the approximation error are studied in detail. It turns out that such an approximation is excellent since the error decays exponentially with the degree n. On the other hand, the existence of the approximants has a surprisingly deep theoretical impact too. Namely, it confirms a very well known Höllig-Koch s conjecture [11]) on geometric Lagrange interpolation of conic sections. The paper is organized as follows. In Section a general approach to a parametric approximation of implicitly defined planar curves is outlined. The normal distance is studied as an upper bound for the Hausdorff as well as for a parametric distance. In Section 3 conic sections as a special class of implicit curves are studied. The approximation problem is precisely defined. In the following section a construction of all appropriate solutions is outlined. In Section 5 the best solution is studied in detail. Section 6 deals with the error 3

analysis of the best solution. In Section 7 the most important theoretical result of the paper is presented, the Höllig-Koch s conjecture for conic sections is confirmed. The paper is concluded by some numerical examples in Section 8. Parametric approximation of implicit functions Suppose that the equation fx, y) = 0, x, y) D R, 6) defines a segment f of a regular smooth planar curve. Further, let r : [a, b] R, t x rt), 7) y r t) denote a parametric approximation of the curve segment f that satisfies the implicit equation 6) approximately, fx r t), y r t)) =: εt), t [a, b]. 8) What can be concluded about approximation properties from the approximated implicit equation if ε is small enough? Let x, y) D be fixed. The first order expansion of the equation 8) reveals f x x, y) x r t) x) + f y x, y) y r t) y) = εt) + δt), 9) where f x and f y are partial derivatives and δt) denotes higher order terms in differences x r t) x and y r t) y, i.e., δt) := O x r t) x) ) +O x r t) x) y r t) y))+o y r t) y) ). 10) Suppose now that the curve r can be regularly reparameterized by a normal to the curve 6) see [1]). More precisely, take a normal on f at a particular point x, y) and find its nearest intersection with r see Fig. ). The corresponding parameter t = tx, y) is then determined by the equation f y x, y) x r t) x) f x x, y) y r t) y) = 0. 11) Since f is regular, f xx, y) + f y x, y) 0, and the equations 9) and 11) imply f x x, y) x r t) = x + fxx, y) + fy x, y) εt) + δt)), 1) f y x, y) y r t) = y + εt) + δt)). fxx, y) + fy x, y) 4

f r x, y) rt) Fig.. The normal distance between a curve segment f, satisfying 6), and a parametric curve r at a point x, y). Recall the behaviour of 10). If εt) at a particular t = tx, y) is small enough, one may apply the Banach contraction principle on 1) to conclude that δt) = O ε t)). The normal distance at this point is ρx, y) := x r t) x) + y r t) y) = εt) + δt) f x x, y) + f y x, y) 13) = εt) f x x, y) + f y x, y) + O ε t) ). This provides a basis to obtain an upper bound on parametric and Hausdorff distance between curves see [8]), and quite clearly indicates the importance of ε in 8) being as small as possible. Let us summarize the preceding discussion. Theorem 1 Let a parametric curve r, defined by 7), approximate a smooth curve segment f, given by the implicit equation 6). Suppose that fx r t), y r t)) = εt), t [a, b]. If the curve r can be regularly reparameterized by the normal to f and ε is small enough, the normal distance between curves is bounded by max x,y) D εtx, y)) f x x, y) + f y x, y) + O ε t x, y)) ). 14) 3 Conic sections In this section parametric polynomial approximation of implicitly defined conic sections will be considered. For a chosen error term ε, defined in 8), 5

an appropriate parametric polynomial approximant p n of degree n, rt) = p n t) := x nt), y n t) which fulfills 8), will be determined. Since a parabola has a polynomial parameterization, it is interesting to study ellipse and hyperbola only. By choosing an appropriate coordinate system see Section 7 for details), they are given as ) x x0 ) y y0 ± = 1. a b Further, by a translation and scaling of the coordinate system, the above equation can be rewritten to 5). The main problem considered is to find two nonconstant polynomials x n and y n of degree at most n, such that x nt) ± y nt) = 1 + εt). 15) A residual polynomial ε is of degree at most. Since at least one point on the conic should be interpolated, let us choose ε0) = 0. In order for the approximation error to be as small as possible, ε should not involve low degree terms, and should be spanned by t only. Moreover, without loss of generality we can assume that x n 0) = 1, x n0) = 0, y n 0) = 0, y n0) = 1. The unknown polynomials can thus be written as which transforms 15) to n x n t) := 1 + a l t l, n y n t) := t + b l t l, l= l= ) n ) n 1 + a l t l ± t + b l t l = 1 + a n ± bn) t. 16) l= l= The equation 16) is actually a system of nonlinear equations for unknowns a l ) n l= and b l ) n l=. It can further be simplified by a suitable reparameterization. Let 1 A := a n ± b n. A linear parameter scaling t t/a and new variables α l := a l A l, β l := b l A l, l = 1,,..., n, 17) 6

where a 1 := 0, b 1 := 1, transform the problem into the problem of finding two nonconstant polynomials such that n x n t) := 1 + α l t l, n y n t) := β l t l, β 1 > 0, 18) l= l=1 x nt) ± y nt) = 1 + signa n ± b n) t. 19) The hyperbolic case involves two possibilities, since a n = b n can not happen, while the elliptic case implies only one. Note that a similar problem is related to Pell s equation and a solution via Chebyshev polynomials [13]). 4 Solutions Solving the equation 19) is equivalent to solving x nt) ± y nt) = 1 in the factorial ring R[t]/t. But since there are additional restrictions 18), the problem can not be tackled by classical algebraic tools. Fortunately, there is an another way - the special form of the equation 19) enables an approach that straightforwardly yields all the solutions, satisfying particular requirements. Let us consider each case separately. For the elliptic case, the equation 19) can be rewritten as x n t) + i y n t)) x n t) i y n t)) = 1 t e i k+1 π), 0) where the right-hand side is the factorization of 1 + t over C. From the uniqueness of the polynomial factorization over C up to a constant factor, and from the fact that the factors in 0) appear in conjugate pairs, it follows x n t) + i y n t) = γ n 1 t e i σ k k+1 π), γ C, γ = 1, where σ k = ±1. In order to interpolate the point 1, 0), γ must be chosen as n 1 γ := 1) n e i σ k k+1 π, 7

which implies n 1 x n t) + i y n t) = 1) n t e i σ k k+1 π 1 ) =: p e t; σ), 1) with σ = σ k ) n 1 { 1, 1}n. This leads to n solutions, but those with β 1 = 0 must be excluded. Since the remaining ones appear in pairs x n, ±y n ), precisely half of them fulfill the requirement β 1 > 0. Let us now consider the hyperbolic case. Similarly as in 0) the expression 19) can be rewritten as x n t) + y n t)) x n t) y n t)) = 1 t = 1 t ) for the case a n < b n, or as n 1 k=1 t cos ) ) kπ t + 1 n ) ) ) n 1 x n t) + y n t)) x n t) y n t)) = 1 + t k + 1 = t cos π t + 1 3) for a n > b n. The right-hand side is obtained by the factorization of 1 ± t using roots of unity and by joining conjugate complex factors into quadratic real ones. The idea now is to write the right-hand side of ) and 3) as a product of two polynomials p h and q h and to define x n and y n as x n t) = 1 p ht) + q h t)), y n t) = ± 1 p ht) q h t)). 4) Since x n and y n have to be of degree n, polynomials p h and q h must both be of degree n, otherwise the degree of x n or y n would be too high. Therefore p h t) := p h t; I n ) := 1 + t) 1 1)n k I n {1,,...,n 1} I n = n t cos ) ) kπ t + 1 n 5) for a n < b n. In the factorization 3) only even degree factors are available. A solution thus exists only for even n and p h t) := p h t; I n ) := k I n {1,,...,n 1} I n = n ) ) k + 1 t cos π t + 1. 6) As in the elliptic case, the solutions with β 1 = 0 must be excluded and from the remaining pairs x n, ±y n ) those with β 1 > 0 are kept. The number of admissible solutions is growing exponentially with n as can be 8

seen from Tab. 1. The choice of a particular solution with minimal approximation error and its explicit formula will be given in the next section. Table 1 The number of admissible solutions in all three cases for n =, 3,..., 10. n 3 4 5 6 7 8 9 10 elliptic case 1 3 6 15 7 64 10 54 495 hyperbolic case a n < b n 0 1 5 8 0 3 70 10 hyperbolic case a n > b n 1 0 0 9 0 3 0 15 5 Best solution For both, elliptic and hyperbolic case, the best solution is the one with the maximal possible β 1 > 0. This can clearly be seen from 15) and 17), since the error term in the given parameterization will be the smallest for A as large as possible. Theorem The best solution for the elliptic case is x n t) = Re p e t; σ )), y n t) = Im p e t; σ )), σ = 1) n 1, 7) and the best solution for the hyperbolic case is x n t) = 1 p h t; I n) + p h t; I n)), y n t) = 1 p h t; I n) p h t; I n)), where p h is defined by 5) for odd n and by 6) for even n, and In all cases { n + 1 n + 1 In =, β 1 = 1 ω n, ω n := sin π. } + 1,..., n 1. 8) PROOF. Consider first the elliptic case. From 1) it is straightforward to obtain n 1 α 1 + i β 1 = e i σ k k+1 π, 9) which leads to β 1 = n 1 ) k + 1 σ k sin π. 9

Since all considered sines are positive, the largest β 1 is obtained for the choice σ k = 1, k = 0, 1,..., n 1. By 9), β 1 = Im e i π n 1 ) ) e i π k n = sin π 1 cos π n = 1 ω n. 30) In the hyperbolic case, let us first observe ). From 4) and 5) it is straightforward to derive β 1 = ± 1 + cos kπ n cos kπ, I n {1,,..., n 1}, I n = k I n n k I c n n, where I c n denotes the complement of I n in {1,,..., n 1}. The largest possible β 1, which implies the best solution, is obtained for I n and is equal to β 1 = 1 + n 1 k=1 which can be derived as in 30). 1 cos kπ, n is odd, n = ω n 1 1, n is even, But for even n the numerical experiences show that the resulting curve is not symmetric. Furthermore, the case 1 + t gives a larger β 1. Namely, from 6) it follows k I c n ω n β 1 = ± ) k + 1 cos π + cos π k I n cos k + 1 ) π, I n {1,,..., n 1}, I n = n, and the optimal β 1 is achieved for In. It simplifies to n 1 ) k + 1 β 1 = cos π = 1. ω n The proof is completed. Any solution for the elliptic case, for which x n is an even and y n is an odd function, can be transformed into a solution for the hyperbolic case by using the map x n t) x n i t), 31) y n t) i y n i t). The coefficient β 1 for the best solution in the elliptic and in the hyperbolic case is the same and it is preserved by the map 31). Therefore 31) maps the 10

best solution for the elliptic case into the best solution for the hyperbolic case provided that x n is even and y n is odd. This follows from the next theorem. Theorem 3 Coefficients of the best solution for the elliptic case are obtained as α k + i β k = 1) k S k, S k := e i π i 1+i +...+i k ) k). 3) Moreover, i 1 <i < <i k i j {1,,...,n} kn k) k P j, k, n k) cos α k = j=0 π + j ) n π, k is even, 0, k is odd, β k = kn k) j=0 0, k is even, k P j, k, n k) sin π + j ) n π, k is odd, where P j, k, r) denotes the number of integer partitions of j N with k parts, all between 1 and r, where k, r N, and P 0, k, r) := 1. PROOF. Let us define z k := e i k 1 π. From 1) and 7) we obtain α k + i β k = 1) k i 1 <i < <i k i j {1,,...,n} z i1 z i z ik. 33) The equation 3) now follows straightforwardly from 33). Let us introduce L k := {l = l j ) k j=1 := i 1 1, i 1,..., i k 1), i 1 < < i k, i j {1,..., n}}, and l := k j=1 l j. Moreover, let c : N k N k, cl) := l k, l k 1,..., l 1 ). If l L k and l = kn, then cl) L k. Since cl) k l π = π = kπ l π, it follows ) ) ) ) l cl) l cl) sin π = 1) k+1 sin π, cos π = 1) k cos π. 34) 11

By 3), we have to show that S k is a real number for even k and a pure imaginary number for odd k. By 34), only vectors l L k with l = nk have to be considered. Since we obtain sin kπ = 0, k is even, 1) k 1, k is odd, cos kπ = 0, k is odd, 1) k, k is even, cos l π), k is even, l L S k = k i sin l π), k is odd. l L k For each vector l L k, it holds l {k + j, j = 0, 1,..., kn k)}, and there are exactly P j, k, n k) vectors with l = k + j. Thus kn k) j=0 S k = i kn k) j=0 Using 3), the proof is completed. P j, k, n k) cos k π + j n π), k is even, P j, k, n k) sin k π + j n π), k is odd. Corollary 4 For the best solution in both elliptic and hyperbolic) cases, the polynomial x n is an even function and y n is an odd one. Corollary 5 In the elliptic case, the coefficients possess a particular symmetry, α n k + i β n k = i n α k i β k ), k = 0, 1,..., n/. 35) Furthermore, for k = 0, 1,..., n, α k = ±β n k, for n = 4l ± 1, α n k = α k, β n k = ±β k, for n = 4l + 1 ± 1. PROOF. Since by 33) it follows 1) n α n k + i β n k = 1) k i n n k=1 e i k 1 π = i n, i 1 <i < <i k i j {1,,...,n} z i1 z i z ik = i n α k i β k ). The second part can be derived directly from 35) and the proof is completed. 1

Note that by using 31), a similar result can be obtained for the hyperbolic case. In Tab., the best approximants of degrees n =, 3,..., 6, defined in Thm., are presented and in Fig. 3 the elliptic ones are shown for n = 4, 5, 6. Table The best approximants, defined in Thm.. The upper sign in stands for the elliptic case and the lower sign is for the hyperbolic one. n x n t), y n t) x t) = 1 t, y t) = t 3 x 3 t) = 1 t, y 3 t) = t t 3 4 x 4 t) = 1 + )t + t 4 y 4 t) = 4 + t t 3 ) 5 x 5 t) = 1 3 + 5)t + 1 + 5)t 4 y 5 t) = 1 + 5)t 3 + 5)t 3 + t 5 6 x 6 t) = 1 + 3)t + + 3)t 4 t 6 y 6 t) = + 6)t 3 + 3)t 3 + + 6)t 5 Note that the coefficients in the best solution 8) for the hyperbolic case are nonnegative. This follows from the positiveness of the coefficients in p h t; I n). 6 Error analysis In this section, the analysis of the normal distance, introduced in Section, between a conic section, defined by the implicit equation 5), and the best polynomial approximant x n, y n ) T, that satisfies 15), is outlined. The normal reparameterization x, y) t = tx, y), determined by the equation 11), here simplifies to ± y x n t) x y n t) = x y ±1 1), 36) where the upper sign stands for the elliptic case and the lower sign for the hyperbolic one. The particularly simple form of the equation 36) helps us to establish the normal distance 13) precisely. Lemma 6 Suppose that x n t), y n t)) T satisfies 15). The normal reparame- 13

terization x, y) t = tx, y) of a conic section 5) at a point x, y) satisfies εt) x x n t) = x + x + y + x + y ) + εt), 37) εt) y y n t) = y ± x + y + x + y ) + εt). 38) Furthermore, the normal distance 13) is ρx, y) = εt) x + y x + y + x + y ) + εt). 39) PROOF. From the equation 36) one obtains y n t) y = ± y x x nt) x), 40) which simplifies 15) to a quadratic equation for the difference x n t) x, x ± y ) x n t) x) + x x + y ) x n t) x) x εt) = 0. 41) But x ± y = 1, and the solutions of 41) are x n t) x = x εt). x x + y ) ± x x + y ) + εt) Since only one solution is needed, it is obvious to choose the one, that satisfies x n t) x 0 when εt) 0, as the basis for the reparameterization. This confirms 37), and the equations 38) and 39) follow from 40) and 13). The proof is completed. Let us recall that εt) = ±t. Lemma 6 clearly implies that the parameter t must be limited to [ 1, 1], otherwise the normal distance grows as n. The question left is to find a set D R, such that a solution tx, y) [ 1, 1] of 36) exists for each x, y) D, and that the obtained reparameterization is regular. A conic will therefore be written in a parametric form, and the parameter interval that implies a regular reparameterization for the best solution will be determined. 14

6.1 Elliptic case Let us parameterize the unit circle as xs) = cos s, s R. 4) ys) sin s From 36) we obtain the equation y n t) x n t) = tan s. 43) By expressing each factor of 1) in the polar form and assuming that t [ 1, 1], the polynomial p e t, σ ) in 1) can be rewritten in the polar form as x n t) + i y n t) = 1) n 1 + t exp with ϕ k := k+1 i n 1 π. Therefore 43) can be simplified to ψ n t) = s, ψ n t) := n 1 arctan ) t sin ϕ k arctan, 1 t cos ϕ k t sin ϕk 1 t cos ϕ k ). 44) Since sin ϕ k = sin ϕ n 1 k and cos ϕ k = cos ϕ n 1 k, the function ψ n is odd. For t [ 1, 1], n 1 ψ nt) sin ϕ k = t t cos ϕ k + 1 > 0, which implies that ψ n is strictly increasing on [ 1, 1]. Moreover, ψ n 1) = n 1 arctan cot ϕ k ) = nπ 4. Thus, for any s [ nπ, ] nπ 4 4, there exists a unique solution t = ts) := txs), ys)) [ 1, 1] of 44). The monotonicity of ψ n also implies the regularity of the reparameterization. The length of the interval for s, divided by π, defines the number of winds of the approximating curve around the origin, namely n 4 see Fig. 4). The equation 44) provides also the series expansion of the reparameterization ts) =ψn 1 s) = ω n s ω3 ns 3 9 1 ωn 1 + 14ωn 16ω 4 n) ωns 5 5 15 3 4ωn) 5 0ωn + 16ωn) + O ω n s) 7 ). 4 15

In order to approximate the unit circle it is enough to take the nearest loop of the polynomial curve only. The preceding discussion, and the equations 39) and 14) establish the following useful consequence. Corollary 7 Let x n and y n be given by 7). The polynomial curve segment x nt), t [ h n, h n ], h n := ψn 1 π), 45) y n t) approximates the unit circle with the normal distance bounded by h n + O h 4n n ) ) π ) = + O π 4n. 6. Hyperbolic case It is enough to consider only the right-hand side branch x 1 of a hyperbola, parameterized by xs) = cosh s, s R. 46) ys) sinh s From the symmetry of the best hyperbolic solution x n, y n ) T, determined in 8), we can further assume that s 0, which narrows the interval of interest for t to [0, 1]. Since x n 0), y n 0)) T = x0), y0)) T = 1, 0) T and t = ts) := txs), ys)), it follows t0) = 0. Thus only s > 0 needs to be considered. Suppose that n is odd. Let us show that the value ts) is uniquely determined by the equation 37) for s small enough. Since n is odd, εt) = t, and 37) corresponds to φ n t, s) = 0, with φ n defined as t cosh s φ n t, s) := x n t) cosh s +. coshs) + cosh s) t Recall that the coefficients of the polynomials x n and y n are nonnegative. Thus φ n t t, s) = x nt) + nt 1 cosh s > 0, cosh s) t and at t = 0 we obtain the inequality φ n 0, s) = x n 0) cosh s = 1 cosh s < 0. 16

Consequently, for any s > 0 such that φ n 1, s) 0, there exists precisely one t, such that φ n t, s) = 0. Since φ n s 1, s) = sinh s cosh s) cosh s sinh s) < 0, φ n 1, s) is strictly decreasing. The boundary s n is determined uniquely by the equation φ n 1, s n) = 0, and the regular reparameterization t = ts) is available for all s [ s n, s n]. So far for odd n only, but for even n a similar argument carries through, with the equation 38) replacing 37). Let us derive now the asymptotic behavior of the reparameterization ts), valid for n large enough. First of all, observe the expansion ln p h t, In)) = 1 t ω n 9 1ωn t 3 t 5 + 5 100ωn + 80ωn 4 ) + O t 7). But then 8) yields x n t) = 1 p h t, In) + p h t, In)) 1 t 3 t 5 )) = cosh t + + O t 7). ω n 9 1ωn 5 100ωn + 80ωn 4 We insert this expansion in the parametric form of the equation 37), and obtain ts) = ω n s + ω3 ns 3 1 + 14ωn 16ω n) 4 ωns 5 5 9 1ωn 15 3 4ωn) 5 0ωn + 16ωn) + O ω n s) 7 ). 4 This expansion reveals also an approximation of s n, that satisfies ts n) = 1. Namely, a detailed examination of the expansion indicates s n = G 1 ω n + O ω n ), 47) where G denotes the Catalan s constant, G = 1) k k + 1) 0.9159656. Corollary 8 Let x n, y n ) be given by 8). The polynomial curve segment x nt), y n t) t [t s), t s)], 17

approximates a hyperbola segment cosh s, s [ s, s ] [ s n, s n ], φ n 1, s n) = 0, sinh s with the parametric distance bounded by ω n h) + O ) ) 4n ω n h) 4n) πh = + O πh, h := max { s, s }. 7 Höllig-Koch s conjecture In [11], a conjecture has been stated that a planar parametric polynomial curve of degree n can approximate a smooth regular parametric curve with the approximation order. Many authors considered this problem, but the conjecture remains unproven in general. Planar curves are studied in [14] where a particular nonlinear system is derived and the optimal approximation order is confirmed provided the system has at least one real solution. The existence of a solution is established for degree n 5 for general curves. In [9] the results are extended to general degree n for so-called circle-like curves. Here, the Höllig-Koch s conjecture will be proved for a general degree n for all conic sections. A general conic section is given as ax + bxy + cy + dx + ey + f = 0. Without a loss of generality, we can assume that the point 0, 0) lies on the conic, and that the normal at that point is 0, 1). This implies f = d = 0 and e = 1. In the vicinity of the point 0, 0), the conic Cx, y) := ax + bxy + cy + y = 0 can be parameterized by the first component: x 1 + bx) + 1 + b x) 4ac x =: x. ux) c Recall [14, Thm. 4.5]. To prove the existence of the Lagrange geometric interpolant of degree n that approximates Cx, y) with the approximation order, it is enough to show that the Taylor expansion of ux n t)) for x n t) = 18

t + n i= α i t i is of the form This relation is equivalent to ux n t)) = y n t) + β i t i, n y n t) := β i t i. i= i= 1 + b x n t)) 4 a c x nt) = 1 + b x n t) + c y n t) + and after it is squared, it can be rewritten to a x nt) + b x n t)y n t) + c y nt) + yt) = Ot ). ) β i t i, i= The confirmation of Höllig-Koch s conjecture for conic sections now follows from the next theorem. Theorem 9 For any a, b, c R there exist polynomials of degree n, such that n x n t) = t + α i t i, n y n t) = β i t i, i= i= Cx n t), y n t)) = a α n + b α n β n + c β n)t. 48) PROOF. By a diagonalization of the matrix a b = U T ΛU, Λ = diagλ 1, λ ), U = cos θ b c sin θ sin θ, cos θ ) where θ = 1 arccot a c b, and introduction of new variables x = U x, ỹ y a conic is transformed into a canonical form C x, ỹ) = λ 1 x + sin θ ) + λ ỹ + cos θ ) λ sin θ + λ 1 cos θ = 0. λ 1 λ 4λ 1 λ The cases with λ 1 = 0 or λ = 0 can be excluded since they correspond to a 19

parabola or two lines. Let The system 48) then becomes n x n t) := α i t i := cos θ x n t) + sin θ y n t), i=1 n ỹ n t) := β i t i := sin θ x n t) + cos θ y n t). i=1 λ 1 x n t) + sin θ ) + λ ỹ n t) + cos θ ) ) λ1 α n + λ β n = 1 + t, D λ 1 D λ D where D := λ sin θ + λ 1 cos θ. A reparameterization 4λ 1 λ t = ts) = D λ 1 ã n + λ s b n transforms the problem into finding the solution of the system ) ) λ1 sign X λ D ns) + sign Yn s) = 1 ± s, D where X n s) = λ 1 x D n ts)) + sin θ ), Y n s) = λ ỹ λ 1 D n ts)) + cos θ ). λ Since x n 0) = ỹ n 0) = 0, the solutions must satisfy X n 0) = 1 + λ 1 1 λ tan, Yn 0) = θ 1 + λ tan θ The existence now follows from Section 4 with a slight modification. Namely, for the elliptic case p e t; σ) in 1) must be multiplied by X n 0) + i Y n 0), while in the hyperbolic case, polynomials p h and q h must be multiplied by X n 0)+Y n 0) and X n 0) Y n 0), respectively. The best solutions are obtained as explained in Thm.. This completes the proof. λ 1 1. 8 Examples Let us conclude the paper with some examples. Consider first the approximation of the unit circle 4) and the unit hyperbola 46) with the best approximants, defined in Thm.. 0

In order to approximate the whole circle, the parameter interval for s is [ π, π]. For each n the corresponding interval [ h n, h n ], with h n defined in 45), must be determined. Tab. 3 shows the values h n for n = 3, 4,..., 15, and the normal distance between the circle and the best approximant. Note that h n decreases with a growing n. To compare the normal distance between the hyperbola and the best approximants of different degrees n, let us limit the parameter s to [ ln 10, ln 10]. In this case the boundary points on the hyperbola are 5.05, ±4.95). The corresponding parameter interval [ h, h], for the approximating curve is given in the fifth column of Tab. 3, and in the last column the normal distance is shown. In both cases the normal distance decreases to zero very fast with a growing n, which confirms the results of Section 6. In Fig. 3, elliptic approximants for n = 4, 5, 6 are shown, and the curvature profile demonstrates the shape preserving property. Table 3 The normal distance for the polynomial approximation of the unit circle and the unit hyperbola. elliptic case hyperbolic case n h n error s n h error 3 1.4141 1.7953 1.3645 0.45670 4 1 0.4141.36459 0.96918 0.05504 5 0.8461 0.08999.94151 0.75580 0.00430 6 0.745 0.01389 3.5038 0.615 0.0003 7 0.65658 0.00138 4.10045 0.5817 9.3 10 6 8 0.5856 9.5 10 5 4.6816 0.45973.8 10 7 9 0.5643 4.8 10 6 5.659 0.40719 6.7 10 9 10 0.47766 1.9 10 7 5.8447 0.36555 1.3 10 10 11 0.43680 6.1 10 9 6.461 0.33169.0 10 1 1 0.4017 1.6 10 10 7.00835 0.3036.7 10 14 13 0.3749 3.5 10 1 7.59064 0.7996 3.0 10 16 14 0.34681 6.6 10 14 8.17304 0.5974.9 10 18 15 0.3438 1.1 10 15 8.75554 0.45.4 10 0 In the hyperbola case the parameter interval [ s n, s n], that corresponds to t [ 1, 1], is determined as the unique solution of φ n 1, s n) = 0. The values s n for n = 3, 4,..., 15, are shown in the fourth column of Tab. 3, and they numerically confirm 47). 1

1.0 0.8 0.6 0.4 0. 1.0 0.5 0.0 0.5 1.0 Fig. 3. Polynomial approximants of the unit circle for n = 4, 5, 6 top) and their corresponding curvatures on [ h n, h n ], linearly reparameterized to [ 1, 1] bottom). In the circle case this interval is simply [ nπ, ] nπ 4 4. This further implies a very interesting property of the circle approximant, shown in Fig. 4. For n large enough the approximant cycles the unit circle several times before the error becomes significantly large. The plot is obtained as a lift of the planar curve in space, i.e., x 0 t), y 0 t), t). Fig. 4. Unit circle together with the cycles of the approximant for n = 0 and t [ 1, 1]. To conclude the paper, some examples of the approximation of conic sections, where the interpolation point is chosen arbitrarily, are shown in Fig. 5 and

Fig. 6. 0. 0.5 1.0 1.5 0.5 0.5 1.0 0. 0.4 0.4 0.6 0.6 0.8 0.8 Fig. 5. Approximation of the ellipse 1 x +xy+ 5 3 y +y = 0 with the best approximant of degree n = 5, 7. 1 1 1 4 6 8 10 1 1 4 6 8 10 1 3 3 Fig. 6. Approximation of the hyperbola 1 5 x + xy + 1 8 y + y = 0 with the best approximant of degree n = 3, 4. References [1] M. Floater, High-order approximation of conic sections by quadratic splines, Comput. Aided Geom. Design 1 6) 1995) 617 637. [] M. S. Floater, An Oh ) Hermite approximation for conic sections, Comput. Aided Geom. Design 14 ) 1997) 135 151. [3] T. Dokken, M. Dæhlen, T. Lyche, K. Mørken, Good approximation of circles by curvature-continuous Bézier curves, Comput. Aided Geom. Design 7 1-4) 1990) 33 41, Curves and surfaces in CAGD 89 Oberwolfach, 1989). [4] M. Goldapp, Approximation of circular arcs by cubic polynomials, Comput. Aided Geom. Design 8 3) 1991) 7 38. [5] K. Mørken, Best approximation of circle segments by quadratic Bézier curves, in: Curves and surfaces Chamonix-Mont-Blanc, 1990), Academic Press, Boston, MA, 1991, pp. 331 336. [6] L. Fang, Circular arc approximation by quintic polynomial curves, Comput. Aided Geom. Design 15 8) 1998) 843 861. [7] L. Fang, G 3 approximation of conic sections by quintic polynomial curves, Comput. Aided Geom. Design 16 8) 1999) 755 766. [8] T. Lyche, K. Mørken, A metric for parametric approximation, in: Curves and surfaces in geometric design Chamonix-Mont-Blanc, 1993), A K Peters, Wellesley, MA, 1994, pp. 311 318. 3

[9] G. Jaklič, J. Kozak, M. Krajnc, E. Žagar, On geometric interpolation of circlelike curves, Comput. Aided Geom. Design 4 5) 007) 41 51. [10] M. S. Floater, High order approximation of rational curves by polynomial curves, Comput. Aided Geom. Design 3 8) 006) 61 68. [11] K. Höllig, J. Koch, Geometric Hermite interpolation with maximal order and smoothness, Comput. Aided Geom. Design 13 8) 1996) 681 695. [1] W. L. F. Degen, High accuracy approximation of parametric curves, in: Mathematical methods for curves and surfaces Ulvik, 1994), Vanderbilt Univ. Press, Nashville, TN, 1995, pp. 83 98. [13] E. J. Barbeau, Pell s equation, Problem Books in Mathematics, Springer-Verlag, New York, 003. [14] G. Jaklič, J. Kozak, M. Krajnc, E. Žagar, On geometric interpolation by planar parametric polynomial curves, Math. Comp. 76 60) 007) 1981 1993. 4