Next Article in Journal
Robust 3D Multi-Image Encryption Scheme Based on Rubik’s Cube–Poker Model
Previous Article in Journal
A New Joint Limit Theorem of Bohr–Jessen Type for Epstein Zeta-Functions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

C1 Shape-Preserving Rational Quadratic/Linear Interpolation Splines with Necessary and Sufficient Conditions

School of Mathematics and Statistics, Central South University, Changsha 410083, China
*
Author to whom correspondence should be addressed.
Symmetry 2025, 17(6), 815; https://doi.org/10.3390/sym17060815
Submission received: 27 April 2025 / Revised: 19 May 2025 / Accepted: 19 May 2025 / Published: 23 May 2025
(This article belongs to the Section Mathematics)

Abstract

In this work, we introduce a novel class of C 1 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 C 1 continuity, whereas C 2 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 C 1 quadratic and cubic splines, Kvasov developed weighted C 1 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 C 2 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 C 1 shape-preserving interpolation splines with sufficient and necessary conditions. In [24], Schmidt developed a kind of C 1 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 C 1 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 C 1 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 C 1 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 ( x i , y i ) be the given real data and m i be the chosen first derivative values at knots x i , i = 1 , 2 , , n , where a = x 1 < x 2 < < x n = b is a partition of interval [ a , b ] . Furthermore, let parameters λ i > 0 , μ i > 0 , i = 1 , 2 , , n 1 be given. For i = 1 , 2 , , n 1 , we put h i = x i + 1 x i . For x [ x i , x i + 1 ] , t = ( x x i ) / h i , 1 i n 1 , a new rational quadratic/linear interpolation spline S ( x ) with two symmetric parameters λ i and μ i is constructed as follows
S ( x ) = y i + h i m i t + h i p i t 2 λ i t + μ i ( 1 t ) ,
where p i is a real parameter to be determined.
Remark 1.
From (1), it is easy to check that for μ i = 1 , the rational quadratic/linear interpolation spline S ( x ) will return to the rational quadratic/linear interpolation spline with a parameter given in [24]. Thus, the rational quadratic/linear interpolation spline S ( x ) 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 S ( x i + ) = y i , S ( x i + ) = m i . We want S ( x ) to satisfy S ( x i + 1 ) = y i + 1 for all 1 i n 1 , from which we can determine the parameter p i as follows
p i = λ i ( τ i m i ) ,
where i = 1 , 2 , , n 1 and the slopes τ i are defined as follows
τ i = ( y i + 1 y i ) / h i .
We further require that S ( x i + 1 ) = m i + 1 for all 1 i n 1 , and these conditions lead to
α i m i + β i m i + 1 = τ i , i = 1 , 2 , , n 1 ,
with α i and β i as follows
α i = μ i λ i + μ i , β i = λ i λ i + μ i , α i + β i = 1 .
Thus, conditions (2) together with conditions (4) concerning the first derivatives m 1 , m 2 , , m n of S ( x ) in the nodes, can assure that for all 1 i n 1 , S ( x i + ) = y i , S ( x i + 1 ) = y i + 1 , S ( x i + ) = m i , S ( x i + 1 ) = m i + 1 , which implies that S ( x i + ) = S ( x i ) = y i , S ( x i + ) = S ( x i ) = m i , and thus, S ( x ) C 1 a , b . Furthermore, if m 1 is known, the spline S ( x ) can be computed successively on the subintervals x i , x i + 1 , i = 1 , 2 , , n 1 . From (2), as λ i 0 , 1 i n 1 , we have p i 0 ; thus, for x [ x i , x i + 1 ] , we have
lim λ i 0 S ( x ) = y i + h i m i t .
In addition, for λ i + , 1 i n 1 , since α i 0 , β i 1 , we have
lim λ i + S ( x ) = ( 1 t ) y i + t y i + 1 .
These imply that a small or large value of λ i will make the interpolant S ( x ) locally approximate to a linear interpolant in the subinterval [ x i , x i + 1 ] . Thus, the parameter λ i serves as a tension parameter.
In the next three sections, we shall derive the necessary and sufficient conditions for the interpolant S ( x ) possessing convexity-preserving, monotonicity-preserving, and positivity-preserving properties.

2.1. Convexity Preserving Conditions

We say that ( x i , y i ) , i = 1 , 2 , , n is a convex data set if and only if the slopes τ i , i = 1 , 2 , , n 1 satisfy
τ 1 τ 2 τ n 1 .
Assume that the slopes τ 1 , τ 2 , , τ n 1 satisfy (6). For x [ x i , x i + 1 ] , from (1), by direct computation, we have
S ( x ) = 2 p i μ i 2 h i λ i t + μ i ( 1 t ) 3 ,
where t = ( x x i ) / h i [ 0 , 1 ] . From (7), we can see that S ( x ) 0 if and only if p i 0 . Furthermore, from (2), we can immediately obtain the following theorem.
Theorem 1.
For the points ( x i , y i ) , i = 1 , 2 , , n in convex position, the interpolant S ( x ) with λ i > 0 and μ i > 0 is convex on [ a , b ] if and only if
m i τ i , i = 1 , 2 , , n 1 .
From Theorem 1 and with regard to the conditions (4), the following problem arises: are there derivatives m i , i = 1 , 2 , , n such that
α i m i + β i m i + 1 = τ i , m i τ i ,
hold for all 1 i n 1 .
For solving problem (9), we set v i = τ i m i . Then, from (4), we have
v i + 1 = τ i + 1 m i + 1 = τ i + 1 τ i α i v i β i ,
and with γ 1 = 1 and δ 1 = τ 1 , we obtain
γ i + 1 = β i γ i / α i , i 1 , δ i + 1 = δ i + ( 1 ) i γ i + 1 ( τ i + 1 τ i ) , i 1 .
It follows immediately by induction that the following equation
v i = τ i m i = ( 1 ) i ( m 1 δ i ) / γ i , i 1
holds. Therefore, since γ i > 0 , the requirement v i 0 holds for all 1 i n 1 and is equivalent to
m 1 δ i , f o r i i s e v e n a n d 1 i n , m 1 δ i , f o r i i s o d d a n d 1 i n .
We further set
δ * = max δ i : i i s e v e n a n d 1 i n , δ * = min δ i : i i s o d d a n d 1 i n .
Then, from (12), we can see that if δ * δ * is satisfied, there belongs a convexity-preserving interpolation spline to every m 1 δ * , δ * . Summarizing this, the following theorem results.
Theorem 2.
For the points ( x i , y i ) , i = 1 , 2 , , n in a convex position, there exists a convexity-preserving interpolation spline S ( x ) if and only if the following condition holds
δ * δ * ,
where the numbers δ * , δ * are defined by (10) and (13).
For a strict convex data set, that is τ 1 < τ 2 < < τ n 1 , we further show that there always exist parameters λ i > 0 , μ i > 0 , i = 1 , 2 , , n 1 such that δ * < δ * is always valid.
In fact, take i is an even number, for example. We can always choose the parameters λ i , μ i in such a manner that
δ 2 < δ 4 < < δ i < δ i 1 < < δ 3 < δ 1 .
In fact, in view of (10) and of α i 1 , β i 0 for λ i + , the desired inequality
δ i < δ i + 1 < δ i 1
is always met for a sufficiently large λ i .
We can thus conclude the following theorem.
Theorem 3.
Let λ i > 0 , μ i > 0 , i = 1 , 2 , , n 1 be fixed, and assume (6) holds. Then, one always obtains
δ * δ * f o r n 3 ,
and in at least one case,
δ * > δ * f o r n 4 .
Proof. 
Indeed, from (10), we have δ 2 δ 1 and δ 2 δ 3 . This implies (15). Furthermore, since ε 3 ε 4 is valid, there are slopes τ 1 , τ 2 , τ 3 , and τ 4 such that δ 2 δ 1 < δ 4 δ 3 . In these cases, inequality (16) is obtained for all n 4 . □

2.2. Monotonicity Preserving Conditions

We say that ( x i , y i ) , i = 1 , 2 , , n is a monotone increasing data set if and only if
τ i 0 , f o r a l l i = 1 , 2 , , n 1 .
Now, let the given slopes τ 1 , τ 2 , , τ n 1 satisfy (17). For x [ x i , x i + 1 ] , t = ( x x i ) / h i , direct computation gives that
S ( x ) = m i + λ i t 2 + 2 μ i t μ i t 2 λ i t + μ i ( 1 t ) 2 p i .
From this, together with the conditions given in (4), we can obtain the following theorem.
Theorem 4.
With all λ i > 0 and μ i > 0 , S ( x ) 0 holds for any x [ a , b ] if and only if the following conditions hold
m i 0 , i = 1 , 2 , , n .
Proof. 
In fact, it suffices to verify that for any x [ x i , x i + 1 ] , t = ( x x i ) / h i [ 0 , 1 ] ,
S ( x ) = m i + λ i t 2 + 2 μ i t μ i t 2 λ i t + μ i ( 1 t ) 2 p i 0
holds if S ( x i ) = m i 0 and S ( x i + 1 ) = m i + 1 0 . Indeed, from (2) and (4), m i 0 and m i + 1 0 implies that
p i = λ i ( τ i m i ) λ i ( α i m i m i ) = λ i 2 m i λ i + μ i .
And thus, for 0 t 1 , we have
S ( x ) m i m i λ i 2 λ i + μ i · λ i t 2 + 2 μ i t μ i t 2 λ i t + μ i ( 1 t ) 2 = m i λ i μ i 2 ( 1 t 2 ) + μ i 3 ( 1 t ) 2 λ i t + μ i ( 1 t ) 2 ( λ i + μ i ) 0 .
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 m i , i = 1 , 2 , , n such that
α i m i + β i m i + 1 = τ i , m i 0 , m i + 1 0 ,
hold for all 1 i n 1 .
For treating (20), we define ε 1 = 0 , γ 1 = 1 , and
ε i + 1 = ε i + ( 1 ) i + 1 γ i τ i / α i , γ i + 1 = β i γ i / α i , i 1 .
By induction, we can easily obtain the following relation
m i = ( 1 ) i + 1 ( m 1 ε i ) / γ i , i 1 .
Therefore, m i 0 , i = 1 , 2 , 3 , , n are equivalent to
m 1 ε i , f o r i i s o d d a n d 1 i n , m 1 ε i , f o r i i s e v e n a n d 1 i n .
And with the following notations
ε * = max ε i : i i s o d d a n d 1 i n , ε * = min ε i : i i s e v e n a n d 1 i n ,
we can obtain the following existence theorem.
Theorem 5.
Under the assumption (17), there exists a monotone increasing interpolation spline S ( x ) if and only if
ε * ε * ,
with ε * and ε * given by (21) and (24).
For strictly monotone increasing data points, that is τ 1 > 0 , τ 2 > 0 , , τ n 1 > 0 , we further show that there always exist parameters λ i > 0 , μ i > 0 , i = 1 , 2 , , n 1 such that ε * < ε * is always valid.
In fact, take i is an odd number, for example. We can always choose the parameters λ i , μ i in such a manner that
ε 1 < ε 3 < < ε i < ε i 1 < < ε 4 < ε 2 .
In fact, in view of (21) and of α i 1 , β i 0 for λ i + , the desired inequality
ε i < ε i + 1 < ε i 1
is always met for a sufficiently large λ i . We can thus conclude the follow theorem.
Theorem 6.
Let λ i > 0 , μ i > 0 , i = 1 , 2 , , n 1 be fixed, and suppose (17). Then, one always has
ε * ε * f o r n 3
and in at least one case,
ε * > ε * f o r n 4 .
Proof. 
In fact, from (21), we have ε 1 ε 2 , ε 3 ε 2 . This implies (26). Furthermore, since ε 1 ε 2 , ε 3 ε 4 , in these cases, inequality (16) is obtained for all n 4 . □
If the data set is increasing and convex, that is
0 τ 1 τ 2 τ n 1 ,
then there exists interpolation spline S ( x ) , which is also increasing and convex, if and only if
max δ * , ε * min δ * , ε * .
Moreover, condition (29) can be satisfied with sufficiently large parameters λ i > 0 , i = 1 , 2 , , n 1 if strong inequalities hold in (28).

2.3. Positivity-Preserving Conditions

We say that ( x i , y i ) , i = 1 , 2 , , n is a non-negative data set if and only if y i , i = 1 , 2 , , n satisfy
y i 0 , i = 1 , 2 , , n .
For x [ x i , x i + 1 ] with t = ( x x i ) / h i , from (1), we have
λ i t + μ i ( 1 t ) S ( x ) = A i t ( 1 t ) + B i t C i C i B i B i 2 ,
where
A i = μ i m i h i + ( μ i + λ i ) y i + 2 λ i μ i y i y i + 1 , B i = μ i y i + λ i y i + 1 + 2 λ i μ i y i y i + 1 , C i = μ i y i + λ i μ i y i y i + 1 0 .
Since 0 C i / B i 1 and λ i t + μ i ( 1 t ) 0 , from [24], we can see that the non-negative of S ( x ) on [ x i , x i + 1 ] is equivalent to A i 0 . Thus, we can obtain the following theorem.
Theorem 7.
The rational quadratic spline interpolant S ( x ) is non-negative on [ a , b ] if and only if
m i η i , i = 1 , 2 , , n 1 ,
where
η i = ( μ i + λ i ) y i + 2 λ i μ i y i y i + 1 μ i h i .
From (7) and with regard to the conditions given in (4), the following problem arises: are there derivatives m i , i = 1 , 2 , , n such that
α i m i + β i m i + 1 = τ i , m i η i ,
hold for all 1 i n 1 .
For treating (33), we define d 1 = η 1 , c 1 = 1 and
d i + 1 = d i + ( 1 ) i c i λ i μ i η i + 1 + η i ( 1 + λ i μ i ) τ i , c i + 1 = λ i μ i c i ,
where i = 1 , 2 , , n 1 .
From (4), we can easily verify that
m i η i = ( 1 ) i d i m 1 c i , i = 1 , 2 , , n 1 .
Hence, condition (31) reads as
m 1 d i , f o r i i s e v e n a n d 1 i n , m 1 d i , f o r i i s o d d a n d 1 i n .
Thus, by setting
d * = min d i : i i s e v e n a n d 1 i n , d * = max d i : i i s o d d a n d 1 i n ,
we can easily obtain the following theorem.
Theorem 8.
For the non-negative data set ( x i , y i ) , i = 1 , 2 , , n , the interpolant S ( x ) with λ i > 0 and μ i > 0 is non-negative on [ a , b ] if and only if
d * d * .
For all y i > 0 , we further show that there always exist parameters λ i > 0 , μ i > 0 , i = 1 , 2 , , n 1 such that d * < d * is always valid.
In fact, since η i for λ i + , for a sufficiently large λ i , i = 1 , 2 , , n 1 , it follows that
d 3 d 1 < d 2 d 4 ,
and therefore, the condition (37) is satisfied. Thus, we have the following theorem.
Theorem 9.
For y i > 0 , i = 1 , 2 , , n . Then, for sufficiently large parameters λ i , i = 1 , 2 , , n , the interpolant S ( x ) is non-negative on [ a , b ] .

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 S ( x ) are uniquely solvable only for δ * = δ * , ε * = ε * or d * = d * , respectively. Furthermore, for δ * < δ * , ε * < ε * or d * < d * , there exists an infinite number of convexity-, monotonicity- or non-negativity-preserving interpolants S ( x ) . 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
a b S ( x ) 2 1 + S ( x ) 2 3 d x ,
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 S ( x ) by the slope τ i given in (3) for x i x x i + 1 . Therefore, the following particular approximated curvature is taken as the objective function for selecting a shape-preserving interpolation spline
C ( S ) = i = 1 n 1 w i x i x i + 1 S ( x ) 2 d x = i = 1 n 1 R i ( τ i m i ) 2 ,
with
R i = 4 w i ( μ i 4 + μ i 3 λ i + μ i 2 λ i 2 + μ i λ i 3 + λ i 4 ) 5 h i λ i 3 μ i
where w i = 1 / ( 1 + τ i 2 ) 3 ; see [24].
Thus, when dealing with a convex set of data, we use the following quadratic program to select a convexity-preserving interpolant S ( x )
min m 1 C ( S ) s . t . δ * m 1 δ * .
Furthermore, when dealing with monotone increasing sets of data, we use the following quadratic program to select a monotonicity-preserving interpolant S ( x )
min m 1 C ( S ) s . t . ε * m 1 ε * .
Furthermore, when dealing with a non-negative set of data, we use the following quadratic program to select a non-negativity-preserving interpolant S ( x )
min m 1 C ( S ) s . t . d * m 1 d * .
The quadratic programs given in (41)–(43) are easily solved since the objective function and the constraints are actually functions of m 1 alone. To be more concrete, by using the relations given in (11), the quadratic program (41) reduces to
min m 1 i = 1 n 1 R i ( m 1 δ i ) 2 γ i 2 s . t . δ * m 1 δ * ,
and by using the relations given in (22), the quadratic program (42) reduces to
min m 1 i = 1 n 1 R i γ i 2 τ i γ i + ( 1 ) i ( m 1 ε i ) 2 s . t . ε * m 1 ε * ,
and by using the relations given in (35), the quadratic program (43) reduces to
min m 1 i = 1 n 1 R i c i 2 m 1 d i + ( 1 ) i c i ( τ i η i ) 2 s . t . d * m 1 d * .
Let the unconstrained minimizers of (44)–(46) be denoted as m 1 * , m 1 * * and m 1 * * * , respectively, i.e.,
m 1 * = i = 1 n 1 R i δ i γ i 2 i = 1 n 1 R i γ i 2 ,
m 1 * * = i = 1 n 1 R i γ i 2 ( 1 ) i + 1 τ i γ i + ε i i = 1 n 1 R i γ i 2 ,
m 1 * * * = i = 1 n 1 R i c i 2 d i ( 1 ) i c i ( τ i η i ) i = 1 n 1 R i c i 2 .
Summarizing the above discuss, we can conclude the following theorem.
Theorem 10.
The optimal minimizers m 1 c , m 1 m , and m 1 p of the programs (44), (45), and (46), respectively, are given by
m 1 c = m 1 * , f o r δ * m 1 * δ * , δ * , f o r m 1 * > δ * , δ * , f o r m 1 * < δ * ,
m 1 m = m 1 * * , f o r ε * m 1 * * ε * , ε * , f o r m 1 * * > ε * , ε * , f o r m 1 * * < ε * ,
m 1 p = m 1 * * * , f o r d * m 1 * * * d * , d * , f o r m 1 * * * > d * , d * , f o r m 1 * * * < d * ,
where m 1 * , m 1 * * , and m 1 * * * are given in (47), (48), and (49), respectively.

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 λ i and μ i and the corresponding optimal minimizers m 1 c 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.
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 λ i and μ i and the corresponding optimal minimizers m 1 m 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.
Example 3.
In this example, we consider the positive data set given in Table 5. For different values of θ, we show the choices of λ i and μ i and the corresponding optimal minimizers m 1 p 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.
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 λ i and μ i are shown in Table 7, Table 8 and Table 9. Furthermore, the corresponding numerical results of the parameters are δ * = 1.1815 , δ * = 0.9815 , m 1 * * = 0.6681 , and m 1 m = 0.9815 for Table 7; δ * = 5 , δ * = 4 , m 1 * * = 4.4314 , and m 1 m = 4.4314 for Table 8; and δ * = 1.8259 , δ * = 1.5117 , m 1 * * = 1.6512 , and m 1 m = 1.6512 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].
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 λ i and μ i are shown in Table 10, Table 11 and Table 12. Furthermore, the corresponding numerical results of the parameters are ε * = 2.7643 e 04 , ε * = 0.0011 , m 1 * * = 0.1339 , and m 1 m = 2.7643 e 04 for Table 10; ε * = 0 , ε * = 0 , m 1 * * = 0.1113 , and m 1 m = 0 for Table 11; and ε * = 0.0011 , ε * = 0.0012 , m 1 * * = 0.0026 , and m 1 m = 0.0011 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].
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 λ i and μ i are shown in Table 13, Table 14 and Table 15. Furthermore, the corresponding numerical results of the parameters are d * = 9.2830 , d * = 8.4702 , m 1 * * * = 8.4257 , and m 1 p = 8.4702 for Table 13; d * = 320.0104 , d * = 209.4799 , m 1 * * * = 29.9358 , and m 1 p = 29.9358 for Table 14; and d * = 8.0561 , d * = 4.4404 , m 1 * * * = 7.8820 , m 1 p = 7.8820 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].

5. Conclusions

We have proposed a kind of C 1 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

  1. Kvasov, B.I. Methods of Shape-Preserving Spline Approximation; World Scientific: Singapore, 2000. [Google Scholar]
  2. 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]
  3. 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]
  4. Sarfraz, M.; Hussain, M.Z.; Nisar, A. Positive data modeling using spline function. Appl. Math. Comput. 2010, 216, 2036–2049. [Google Scholar] [CrossRef]
  5. 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]
  6. Gregory, J.A.; Delbourgo, R. Piecewise rational quadratic interpolation to monotonic data. IMA J. Numer. Anal. 1982, 2, 123–130. [Google Scholar] [CrossRef]
  7. Sarfraz, M. A rational cubic spline for the visualization of monotonic data. Comput. Graph. 2000, 24, 509–516. [Google Scholar] [CrossRef]
  8. Sarfraz, M. A rational cubic spline for the visualization of monotonic data: An alternate approach. Comput. Graph. 2003, 27, 107–121. [Google Scholar] [CrossRef]
  9. Hussain, M.Z.; Hussain, M. Visualization of data preserving monotonicity. Appl. Math. Comput. 2007, 190, 1353–1364. [Google Scholar] [CrossRef]
  10. Hussain, M.Z.; Sarfraz, M. Monotone piecewise rational cubic interpolation. Int. J. Comput. Math. 2009, 86, 423–430. [Google Scholar] [CrossRef]
  11. 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]
  12. 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]
  13. Sarfraz, M.; Hussain, M.Z. Shape-preserving curve interpolation. Int. J. Comput. Math. 2012, 89, 35–53. [Google Scholar] [CrossRef]
  14. 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]
  15. 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]
  16. Kvasov, B.I. Monotone and convex interpolation by weighted cubic splines. Comput. Math. Math. Phys. 2003, 53, 1428–1439. [Google Scholar] [CrossRef]
  17. Kvasov, B.I. Monotone and convex interpolation by weighted quadratic splines. Adv. Comput. Math. 2014, 40, 91–116. [Google Scholar] [CrossRef]
  18. Kvasov, B.I. Discrete weighted cubic splines. Numer. Algor. 2014, 67, 863–888. [Google Scholar] [CrossRef]
  19. Han, X.L. Convexity-preserving piecewise rational quartic interpolation. SIAM J. Numer. Anal. 2008, 46, 920–929. [Google Scholar] [CrossRef]
  20. Han, X.L. Shape-preserving piecewise rational interpolant with quartic numeratror and quadratic denominator. Appl. Math. Comput. 2015, 251, 258–274. [Google Scholar]
  21. 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]
  22. Zhu, Y.P. C2 Rational quartic/cubic spline interpolant with shape constraints. Res. Math. 2018, 73, 73–127. [Google Scholar] [CrossRef]
  23. Zhu, Y.P. C2 positivity-preserving rational interpolation splines in one and two dimensions. Appl. Math. Comput. 2018, 316, 186–204. [Google Scholar] [CrossRef]
  24. Schmidt, J.W.; Hess, W. Positive Interpolation with Rational Quadratic Splines. Computing 1987, 38, 261–267. [Google Scholar] [CrossRef]
  25. 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]
Figure 1. Optimal convexity-preserving interpolation curves for the convex data set given in Table 1 with the different cases of θ , M, λ i , and μ i given in Table 2. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4. (e) Case 5. (f) Case 6. (g) Case 7. (h) Case 8. (i) Case 9.
Figure 1. Optimal convexity-preserving interpolation curves for the convex data set given in Table 1 with the different cases of θ , M, λ i , and μ i given in Table 2. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4. (e) Case 5. (f) Case 6. (g) Case 7. (h) Case 8. (i) Case 9.
Symmetry 17 00815 g001
Figure 2. Optimal monotonicity-preserving interpolation curves for the monotone increasing data set given in Table 3 with the different cases of θ , λ i , and μ i given in Table 4. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4. (e) Case 5. (f) Case 6. (g) Case 7. (h) Case 8. (i) Case 9.
Figure 2. Optimal monotonicity-preserving interpolation curves for the monotone increasing data set given in Table 3 with the different cases of θ , λ i , and μ i given in Table 4. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4. (e) Case 5. (f) Case 6. (g) Case 7. (h) Case 8. (i) Case 9.
Symmetry 17 00815 g002
Figure 3. Optimal positivity-preserving interpolation curves for the monotone increasing data set given in Table 5 with the different cases of θ , λ i , and μ i given in Table 6. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4. (e) Case 5. (f) Case 6. (g) Case 7. (h) Case 8. (i) Case 9.
Figure 3. Optimal positivity-preserving interpolation curves for the monotone increasing data set given in Table 5 with the different cases of θ , λ i , and μ i given in Table 6. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4. (e) Case 5. (f) Case 6. (g) Case 7. (h) Case 8. (i) Case 9.
Symmetry 17 00815 g003
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].
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].
Symmetry 17 00815 g004
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].
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].
Symmetry 17 00815 g005
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].
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].
Symmetry 17 00815 g006
Table 1. The convex data set given in [25].
Table 1. The convex data set given in [25].
i1234567
x i −7−6−50567
y i M10 θ 01M
Table 2. The optimal minimizers m 1 c given by (50) for the convex data set given in Table 1.
Table 2. The optimal minimizers m 1 c given by (50) for the convex data set given in Table 1.
Cases θ M λ i μ i δ * δ * m 1 * m 1 c
( 1 ) 0.50 2.80 1.00 1.00 1.8000 1.8000 1.8000 1.8000
( 2 ) 0.50 3.00 1.00 1.00 2.3000 2.1000 2.2000 2.2000
( 3 ) 0.50 3.50 1.00 1.00 3.3000 3.1000 3.2000 3.2000
( 4 ) 0.70 2.80 1.00 1.00 1.9600 1.8000 1.8800 1.8800
( 5 ) 0.80 2.80 1.00 1.00 2.0400 1.8000 1.9200 1.9200
( 6 ) 0.90 2.80 1.00 1.00 2.0400 1.8000 1.9600 1.9600
( 7 ) 0.50 2.80 1.10 1.00 1.8279 1.8000 1.7908 1.8000
( 8 ) 0.80 2.80 1.10 1.00 2.0895 1.8000 1.9237 1.9237
( 9 ) 0.80 2.80 1.00 1.10 1.9965 1.8331 1.9266 1.9266
Table 3. Monotone increasing data set.
Table 3. Monotone increasing data set.
i1234567
x i 00.33330.66671.00001.33331.66672.0000
y i θ 0.03700.2963 1.0000 2.37044.62968.0000
Table 4. Optimal minimizers m 1 m given by (51) for the monotone increasing data set given in Table 3.
Table 4. Optimal minimizers m 1 m given by (51) for the monotone increasing data set given in Table 3.
Cases θ λ i μ i ε * ε * m 1 * * m 1 c
( 1 ) 0.03 1.00 1.00 0.0210 0.0630 0.1021 0.0210
( 2 ) 0.03 4.00 1.00 0.0210 0.1260 0.0027 0.0210
( 3 ) 0.02 1.00 1.00 0.0510 0.1530 0.0369 0.0510
( 4 ) 0.02 1.00 0.50 0.0510 0.2040 0.0199 0.0510
( 5 ) 0.00 1.00 1.00 0.1110 0.3330 0.0922 0.1110
( 6 ) 0.02 1.00 0.50 0.1710 0.6840 0.2686 0.2686
( 7 ) 0.02 1.10 1.00 0.1710 0.5130 0.2197 0.2197
( 8 ) 0.03 4.00 1.00 0.2010 1.2060 0.3639 0.3639
( 9 ) 0.03 1.00 1.00 0.2010 0.6030 0.2831 0.2831
Table 5. Positive data set.
Table 5. Positive data set.
i123456
x i 123456
y i 0.11 θ θ 10.1
Table 6. Optimal minimizers m 1 p given by (52) for the positive data set given in Table 5.
Table 6. Optimal minimizers m 1 p given by (52) for the positive data set given in Table 5.
Cases θ λ i μ i d * d * m 1 * * * m 1 p
( 1 ) 1 × 10 1 1.00 1.00 3.2000 4.4325 2.8749 3.2000
( 2 ) 1 × 10 2 1.00 1.00 3.7400 4.0000 3.0110 3.7400
( 3 ) 1 × 10 3 1.00 1.00 3.7940 3.8632 3.0248 3.7940
( 4 ) 1 × 10 4 1.00 1.00 3.7994 3.8200 3.0261 3.7994
( 5 ) 1 × 10 5 1.00 1.00 3.7999 3.8063 3.0263 3.7999
( 6 ) 1 × 10 6 1.00 1.00 3.8000 3.8020 3.0263 3.8000
( 7 ) 1 × 10 7 1.00 1.00 3.8000 3.8006 3.0263 3.8000
( 8 ) 1 × 10 7 1.10 1.00 4.2000 4.2007 3.2047 4.2000
( 9 ) 1 × 10 7 1.00 1.10 3.4537 3.4542 2.8357 3.4537
Table 7. Convex data set.
Table 7. Convex data set.
i123456
x i −8−72.271012
y i 4.543.5544.55
λ i 221.20.50.50.5
μ i 111111
Table 8. Convex data set given in [12].
Table 8. Convex data set given in [12].
i1234567
x i −9−8−40489
y i 753.53.253.557
λ i 22210.50.50.5
μ i 1111111
Table 9. Convex data set given in [13].
Table 9. Convex data set given in [13].
i1234567
x i −7−6−50567
y i 20.70−1.200.72
λ i 1111111
μ i 1111111
Table 10. Monotone data set.
Table 10. Monotone data set.
i123456789
x i 7.998.098.198.7056789
y i 02.76429 × 10 5 4.37498 × 10 2 0.1691830.4694280.9437400.9986360.9999160.999994
λ i 2252116.516.52020
μ i 111111111
Table 11. Monotone data set given in [6].
Table 11. Monotone data set given in [6].
i1234567891011
x i 023568911121415
y i 10101010101010.515566085
λ i 111111152511
μ i 111111101111
Table 12. The monotone data set given in [14].
Table 12. The monotone data set given in [14].
i1234567891011
x i 1234567891011
y i 0.00010.00060.00270.01230.05510.24020.74270.98040.99900.99991.0000
λ i 0.50.50.50.50.50.834444
μ i 11111111111
Table 13. Positive data set.
Table 13. Positive data set.
i1234567
x i 02410283032
y i 20.88.84.20.53.96.29.6
λ i 1111111
μ i 1111.71.211
Table 14. Positive data set given in [3].
Table 14. Positive data set given in [3].
i1234567
x i 1245789
y i 24.61622.461641.0274.1027757.43785.74380.5744
λ i 1111111
μ i 0.10.10.10.10.10.10.1
Table 15. Positive data set given in [5].
Table 15. Positive data set given in [5].
i123456789
x i 00.250.511.522.534
y i 20.60.10.1310.51.10.250.2
λ i 11110111101
μ i 11110.50.710.40.4
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.

Share and Cite

MDPI and ACS Style

Liu, Z.; Liu, S. C1 Shape-Preserving Rational Quadratic/Linear Interpolation Splines with Necessary and Sufficient Conditions. Symmetry 2025, 17, 815. https://doi.org/10.3390/sym17060815

AMA Style

Liu Z, Liu S. C1 Shape-Preserving Rational Quadratic/Linear Interpolation Splines with Necessary and Sufficient Conditions. Symmetry. 2025; 17(6):815. https://doi.org/10.3390/sym17060815

Chicago/Turabian Style

Liu, Zhuo, and Shengjun Liu. 2025. "C1 Shape-Preserving Rational Quadratic/Linear Interpolation Splines with Necessary and Sufficient Conditions" Symmetry 17, no. 6: 815. https://doi.org/10.3390/sym17060815

APA Style

Liu, Z., & Liu, S. (2025). C1 Shape-Preserving Rational Quadratic/Linear Interpolation Splines with Necessary and Sufficient Conditions. Symmetry, 17(6), 815. https://doi.org/10.3390/sym17060815

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop