Abstract
In this work, we introduce a novel class of rational quadratic interpolation splines defined by two symmetric parameters. This generalization encompasses the rational quadratic interpolation schemes given by Schmidt in 1987 as a special case. For data sets with convexity, monotonicity, or positivity constraints, we derive the necessary and sufficient conditions, ensuring that the interpolant preserves these properties. Furthermore, we propose an algorithm for selecting visually appealing and shape-preserving spline curves by minimizing a particular approximated curvature functional.
1. Introduction
With the development of computer graphics (CG), computer-aided design (CAD), computer aided geometric design (CAGD), and scientific data visualization in engineering, constructing visually pleasing shape-preserving interpolation spline curves for positive, monotone, and/or convex sets of data being interpolated is an essential problem and has attracted widespread interest. In the past, various shape-preserving interpolation spline methods have been proposed; among the multitude of references on this subject, the reader is referred to the comprehensive reviews by Kvasov [1] and Goodman [2], where systematic comparisons and analyses of existing algorithms for shape-preserving spline interpolation are provided.
Piecewise rational quadratic and cubic spline methodologies have been extensively researched for developing shape-preserving interpolation splines. Multiple specialized rational cubic interpolation splines have been formulated for the graphical representation of strictly positive data sets by Hussain and Sarfraz [3], Sarfaze [4], and Qin et al. [5]. Some specific rational cubic monotonicity-preserving interpolants have been proposed by Gregory [6], Sarfraz [7,8], Hussain and Hussain [9], Sarfraz et al. [10], and Abbas et al. [11]. Various rational cubic splines have been constructed by Delbourgo [12], Sarfraz and Hussain [13], Sarfraz et al. [14], and Abbas et al. [15] to produce convexity-preserving interpolation curves for convex data sets. These shape-preserving rational cubic interpolants typically achieve continuity, whereas continuity requires solving linear/nonlinear systems of compatibility equations for derivative specifications at knots; see the corresponding methods described in Delbourgo [12] and Abbas et al. [15]. Recently, by using weighted quadratic and cubic splines, Kvasov developed weighted quadratic/cubic spline algorithms with automated weight selection mechanisms for generating shape-preserving interpolants specific to monotonic or convex data sets; see Kvasov [16,17,18]. Some rational quartic shape-preserving interpolation splines were designed by Han [19,20], Zhu and Han [21], and Zhu [22,23], avoiding solving global linear/nonlinear compatibility equation systems. However, the shape-preserving conditions of these methods are just sufficient but not necessary.
When constructing shape-preserving interpolation splines, a necessary and sufficient condition can always bring much convenience. For example, it can precisely judge whether the splines preserve the shape or not and estimate practicability. Therefore, the key aim of this paper is to find the necessary and sufficient conditions. There are a few papers concerning the construction of shape-preserving interpolation splines with sufficient and necessary conditions. In [24], Schmidt developed a kind of rational quadratic interpolation splines with a parameter, with a necessary and sufficient criterion to ensure the property of positivity carries over from the data set. The criterion can always be satisfied if the parameters are properly chosen. Later, in [25], Schmidt constructed a class of quadratic and related exponential interpolation splines and discussed and deduced sufficient and necessary conditions for the interpolant preserving monotonicity and/or convexity.
In this work, we construct a kind of rational quadratic interpolation spline possessing two symmetric parameters, which include the positivity-preserving rational quadratic interpolation splines with a parameter given in [24] as a special case. Furthermore, the necessary and sufficient conditions for the new rational quadratic interpolation splines preserving convexity, monotonicity, and positivity are also developed. The rest of this paper is organized as follows. Section 2 gives the construction of the new rational quadratic interpolation spline with two symmetric parameters. Furthermore, the necessary and sufficient conditions of the proposed interpolation spline to preserve the shape of convex, monotonic, and positive sets of data are derived. In Section 3, a particular approximated curvature is applied to select visually appealing shape-preserving interpolation spline curves. In Section 4, several numerical examples and comparisons are given. Furthermore, a conclusion is given in Section 5.
2. Shape-Preserving Interpolation Rational Quadratic/Linear Interpolation Spline
Let be the given real data and be the chosen first derivative values at knots , , where is a partition of interval . Furthermore, let parameters , be given. For , we put . For , , , a new rational quadratic/linear interpolation spline with two symmetric parameters and is constructed as follows
where is a real parameter to be determined.
Remark 1.
From (1), it is easy to check that for , the rational quadratic/linear interpolation spline will return to the rational quadratic/linear interpolation spline with a parameter given in [24]. Thus, the rational quadratic/linear interpolation spline with two parameters given in (1) includes the rational quadratic/linear interpolation spline with a parameter given in [24] as a special case.
From (1), by direct computation, we have . We want to satisfy for all , from which we can determine the parameter as follows
where and the slopes are defined as follows
We further require that for all , and these conditions lead to
with and as follows
Thus, conditions (2) together with conditions (4) concerning the first derivatives of in the nodes, can assure that for all , , , , , which implies that , , and thus, . Furthermore, if is known, the spline can be computed successively on the subintervals , . From (2), as , , we have ; thus, for , we have
In addition, for , , since , we have
These imply that a small or large value of will make the interpolant locally approximate to a linear interpolant in the subinterval . Thus, the parameter serves as a tension parameter.
In the next three sections, we shall derive the necessary and sufficient conditions for the interpolant possessing convexity-preserving, monotonicity-preserving, and positivity-preserving properties.
2.1. Convexity Preserving Conditions
We say that is a convex data set if and only if the slopes , satisfy
Assume that the slopes satisfy (6). For , from (1), by direct computation, we have
where . From (7), we can see that if and only if . Furthermore, from (2), we can immediately obtain the following theorem.
Theorem 1.
For the points , in convex position, the interpolant with and is convex on if and only if
From Theorem 1 and with regard to the conditions (4), the following problem arises: are there derivatives , such that
hold for all .
It follows immediately by induction that the following equation
holds. Therefore, since , the requirement holds for all and is equivalent to
We further set
Then, from (12), we can see that if is satisfied, there belongs a convexity-preserving interpolation spline to every . Summarizing this, the following theorem results.
Theorem 2.
For a strict convex data set, that is , we further show that there always exist parameters such that is always valid.
In fact, take i is an even number, for example. We can always choose the parameters , in such a manner that
In fact, in view of (10) and of for , the desired inequality
is always met for a sufficiently large .
We can thus conclude the following theorem.
Theorem 3.
2.2. Monotonicity Preserving Conditions
We say that is a monotone increasing data set if and only if
Now, let the given slopes satisfy (17). For , , direct computation gives that
From this, together with the conditions given in (4), we can obtain the following theorem.
Theorem 4.
With all and , holds for any if and only if the following conditions hold
Proof.
In fact, it suffices to verify that for any , ,
holds if and . Indeed, from (2) and (4), and implies that
And thus, for , we have
These imply the theorem. □
In view of Theorem 4 and the conditions given in (4), one is now led to the following problem: are there derivatives , such that
hold for all .
For treating (20), we define , , and
By induction, we can easily obtain the following relation
Therefore, , are equivalent to
And with the following notations
we can obtain the following existence theorem.
Theorem 5.
For strictly monotone increasing data points, that is , we further show that there always exist parameters such that is always valid.
In fact, take i is an odd number, for example. We can always choose the parameters , in such a manner that
In fact, in view of (21) and of for , the desired inequality
is always met for a sufficiently large . We can thus conclude the follow theorem.
Theorem 6.
Proof.
If the data set is increasing and convex, that is
then there exists interpolation spline , which is also increasing and convex, if and only if
2.3. Positivity-Preserving Conditions
We say that is a non-negative data set if and only if , satisfy
Since and , from [24], we can see that the non-negative of on is equivalent to . Thus, we can obtain the following theorem.
Theorem 7.
The rational quadratic spline interpolant is non-negative on if and only if
where
From (7) and with regard to the conditions given in (4), the following problem arises: are there derivatives , such that
hold for all .
For treating (33), we define and
where .
From (4), we can easily verify that
Hence, condition (31) reads as
Thus, by setting
we can easily obtain the following theorem.
Theorem 8.
For the non-negative data set , the interpolant with and is non-negative on if and only if
For all , we further show that there always exist parameters such that is always valid.
In fact, since for , for a sufficiently large , , it follows that
and therefore, the condition (37) is satisfied. Thus, we have the following theorem.
Theorem 9.
For , . Then, for sufficiently large parameters , , the interpolant is non-negative on .
3. Adaptive Choice of Shape-Preserving Interpolation Splines
From the above Theorems 2, 5 and 8, we can see that convexity-, monotonicity- or non-negativity-preserving interpolants are uniquely solvable only for , or , respectively. Furthermore, for , or , there exists an infinite number of convexity-, monotonicity- or non-negativity-preserving interpolants . In this section, we shall minimize a particular approximated curvature to select a visually appealing shape-preserving interpolation spline.
The classical geometric curvature is defined as follows
which is usually used as an objective function, while in real applications, the denominator makes the integration a big difficulty. In order to obtain a more convenient objective function, we follow the method given in [24] to approximate by the slope given in (3) for . Therefore, the following particular approximated curvature is taken as the objective function for selecting a shape-preserving interpolation spline
with
where ; see [24].
Thus, when dealing with a convex set of data, we use the following quadratic program to select a convexity-preserving interpolant
Furthermore, when dealing with monotone increasing sets of data, we use the following quadratic program to select a monotonicity-preserving interpolant
Furthermore, when dealing with a non-negative set of data, we use the following quadratic program to select a non-negativity-preserving interpolant
The quadratic programs given in (41)–(43) are easily solved since the objective function and the constraints are actually functions of alone. To be more concrete, by using the relations given in (11), the quadratic program (41) reduces to
and by using the relations given in (22), the quadratic program (42) reduces to
and by using the relations given in (35), the quadratic program (43) reduces to
Summarizing the above discuss, we can conclude the following theorem.
4. Numerical Examples
Example 1.
In this example, we consider the convex data set given in Table 1. For different values of M and θ, we show the choices of and and the corresponding optimal minimizers given in (50) in Table 2. Figure 1 shows the corresponding convexity-preserving interpolation curves for different cases. From the results, we can see that the convexity-preserving interpolation curves preserve the shape of the different cases of convex data sets well.
Table 1.
The convex data set given in [25].
Example 2.
In this example, we consider the monotone increasing data set given in Table 3. For different values of θ, we show the choices of and and the corresponding optimal minimizers given by (51) in Table 4. Figure 2 shows the corresponding monotonicity-preserving interpolation curves for different cases. From the results, we can see that the monotonicity-preserving interpolation curves preserve the shape of the different cases of monotone increasing data sets well.
Table 3.
Monotone increasing data set.
Example 3.
In this example, we consider the positive data set given in Table 5. For different values of θ, we show the choices of and and the corresponding optimal minimizers given by (52) in Table 6. Figure 3 shows the corresponding positivity-preserving interpolation curves for different cases. From the results, we can see that the positivity-preserving interpolation curves preserve the shape of the different cases of positive data sets well.
Table 5.
Positive data set.
In the next three examples, we shall show some comparison between our shape-preserving interpolation splines and some existing ones.
Example 4.
In this example, we consider the convex data set given in Table 7, Table 8 and Table 9. We generate the corresponding convexity-preserving interpolation curves using the proposed method and the methods given in [12,13]. For the proposed method, the choices of parameters and are shown in Table 7, Table 8 and Table 9. Furthermore, the corresponding numerical results of the parameters are , , , and for Table 7; , , , and for Table 8; and , , , and for Table 9. From Figure 4, we can see that the convexity-preserving interpolation curves generated by the new method proposed are more attractive than those generated by the methods given in [12,13].
Table 7.
Convex data set.
Table 8.
Convex data set given in [12].
Table 9.
Convex data set given in [13].
Figure 4.
Comparison of the convexity-preserving interpolation curves for the convex data sets given in Table 7, Table 8, and Table 9, respectively. (a) By our method. (b) By our method. (c) By our method. (d) By the method given in [12]. (e) By the method given in [12]. (f) By the method given in [12]. (g) By the method given in [13]. (h) By the method given in [13]. (i) By the method given in [13].
Example 5.
In this example, we consider the monotone increasing data set given in Table 10, Table 11 and Table 12. We generate the corresponding monotonicity-preserving interpolation curves by the proposed method and the methods given in [6,14]. For the the proposed method, the choices of parameters and are shown in Table 10, Table 11 and Table 12. Furthermore, the corresponding numerical results of the parameters are , , , and for Table 10; , , , and for Table 11; and , , , and for Table 12. From Figure 5, we can see that the monotonicity-preserving interpolation curves generated by the new method proposed are more attractive than the ones generated by the methods given in [6,14].
Table 10.
Monotone data set.
Table 11.
Monotone data set given in [6].
Table 12.
The monotone data set given in [14].
Figure 5.
Comparison of the monotonicity-preserving interpolation curves for the convex data set given in Table 10, Table 11, and Table 12, respectively. (a) By our method. (b) By our method. (c) By our method. (d) By the method given in [6]. (e) By the method given in [6]. (f) By the method given in [6]. (g) By the method given in [14]. (h) By the method given in [14]. (i) By the method given in [14].
Example 6.
In this example, we consider the positive data set given in Table 13, Table 14 and Table 15. We generate the corresponding positivity-preserving interpolation curves by the proposed method and the methods given in [3,5]. For the the proposed method, the choices of parameters and are shown in Table 13, Table 14 and Table 15. Furthermore, the corresponding numerical results of the parameters are , , , and for Table 13; , , , and for Table 14; and , , , for Table 15. From Figure 6, we can see that the positivity-preserving interpolation curves generated by the new method proposed are more attractive than those generated by the methods given in [3,5].
Table 13.
Positive data set.
Table 14.
Positive data set given in [3].
Table 15.
Positive data set given in [5].
Figure 6.
Comparison of the monotonicity-preserving interpolation curves for the convex data set given in Table 13, Table 14, and Table 15, respectively. (a) By our method. (b) By our method. (c) By our method. (d) By the method given in [3]. (e) By the method given in [3]. (f) By the method given in [3]. (g) By the method given in [5]. (h) By the method given in [5]. (i) By the method given in [5].
5. Conclusions
We have proposed a kind of rational quadratic interpolation spline featuring two symmetric parameters. This generalization encompasses the positivity-preserving rational quadratic spline presented in [24] as a special case. Additionally, we have derived the necessary and sufficient conditions for ensuring that the interpolant preserves convexity, monotonicity, and positivity. To enhance the visual appeal of the resulting shape-preserving interpolation curves, we have introduced an optimization-based approach by minimizing a particular approximated curvature metric, which enables the construction of shape-preserving interpolation splines with aesthetically pleasing characteristics. Compared with the shape-preserving methods given in [3,5,6,12,13,14], the shape-preserving interpolation curves generated by the new method proposed are more visually pleasing. Future research will extend this framework to develop shape-preserving interpolation techniques for surfaces.
Author Contributions
Conceptualization, Z.L. and S.L.; methodology, Z.L. and S.L.; software, Z.L.; validation, Z.L.; formal analysis, S.L.; investigation, Z.L.; resources, S.L.; data curation, S.L.; writing—original draft preparation, S.L.; writing—review and editing, Z.L.; visualization, S.L.; supervision, Z.L.; project administration, Z.L.; funding acquisition, S.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Natural Science Foundation of China (No. 62172447).
Data Availability Statement
Data is contained within the article.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Kvasov, B.I. Methods of Shape-Preserving Spline Approximation; World Scientific: Singapore, 2000. [Google Scholar]
- Goodman, T.N.T. Shape preserving interpolation by curves. In Algorithms for Approximation IV; Leversity, J., Anderson, I., Mason, J., Eds.; University of Huddersfield: Huddersfield, UK, 2002; pp. 24–35. [Google Scholar]
- Hussain, M.Z.; Sarfraz, M. Positivity-preserving interpolation of positive data by rational cubics. J. Comput. Appl. Math. 2008, 218, 446–458. [Google Scholar] [CrossRef]
- Sarfraz, M.; Hussain, M.Z.; Nisar, A. Positive data modeling using spline function. Appl. Math. Comput. 2010, 216, 2036–2049. [Google Scholar] [CrossRef]
- Qin, X.B.; Qin, L.; Xu, Q.S. C1 positive-preserving interpolation schemes with local free parameters. IAENG Int. J. Comput. Sci. 2016, 43, 1–9. [Google Scholar]
- Gregory, J.A.; Delbourgo, R. Piecewise rational quadratic interpolation to monotonic data. IMA J. Numer. Anal. 1982, 2, 123–130. [Google Scholar] [CrossRef]
- Sarfraz, M. A rational cubic spline for the visualization of monotonic data. Comput. Graph. 2000, 24, 509–516. [Google Scholar] [CrossRef]
- Sarfraz, M. A rational cubic spline for the visualization of monotonic data: An alternate approach. Comput. Graph. 2003, 27, 107–121. [Google Scholar] [CrossRef]
- Hussain, M.Z.; Hussain, M. Visualization of data preserving monotonicity. Appl. Math. Comput. 2007, 190, 1353–1364. [Google Scholar] [CrossRef]
- Hussain, M.Z.; Sarfraz, M. Monotone piecewise rational cubic interpolation. Int. J. Comput. Math. 2009, 86, 423–430. [Google Scholar] [CrossRef]
- Abbas, M.; Majid, A.A.; Ali, J.M. Monotonicity-preserving C2 rational cubic spline for monotone data. Appl. Math. Comput. 2012, 219, 2885–2895. [Google Scholar] [CrossRef]
- Delbourgo, R. Shape preserving interpolation to convex data by rational functions with quadratic numerator and linear denominator. IMA J. Numer. Anal. 1989, 9, 123–136. [Google Scholar] [CrossRef]
- Sarfraz, M.; Hussain, M.Z. Shape-preserving curve interpolation. Int. J. Comput. Math. 2012, 89, 35–53. [Google Scholar] [CrossRef]
- Sarfraz, M.; Hussain, M.Z.; Hussain, M. Modeling rational spline for visualization of shaped data. J. Numer. Math. 2013, 21, 63–87. [Google Scholar] [CrossRef]
- Abbas, M.; Majid, A.A.; Ali, J.M. Local convexity-preserving C2 rational cubic spline for convex data. Sci. World J. 2014, 2014, 391568. [Google Scholar] [CrossRef] [PubMed]
- Kvasov, B.I. Monotone and convex interpolation by weighted cubic splines. Comput. Math. Math. Phys. 2003, 53, 1428–1439. [Google Scholar] [CrossRef]
- Kvasov, B.I. Monotone and convex interpolation by weighted quadratic splines. Adv. Comput. Math. 2014, 40, 91–116. [Google Scholar] [CrossRef]
- Kvasov, B.I. Discrete weighted cubic splines. Numer. Algor. 2014, 67, 863–888. [Google Scholar] [CrossRef]
- Han, X.L. Convexity-preserving piecewise rational quartic interpolation. SIAM J. Numer. Anal. 2008, 46, 920–929. [Google Scholar] [CrossRef]
- Han, X.L. Shape-preserving piecewise rational interpolant with quartic numeratror and quadratic denominator. Appl. Math. Comput. 2015, 251, 258–274. [Google Scholar]
- Zhu, Y.P.; Han, X.L. C2 rational quartic interpolation spline with local shape preserving property. Appl. Math. Lett. 2015, 46, 57–63. [Google Scholar] [CrossRef]
- Zhu, Y.P. C2 Rational quartic/cubic spline interpolant with shape constraints. Res. Math. 2018, 73, 73–127. [Google Scholar] [CrossRef]
- Zhu, Y.P. C2 positivity-preserving rational interpolation splines in one and two dimensions. Appl. Math. Comput. 2018, 316, 186–204. [Google Scholar] [CrossRef]
- Schmidt, J.W.; Hess, W. Positive Interpolation with Rational Quadratic Splines. Computing 1987, 38, 261–267. [Google Scholar] [CrossRef]
- Schmidt, J.W.; Hess, W. Quadratic and related exponential splines in shape preserving interpolation. J. Comput. Appl. Math. 1987, 18, 321–329. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).