Elsevier

Applied Mathematics and Computation

Volume 251, 15 January 2015, Pages 258-274
Applied Mathematics and Computation

Shape-preserving piecewise rational interpolant with quartic numerator and quadratic denominator

https://doi.org/10.1016/j.amc.2014.11.067Get rights and content

Abstract

An explicit representation of a piecewise rational interpolant with quartic numerator and quadratic denominator is presented. For positivity data, monotone data and convex data, the shape-preserving properties of the interpolant are given. The interpolant is C2 continuous spline with a shape parameter wi on each subinterval. The values of wi to guarantee shape preservation are estimated. A convergence analysis establishes an error bound in terms of wi and shows that the interpolant is O(h2) or O(h3) accurate. Several examples are supplied to support the practical value of the given interpolation method.

Introduction

In some practical situations it is often required to generate a smooth function that interpolates a prescribed set of data. An interpolant is often needed to preserve certain geometric shape properties of the data such as monotonicity or convexity. At the same time, the interpolant is wanted to be C1 or C2 continuous.

There are many effective methods for the construction of shape-preserving interpolants. Some methods are appropriate for monotonicity-preserving, see [10], [16], [17], [26], [32]. Some methods are appropriate for convexity-preserving, see [3], [4], [5], [12], [18], [22], [36], [37]. There are some methods available for the construction of a C1 shape-preserving interpolant. On the other hand, it is a more difficult task to construct a C2 shape-preserving interpolant, see [11], [13], [14], [18], [34], [37].

Some polynomial spline methods have a common feature in that no additional knots need to be supplied, see [1], [2], [6], [8], [9], [14], [16], [20], [21], [23], [33], [35]. In contrast, the papers [15], [26], [27], [34], [37], [38] discussed the methods by adding one or two additional knots on the subinterval so that the monotonicity or convexity of the data is preserved. In [38], it was mentioned that the user could interactively adjust the slopes and knot locations in order to alter the shape of the interpolating curves as desired.

Recently, in application to computer-aided design, some methods for constructing shape-preserving interpolation have been presented, see [7], [19], [24], [25], [30], [31]. In [28], [29], Subdivision methods are discussed.

For C2 continuity, almost all the methods are concerned to solve the consistency equations. Thus, shape-preserving properties will lead to some constraint conditions on the interpolation data and changes to any data will require solving again all the equations. Therefore, it is difficult to achieve monotonicity-preserving and convexity-preserving at the same time. In [10], for strict monotone data, the existence and uniqueness of a positive solution of the non-linear equations were proved. In [12], for strict convex data, the existence and uniqueness of a solution of the non-linear equations satisfying the convexity constraint were shown. However, in some other papers, for the derivative parameters, the solution of the non-linear equations satisfying the shape constrains was not discussed. In [13], it was mentioned that the proper choice of the parameter to guarantee shape preservation is still an unsettled question.

There are few C2 continuous interpolation methods which are appropriate not only for monotonicity-preserving but also for convexity-preserving. In [10], [26], the convexity-preserving property of the interpolant was not discussed. In [3], [5], [12], [18], [37], the monotonicity-preserving property of the interpolant was not discussed. In [18], the explicit representation of the shape parameters was given.

As mentioned as above, the problem to construct a monotonicity-preserving, convexity-preserving and C2 continuous local interpolation method has not been solved well. The motivation of this paper is to present a C2 piecewise rational interpolant which is appropriate not only for monotonicity-preserving but also for convexity-preserving. We will construct C2 continuous interpolant without solving a global system of consistency equations or adding additional knots on the subinterval. Thus, we can give explicit representations of the shape parameters which do not need any constraint conditions on the positive, strict monotone or strict convex data.

The remainder of this paper is organized as follows. In next section, the piecewise expression of the rational quartic interpolant is described. Some derivative expressions and C2 continuity of the given interpolant are shown in Section 3. The shape-preserving properties are discussed in Section 4. In Section 5, we show the convergence order of the interpolant. Some numerical examples and conclusions are given in Section 6 and Section 7 respectively.

Section snippets

Piecewise rational interpolant

Given data (xi,fi),i=1,2,,n, with x1<x2<<xn, we put hi=xi+1-xi,Δi=(fi+1-fi)/hi and present the following piecewise rational interpolants(x)=si(x)1Qi(t)(1-t)4fi+(1-t)3tai+(1-t)2t2bi+(1-t)t3ci+t4fi+1for x[xi,xi+1],i=1,2,,n-1, where t=(x-xi)/hi[0,1],Qi(t)(1-t)2+(wi-1)(1-t)t+t2=1+(wi-3)(1-t)t.Obviously, when wi>-1,Qi(t)>0 for t[0,1]. When wi=3, the expression (1) is a piecewise quartic polynomial interpolant. Therefore, in the subsequent work, we would like to choose wi3.

Let s(xi)=di,i=1,2

Derivative expressions and continuity

For the convenience of differentiation, we use the form of Bernstein polynomial. For Bernstein polynomialB(t)=i=0nBin(t)pi,where t[0,1],Bin(t)=ni(1-t)n-iti, we know thatB(t)=ni=0n-1Bin-1(t)(pi+1-pi).According to this, direct differentiate on (1), after much manipulation and by (3), (4), (6), we obtainsi(x)=1Qi2(t)j=05(1-t)5-jtjAij,whereAi0=[ai-(wi+1)fi]/hi=di,Ai1=[2bi-ai-(3wi-1)fi]/hi=2wiΔi-di-2Θi,Ai2=[(wi-1)bi+3ci-(2wi-1)ai-4fi]/hi=(wi2+2wi+3)Δi-(2wi-1)di-3di+1-(wi-1)Θi,Ai3=[(2wi-1)ci+4fi

Positivity-preserving property

For given set of data (xi,fi),i=1,2,,n, the polygon obtained by connecting the data points can be represented by the piecewise linear interpolant (1-t)fi+tfi+1,t[0,1],i=1,2,,n-1. The piecewise linear interpolant is nonnegativity-preserving. This implies that if fifi+10, then the sign of the interpolant is the same as the sign of the given data.

Theorem 2

For x[xi,xi+1],i=1,2,,n-1,limwisi(x)=(1-t)fi+tfi+1and the convergence is uniform.

Proof

Obviously,Qi(t)=(1-t)2+(wi-1)(1-t)t+t2(wi+1)(1-t)tand then(1-t)t

Convergence analysis

Let f be a given function with which s is compared and fi=f(xi),i=1,2,,n. In this section we show that the interpolant (1) has second order accuracy or third order accuracy.

Lemma 6

Let fC3[x1,xn],δk(x)=Δk-Δk-1-12(hk-1+hk)f(x)for k=2,3,,n-1, then|δk(x)|h2M3,x[xk-1,xk+1],2h2M3,x[xk-2,xk-1][xk+1,xk+2],where h=max1kn-1hk,M3=maxx[x1,xn]|f(x)|.

Proof

By Taylor expansion, we haveδk(x)=12hkxxk+1(xk+1-u)2f(u)du-xxk(xk-u)2f(u)du-12hk-1xxk(xk-u)2f(u)du-xxk-1(xk-1-u)2f(u)du=12hkxkxk+1(xk+1-u)2f(u)du-

Numerical examples

We present in this section the performance of the proposed method on a few classical tests and a data set with local monotonicity and convexity. For accuracy, we give an example to compare the proposed method with cubic spline interpolation method which has O(h4) accurate.

We first consider two sets of data to show the monotonicity-preserving property by (11). The first set of data may be found in [16], [26], and the interpolation curve is shown in Fig. 1 with w=(w1,w2,,wn-1)=(3,3,3,3,3,4.5,15.6

Conclusion

The presented interpolation method in this paper provides a simple solution of shape-preserving interpolation problem. The interpolant is an explicit representation of C2 continuous and piecewise rational interpolant with quartic numerator and quadratic denominator. The interpolant contains shape parameters wi which serve as tension factors. The explicit values of wi to guarantee shape preservation are given. The expressions (10), (11), (12), (13) can be used conveniently for global positivity

Acknowledgments

The author thanks the referees for their careful review and valuable comments. The author’s research was supported by the National Natural Science Foundation of China (Nos. 10871208, 11271376).

References (38)

  • A. Messac et al.

    A new family of convex splines for data interpolation

    CAGD

    (1997)
  • J.C. Clements

    Convexity-preserving piecewise rational cubic interpolation

    SIAM J. Numer. Anal.

    (1990)
  • J.C. Clements

    A convexity-preserving C2 parametric rational cubic interpolation

    Numer. Math.

    (1992)
  • P. Costantini

    On monotone and convex spline interpolation

    Math. Comput.

    (1986)
  • P. Costantini

    Curve and surface construction using variable degree polynomial splines

    CAGD

    (2000)
  • H. Dauner et al.

    An analysis of two algorithms for shape-preserving cubic spline interpolation

    IMA J. Numer. Anal.

    (1989)
  • R. Delbourgo et al.

    C2 rational quadratic spline interpolation to monotonic data

    IMA J. Numer. Anal.

    (1983)
  • R. Delbourgo et al.

    Shape preserving piecewise rational interpolation

    SIAM J. Sci. Stat. Comput.

    (1985)
  • R. Delbourgo

    Shape preserving interpolation to convex data by rational functions with quadratic numerator and linear denominator

    IMA J. Numer. Anal.

    (1989)
  • Cited by (27)

    • Direction-consistent tangent vectors for generating interpolation curves

      2019, Journal of Computational and Applied Mathematics
    • Shape-preserving piecewise rational interpolation with higher order continuity

      2018, Applied Mathematics and Computation
      Citation Excerpt :

      In the paper [27], the given interpolant is convexity-preserving and C2 continuous without solving a global system of equations, and the approximation order is 3. With second order precision in general, the given methods in [29,51,52] were C2 continuous interpolation methods which are appropriate not only for monotonicity-preserving but also for convexity-preserving. The first motivation of this paper is to present higher order continuous piecewise interpolants which are appropriate not only for monotonicity-preserving but also for convexity-preserving.

    • A quadratic trigonometric weighted spline with local support basis functions

      2018, Alexandria Engineering Journal
      Citation Excerpt :

      In the existing literature, a wide-ranging effort has been put in the course of curve modeling. For brevity, the readers are referred to [1–27]. In the field of geometric modeling and computer graphics, a cubic spline curve is considered as a decent approach.

    • Cubic Hermite interpolation with minimal derivative oscillation

      2018, Journal of Computational and Applied Mathematics
    View all citing articles on Scopus
    View full text