Jump to ContentJump to Main Navigation
Show Summary Details

Open Mathematics

formerly Central European Journal of Mathematics

Editor-in-Chief: Gianazza, Ugo / Vespri, Vincenzo

1 Issue per year


IMPACT FACTOR 2015: 0.512

SCImago Journal Rank (SJR) 2015: 0.521
Source Normalized Impact per Paper (SNIP) 2015: 1.233
Impact per Publication (IPP) 2015: 0.546

Mathematical Citation Quotient (MCQ) 2015: 0.39

Open Access
Online
ISSN
2391-5455
See all formats and pricing
Volume 14, Issue 1 (Jan 2016)

Issues

The best uniform quadratic approximation of circular arcs with high accuracy

Abedallah Rababah
  • Corresponding author
  • Abedallah Rababah: Department of Mathematics and Statistics, Jordan University of Science and Technology, 22110 Irbid, Jordan
  • Email:
Published Online: 2016-03-03 | DOI: https://doi.org/10.1515/math-2016-0012

Abstract

In this article, the issue of the best uniform approximation of circular arcs with parametrically defined polynomial curves is considered. The best uniform approximation of degree 2 to a circular arc is given in explicit form. The approximation is constructed so that the error function is the Chebyshev polynomial of degree 4; the error function equioscillates five times; the approximation order is four. For θ = π/4 arcs (quarter of a circle), the uniform error is 5.5 × 10−3. The numerical examples demonstrate the efficiency and simplicity of the approximation method as well as satisfy the properties of the best uniform approximation and yield the highest possible accuracy.

Keywords: Bézier curves; Quadratic best uniform approximation; Circular arc; High accuracy; Approximation order; Equioscillation

MSC 2010: 41A10; 41A25; 41A50; 65D17; 65D18

1 Introduction

Bézier curves and surfaces are the most widely used mathematical modelling tools in CAD/CAM systems, see [13]. One of the main concerns in representing Bézier curves is to keep the degree as low as possible. This simplifies the evaluation, manipulation and determination of a small number of Bézier points. These and other factors encourage us to consider approximating circular arcs using quadratic Bézier curves. Besides many other applications, quadratic Bézier curves are commonly used in encoding and rendering of type fonts and HTML techniques by many companies. Circular arcs are commonly used in the fields of Computer Aided Geometric Design CAGD, Computer Graphics, and many other applications. Since circular arcs are represented by rational Bézier curves and cannot be represented by polynomial curves in explicit form, circular arc representations using polynomial Bézier curves have been developed by many researchers, see for example [414].

In this paper, a novel approach to represent a circular arc using quadratic Bézier curves with high accuracy is proposed. The method leads to the solution that minimizes a variation of the Euclidean error.

We want to represent the longest arc of the circle, i.e. the angle θ as large as possible. At the same time, the resulting Bézier curve has to satisfy the Chebyshev error. It is known that the angle θ can not be greater than π2. So, we consider the circular arc c : t ↦ (cos(t), sin(t)), −θtθ, where θ[π2,π2]. Later, we will find out the largest value for θ that satisfies the Chebyshev error. An illustrative choice for the Bézier points with θ=π4 is shown in Fig. 1.

Fig. 1

A circular arc (quarter, θ=π4)

It is not possible to exactly represent a circle with a polynomial curve. While a circle can be represented exactly using rational Bézier curves, a polynomial approximation is preferred in many applications. The ability to represent a primitive circle is a must, especially in computer graphics and data and image processing. Thus, there is a demand to find a parametrically defined polynomial curve p : t ↦(x(t), y(t)), 0 ≤ t ≤ 1, where x(t), y(t) are polynomials of degree n. The degree of p has to be as small as possible, and p has to approximate c within tolerable error. Having the degree n low makes the software very fast, convenient, obviates complications of high degree, and reduces the cost. In this paper, degree 2 curves are considered, and it is shown that it works well and produces results that are as good as the results of higher degrees. This makes the method competitive. Namely, quadratic Bézier curves are constructed to represent circular arcs with the best quadratic uniform approximation and the highest accuracy.

A possible function to measure the error between p and c is the Euclidean error function: E(t):=x2(t)+y2(t)1.(1)

The square root complicates the analysis. Thus to avoid radicals, we find the square of the p components of the circular arc. So, E(t), is replaced by the following error function e(t):=x2(t)+y2(t)1.(2)

Note that both e(t), and E(t), attain their roots and extrema at the same parameters. In this paper, we are interested in finding the quadratic best uniform approximation that has the highest order of approximation and the minimum error. This research is motivated by the conjecture in [11] which states that it is possible to approximate a curve by a polynomial of degree n with order 2n, rather than the classical order n + 1. In quadratic case, the associated error function has to equioscillate five times. Consequently, the approximation problem can be formulated as follows.

The approximation problem in this paper is to find p : tx(t), y(t)), 0 ≤ t ≤ 1, where x(t), y(t), are polynomials of degree 2, that approximates c by satisfying the following three conditions:

  1. p minimizes maxt∈[0;1] |e(t)|,

  2. p approximates c with order four,

  3. e(t), equioscillates five times over [0, 1].

The solution to this problem is shown in Section 3 to be as follows: x(t)=(3221)+4(tt2),y(t)=321(2t1),t[0,1].

It represents the largest circular arc that can satisfy the Chebyshev error. This solution covers almost half of the circle and is presented in Fig. 3; the corresponding error is shown in Fig. 4.

Fig. 3.

The circular arc and the quadratic approximating Bézier curve

Fig. 4.

Euclidean error of the quadratic approximating Bézier curve

This paper is organized as follows. Section 1 introduces some preliminaries and defines the Bézier points for the best solution (the Bézier curve). The main result is given in Theorem 3.1 in Section 3. In Section 4, the properties of the best solution are presented. Section 5 states all other possible solutions. Section 6 presents comparisons between the quarter of the circle using this method and other existing methods. Conclusions and suggested open problems are given in Section 7.

2 Preliminaries

Throughout this paper, we use the notations x(t), y(t), and (x(t)y(t)) to represent parametric equations, and similarly points, because no ambiguity can appear.

In this paper, the curve p(t), is given in Bézier form, see Fig. 2. The Bézier curve p(t), of degree 2 is given by p(t)=i=02piBi2(t)=:(x(t)y(t)),0t1,(3) where p0, p1, p2 are the Bézier points, and B02(t)=(1t)2,B12(t)=2t(1t),B22(t)=t2 are the Bernstein polynomials of degree 2. The Bernstein polynomials of degree 2 form a basis for quadratic curves. A quadratic Bézier curve is a linear combination of quadratic Bernstein polynomials and thus every quadratic curve can be written as a quadratic Bézier curve.

To represent a whole circle, the circular arc between the points (cos(θ), −sin(θ)), and (cos(θ), sin(θ)), is approximated in the first step, see Fig. 1. Thereafter, the rest of the circle is represented by rotation of this segment.

Since it is intended to represent the whole circle with piecewise polynomial curve with minimum error, it is not important where the errors occur, at the end points or elsewhere; it is important to keep this error as small as possible than where the error occurs. Other methods may require continuity conditions, see [15, 16].

To represent a circular arc, the Bézier points are chosen to explore symmetry properties of the circle. So, let p0 = (α0 cos(θ) −β0 sin(θ)), then by the symmetry of the circular arc the point p2 should have the form p2 = (α0 cos(θ) β0 sin(θ)). Also, because of the symmetry, p1 must be on the positive x-axis and thus p1 = (γ, 0). By making the substitution α = α0 cos(θ), β = β0 sinθ, then the proper choice for the Bézier points should be p0=(αβ),p1=(γ0),p2=(αβ).(4)

Fig. 2.

Possible Bézier points of circular arc

To have the Bézier curve p in the first and fourth quadrants as the circular arc c, the following conditions should be satisfied α,β>0,γ>1.(5)

Thus, the Bézier polynomial curve p(t), is given by p(t)=(x(t)y(t))=(α(B02(t)+B22(t))+γB12(t)β(B22(t)B02(t))),0t1.(6)

There are three parameters α, β, γ that will be used to have the polynomial curve p comply with the conditions of the approximation problem; this is done in the following section.

3. The best quadratic uniform approximation

The values of α, β, γ that minimize the uniform error and satisfy the conditions of the approximation problem are given in the following theorem.

Theorem 3.1.: The Bézier curve in (6) with the Bézier points in (4) , where α=α*:=3221,β=β*:=321,γ=γ*:=1+322,(7) satisfies the following three conditions: p minimizes the uniform error maxt ∈ [0, 1] |e(t)| and approximates c with order four, and the error function e(t) equioscillates five times in [0, 1]. More precisely, the error functions satisfy: 123e(t)123,123(2𝜖)E(t)123(2+𝜖),where𝜖=max0t1|E(t)|.(8)

Proof.: Substituting the components of p(t) into equation (2) for the error function e(t) gives e(t=4(αγ)2t48(αγ)2t3+4(α(αγ)+(αγ)2+β2)t2+4(α(γα)β2)t+(α2+β21).(9)The last equality for e(t) is a polynomial of degree 4. To satisfy the approximation conditions, the values of α, β, γ have to be chosen so that the error function e(t) coincides with the monic Chebyshev polynomial of degree 4, see [17]. Substituting the values of α = α*, β = β*, γ = γ* from (7) and simplifying gives e(t)=16t432t3+20t44t+18,t[0,1].Making the substitution t=u+12 yields e(u)=u4u2+18,u[1,1].The last polynomial is the monic quartic Chebyshev polynomial 4(u), u ∈ [−1, 1], which is the unique polynomial of degree 4 that minimizes |e(u)| over [−1, 1] and equioscillates five times between ±123 for all u ∈ [−1, 1], see [17]. Consequently, p has fourth order of contact with c. The error function e(t) minimized is related to the Euclidean error E(t) by the following formula e(t)=x2(t)+y2(t)1=(x2(t)+y2(t)+1)(x2(t)+y2(t)1)=(2+E(t))E(t).Thus E(t)=e(t)2+E(t).Substituting the bounds of e(t) gives 123(2𝜖)E(t)123(2+𝜖),where𝜖=max0t1|E(t)|.This proves Theorem 3.1.Conditions (2) and (3) given in Theorem 3.1 are the consequences of the fact that the conditions were imposed on the error function to make it coincide with the monic quartic Chebyshev polynomial. In particular, condition (2) assures the improvement of the order of approximation over the standard order (from 3 to 4). The function of condition (3) is to assure that the approximation is the best uniform approximation which is clear from Fig. 4.Fig. 3 shows the circular arc and the approximating Bézier curve, and Fig. 4 shows the corresponding error. One would not expect a quadratic Bézier curve to approximate almost half a circle more precisely than this.

Remarks:

  1. The Bézier curve in Theorem 3.1 corresponds to the angle θ = 86.5°. In this case, the Bézier curve is the longest circular arc that can satisfy the Chebyshev error. It is almost half of the circle.

  2. The Bézier curve with α = α*, β = β*, γ = γ* represents the circular arc in the first and fourth quadrants generated counter clockwise, see Fig. 3.

  3. For programming purposes, the parameters α, β, γ, are given in terms of each other, for example if α is given as a constant, then the other parameters are given in terms of α as follows: α=3221,β=1+2α,γ=2+α.(10)

  4. x(t) does not approximate cos(t), neither does y(t) approximate sin(t). Consequently, (x(t) cos(t))2 + (y(t) −sin(t))2 does not tell anything. The only guarantee is that (x(t), y(t)), t ∈ [0, 1] approximates the circular arc between (cos(θ), −sinθ)) and (cos(θ), sin(θ)) for θ = 86.5°.

In the following section, the properties of the approximating quadratic Bézier curve are given.

4. Properties of approximating quadratic Bézier curve

In addition to the properties mentioned in the remarks after Theorem 3.1, some other properties are given in this section. The first is about the roots of the error functions e(t) and E(t) that are given in the following proposition.

Proposition 4.1.: The roots of the error functions e(t) and E(t) are: t1=12(1+cos(π8))=0.96194,t2=12(1+sin(π8))=0.691342t3=12(1sin(π8))=0.308658,t4=12(1cos(π8))=0.03806.Because of symmetry, we have t1 + t4 = 1, t2 + t3 = 1.

Proof.: Substituting ti in e(t) gives e(ti) = 0, i = 1, 2, 3, 4. Since e(t) is a polynomial of degree 4 and thus has 4 roots, these are all the roots. The error function E(t) has the same roots of e(t) because E(t) = 0 if and only if x2(t)+y2(t)=1 if and only if x2(t) + y2(t) = 1 if and only if e(t) = 0. □

The quadratic Bézier curve in Theorem 3.1 and the circular arc intersect at the points p(t1), p(t2), p(t3), and p(t4).

In the following proposition, the extreme values of the error functions are given.

Proposition 4.2.: The extreme values of e(t) and E(t) occur at t˜0=1,t˜1=12(1+12)=0.853553,t˜2=12,t˜3=12(112)=0.146447,t˜4=0.Because of symmetry, we have t˜0+t˜4=1,t˜1+t˜3=1,2t˜2=1.Moreover, the values of the error functions E(t) and e(t) at t̃i are given by e(t˜0)=e(t˜2)=e(t˜4)=18,e(t˜1)=e(t˜3)=18,E(t˜0)=E(t˜2)=E(t˜4)=0.0606602,E(t˜1)=E(t˜3)=0.0645857.Thus 18e(t)18=2×0.0625,0.0645857E(t)0.0606602,t[0,1].

Proof.: Differentiating e(t) gives a polynomial of degree 3. Substituting 1, 2, 3 gives e′(i) = 0, i = 1, 2, 3. Since e′(t) is of degree three, these are all interior critical points. Checking at the end points adds 0 = 1, 4 = 0 to the critical points. Since x2(t)+y2(t)0 thus differentiating E(t) and equating to 0 gives e(t)x2(t)+y2(t)=0 if and only if e′(t) = 0. Thus e(t) and E(t) attain the extrema at the same values. This completes the proof of the proposition. □

To get the solution in Theorem 3.1, some conditions were imposed on α, β, γ in (5). However, if the conditions on α, β, γ are removed, there will be other possible solutions. In the following section, all the possible (real) quadratic Bézier curves are listed.

5 All quadratic Bézier curves

If the conditions imposed on 𝛼, 𝛽, 𝛾 in (5) are removed, then the other solutions are given in the following theorem.

Theorem 5.1.: Removing the conditions on 𝛼 𝛽 𝛾 in (5), then the approximation problem has eight solutions; four of these solutions are complex and the other four are real. The real solutions are sign multiple of the solution in Theorem 3.1 and are summarized in the following table:

Table 1.

All real solutions to the approximation problem

Proof.: The case of the first solution has been proved in Theorem 3.1. For each of the other three solutions, the same steps in Theorem 3.1 are carried out for the error function to get the monic Chebyshev polynomial of degree 4 that satisfies the conditions of the approximation problem. □

Remarks.:

  1. Table 1 lists all the (real) possible solutions to the approximation problem; fortunately, four out of the eight solutions are real, make sense, satisfy the three approximation conditions, and are related in being reflections to each other around the x- or y-axis. The second solution coincides with the first solution, but generated clockwise. The third and fourth solutions are reflections of the first solution around the y-axis, generated counter clockwise and clockwise, respectively.

  2. Sign of α is the same as the sign of γ. If sign of 𝛽 is positive then the curve is generated counter clockwise and if it is negative then the curve is generated clockwise. If sign of α is positive then the curve lies in the first and fourth quadrants, and if it is negative then the curve lies in the second and third quadrants.

  3. The roots of the error functions e(t) and E(t) for all of the solutions in Table 1 are the same as in Proposition 4.1.

  4. The extreme values of e(t) and E(t) for all of the solutions in Table 1 occur at the same parameters that are given in Proposition 4.2.

  5. The third and the fourth solutions are reflections of the first and second solutions around the y-axis, respectively.

  6. The first solution is chosen because it is generated in the same direction as the circle is generated.

As a consequence of Theorems 3.1 and 5.1, we have the following proposition regarding the error at any t ϵ [0, 1].

Proposition 5.2.: For every t ϵ [0, 1], the errors of approximating the circular arc using the Bézier curves in Theorems 3.1 and 5.1 are given by: e(t)=16t432t3+20t24t+18,E(t)8t416t3+10t22t+116,t𝜖[0,1].In the following section, examples and comparisons are given.

6 Examples and comparisons

Theorem 3.1 gives the best uniform approximation for θ=cos1(3221)=86.5° To get other angles, the subdivision algorithm is usually used, but the error is not altered accordingly. To take advantage of the small error of Theorem 3.1, we divide the error function in equation (9) by a constant and apply the method. By trial and test, we get the constant s = 11.227225575 that corresponds to the quarter of the circle. Dividing equation (9) with s and solving it, then we get the Bézier points corresponding to the quarter of the circle with the parameters α = 0.707106781, β = 0.714936116, γ = 1.30399605. By rotating this Bézier curve we get the whole circle as shown in Fig. 5.

Fig. 5.

The figure of the full circle using four Bézier curves

We compare our method in this paper with the other existing methods. All of the following methods are based on cubic Bézier curve representation of quarter of circle, except the work of Mørken [10].

In [4], a cubic parametric curve is represented; the end points and a point in the middle of the circular arc are interpolated; the error is 2.7 × 10–4 for a quarter of circle. A quarter of a circle is approximated by a cubic curve in [5] using the values and tangents at the end points with error 4.2 × 10–4. A general cubic scheme of order six is presented in [6] using values of positions, tangents, and curvatures at the endpoints. For a quarter of a circle, they got an error of 1.4 × 10–3. A cubic approximation for the circle of order six with error for a quarter of 1.4 × 10M–4 is given in [7]. In [9], different types of cubic approximations of circular arcs of order six are considered; best error of a quarter is 2 × 10–4. In [12], the conjecture of high order approximation is illustrated; representation of a circular arc is given as an example with error about 2 × 10–3 for a circle quarter, see also [11, 13]. Quadratic splines are used in [8] to represent conic sections with high order. Quadratic methods are given in [10] to represent circular arcs with best error of 1 × 10–2.

The scheme in this paper represents a circular arc in an easy way while satisfying the approximation conditions of the best uniform approximation. The resulting error between the circle and the quadratic Bézier curve is 5.5×10–3. This example shows that the quadratic Bézier representation of circular arc competes with the other existing cubic Bézier representations of circular arcs. It has additional advantage that it is represented using three Bézier points making it affordable in all applications.

Fig. 5 and Fig. 6 illustrate the facts that were proved in the theorems and propositions. In particular, the approximating Bézier curves satisfy conditions of the approximating problem: p minimizes the uniform error maxt∈[0,1]|E(t)| and approximates c with order four, and the error function E(t) equioscillates five times over the interval [0, 1].

Fig. 6.

The error of one out of four quarters of the full circle

7 Conclusions

It is a challenging issue and is still an open problem to find the best quadratic uniform approximation of a function with the following properties: the error function equioscillates four times, the approximation order is three, and the curve and the approximation intersect three times.

Despite these challenges, we are able to find in this article the best quadratic uniform approximation of circular arcs with parametrically defined polynomial curve in explicit form. Fortunately, we did get better results than expected: the error function equioscillates five times (rather than four times); the approximation order is four (rather than three); the curve and the approximation intersect four times (rather than three times). Numerical examples are given in section 6 demonstrated the efficiency and simplicity of the approximation method.

Representing circular arcs using quadratic Bézier curves is needed in many applications. It is interesting to further investigate the following related issues:

  1. Study quadratic approximation with G1–continuity using equioscillating error functions and constrained Chebyshev polynomials.

  2. Find a way to write the Bézier points in terms of the angle θ. It would be very important to have the best approximation available for any θ perhaps by employing a semi-numerical method.

  3. Apply these results in this paper to perform degree reduction of Bézier curves to get the best approximation with the minimum uniform error.

  4. Moreover, it will also be interesting to approximate other kinds of curves using best uniform quadratic approximation that has order four, and the error function equioscillates five times. Even though it is a tough subject to find the best quadratic uniform approximation of a function with error that equioscillates four times, has approximation order three, and the function and the approximation intersect three times.

Acknowledgement

The author owes thanks to the reviewers for helpful and invaluable comments and suggestions for improving an earlier version of this paper.

References

  • [1]

    G. Farin, Curves and Surfaces for Computer Aided Geometric Design, Academic Press, Boston (1988).

  • [2]

    J. Hoschek and D. Lasser, Fundamentals of Computer Aided Geometric Design, A K Peters, Wellesley (1993).

  • [3]

    H. Prautzsch, W. Boehm, M. Paluszny, Bézier and B-Spline Techniques, Springer (2002).

  • [4]

    P. Bézier, The mathematical basis of the UNISURF CAD system, Butterworth-Heinemann Newton, MA, USA, ISBN 0-408-22175-5, (1986).

  • [5]

    J. Blinn, How many ways can you draw a circle?, Computer Graphics and Applications, IEEE 7(8) (1987), 39-44.

  • [6]

    C. de Boor, K. Höllig and M. Sabin, High accuracy geometric Hermite interpolation, Comput. Aided Geom. Design 4 (1988), 269-278.

  • [7]

    T. Dokken, M. Dæhlen, T. Lyche and K. Mørken, Good approximation of circles by curvature-continuous Bézier curves, Comput. Aided Geom. Design 7 (1990), 33-41.

  • [8]

    M. Floater, High order approximation of conic sections by quadratic splines, Comput. Aided Geom. Design 12 (1995), 617-637.

  • [9]

    M. Goldapp, Approximation of circular arcs by cubic polynomials, Comput. Aided Geom. Design 8 (1991), 227-238.

  • [10]

    K. Mørken, Best approximation of circle segments by quadratic Bézier curves, in Curves and Surfaces, P. L. Laurent, A. Le Méhaute, and L. Schumacker (eds.), Academic Press (1991), 331-336.

  • [11]

    A. Rababah, Taylor theorem for planar curves, Proc. Amer. Math. Soc. 119(3), (1993), 803-810.

  • [12]

    A. Rababah, High order approximation method for curves, Comput. Aided Geom. Design 12 (1995), 89-102.

  • [13]

    A. Rababah, High accuracy Hermite approximation for space curves in <d, Journal of Mathematical Analysis and Applications 325(2), (2007), 920-931.

  • [14]

    A. Rababah, The best uniform cubic and quartic approximation of circular arcs with high accuracy, preprint.

  • [15]

    A. Rababah and S. Mann, Iterative process for G2-multi degree reduction of Bézier curves, Applied Mathematics and Computation 217(20), (2011), 8126-8133.

  • [16]

    A. Rababah and S. Mann, Linear methods for G1, G2, and G3-multi-degree reduction of Bézier curves, Computer-Aided Design 45(2), (2013), 405-414.

  • [17]

    J. Rice, The approximation of functions, Vol. 1: linear theory, Addison-Wesley, 1964.

About the article

Received: 2015-09-19

Accepted: 2016-01-07

Published Online: 2016-03-03

Published in Print: 2016-01-01


Citation Information: Open Mathematics, ISSN (Online) 2391-5455, DOI: https://doi.org/10.1515/math-2016-0012. Export Citation

© 2016 Rababah, published by De Gruyter Open.. This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 3.0 License. (CC BY-NC-ND 3.0)

Comments (0)

Please log in or register to comment.
Log in