619
Views
4
CrossRef citations to date
0
Altmetric
Research Article

On a mixed interpolation with integral conditions at arbitrary nodes

& | (Reviewing Editor)
Article: 1151613 | Received 19 Oct 2015, Accepted 02 Feb 2016, Published online: 26 Feb 2016

Abstract

In this paper, we present a symbolic algorithm for a mixed interpolation of the form acoskx+bsinkx+i=0s-2cixi,s2,

where k>0 is a given parameter and the coefficients ab, and c0,,cs-2 are determined by a given set of independent integral conditions at arbitrary nodes. Implementation of the proposed algorithm in Maple is described and sample computations are provided. This algorithm will help to implement the manual calculations in commercial packages such as Mathematica, Matlab, Singular, Scilab, etc.

AMS Subject Classifications:

Public Interest Statement

We often come across a number of data points (obtained by sampling or experimentation) which represent the values of a function for a limited number of values of the independent variable, and the need to estimate the value of the function at other point of the independent variable. This may be achieved by interpolation. The interpolation problem naturally arises in many applications of science and engineering, for example, the orbit problems, solving differential and integral equations, quantum mechanical problems, etc. where we consider the mixed interpolation instead of the polynomial interpolation.

1. Introduction

The interpolation problem naturally arises in many applications, for example, the orbit problems, quantum mechanical problems, etc. The general form of a mixed interpolation problem is as follows (Coleman, Citation1998; Lorentz, Citation2000; Sauer, Citation1997): suppose we have a normed linear space S, a finite linearly independent set ΘS of bounded functionals and an associated values Σ={αθ:θΘ}R. Then the mixed interpolation problem is to find an approximation f~s(x)S of the form(1) f~s(x)=acoskx+bsinkx+i=0s-2cixi,s2,(1)

such that(2) Θ(f~s)=Σ,i.e.θf~s=αθ,θΘ.(2)

Here s is called the order of the interpolating function f~s(x). One can observe that, the interpolation problem given in Equations (1), (2) may have many solutions if there is no restriction on the dimension of the space. But our interest is to find the single interpolating function that must match with a finite number of conditions. Hence for a unique solution of the problem, one must have finite dimensional subspace Θ of S having dimension equal to the number of functionals.

The mixed interpolation problem, its formulation, and error estimation have been studied by several engineers and scientists with general nodes at uniformly spaced and arbitrary points on a chosen interval (see e.g. de Meyer, Vanthournout, & Vanden Berghe, Citation1990; de Meyer, Vanthournout, Vanden Berghe, & Vanderbauwhede, Citation1990; Chakrabarti & Hamsapriye, Citation1996; Coleman, Citation1998). In literature survey, we observe that there is no mixed interpolation algorithm available with integral conditions at arbitrary points on a chosen interval. Therefore, in this paper, we present a symbolic algorithm for the mixed interpolation with integral conditions using the algorithm presented by the authors in Thota and Kumar (Citation2015). Indeed, we discuss a symbolic algorithm for mixed interpolation with a linearly independent set of the integral functionals/conditions at arbitrary nodes on a chosen interval. This is the first symbolic algorithm which deals with integral conditions. The rest of paper is organized as follows: Section 1.1 gives some definitions and basic concepts of the mixed interpolation, which are required to justify our proposed algorithm. Symbolic algorithm for the mixed interpolation with a finite linearly independent set of integral conditions is discussed in Section 2, the proposed algorithm for mixed interpolation is presented in Section 2.1 and some numerical examples are given in Section 2.2. Maple implementation of the proposed algorithm is presented in Section 3 with sample computations.

1.1. Preliminaries

In this section, we present some definitions and basic concepts of the mixed interpolation, which are required to justify our proposed algorithm.

Definition 1

A mixed interpolation problem is called regular for subspace M of linear space S with respect to Θ if the interpolation problem has a unique solution for each choice of values of ΣR such that Θ(f~s)=Σ. Otherwise, the interpolation problem is called singular.

Definition 2

We call the triplet (M,Θ,Σ) an interpolation problem, where M={coskx,sinkx,1,x,,xs-2}M a basis for a finite dimensional space S, and ΘS a finite linearly independent set of functionals with associated values ΣR.

If Σ=Θψ, for ψS, then the interpolation problem (M,Θ,Σ) can be stated in a different way equivalently: Let Ω=span{θ:θΘ}. Then ΩS and the interpolation problem is to find a f~s(x) such that Ωf~s=Ωψ for given ψS. There is a connection between the regularity in terms of algebraic geometry and linear algebra as given in the following proposition.

Proposition 1

Let M={m0,,mt} be a basis for M, a finite dimensional subspace of S, and Θ={θ0,,θs} be a finite linearly independent subset of S. Then the following statements are equivalent:

(i)

The mixed interpolation problem is regular for M with respected to Θ.

(ii)

t=s, and the matrix, so-called evaluation matrix, (3) ΘM=θ0m0θ0mtθsm0θsmtR(s+1)×(s+1)(3) is regular. Denote the evaluation matrix ΘM by E for simplicity.

(iii)

S=MΘ.

If we denote the integral condition by a symbol/operator Ax defined by Ax=pxdx, i.e. Axf(x)=pxf(x)dx, for a fixed pR, then the set of integral conditions is(4) Θ={Ax0,,Axs},(4)

where x0,,xs are arbitrary nodes. Now, the symbolic representation of the mixed interpolation problem (1), (2) is to find a function of the form (1) such that(5) Axif~s=αxi,whereAxiΘ.(5)

2. Symbolic algorithm for mixed interpolation

Consider the mixed interpolation problem defined in Section 1 for (M,Θ,Σ), where MMS, and Θ={θ0,,θs} a finite set of integral conditions of the form (4). From Proposition (3), the mixed interpolation problem is regular with respect to linearly independent set Θ if and only if there exists a finite linearly independent set M of S such that the evaluation matrix E in (3) is regular.

2.1. Proposed symbolic algorithm

The mixed interpolation problem (M,Θ,Σ), i.e. f~s(x)=acoskx+bsinkx+i=0s-2cixi such that it satisfy Θf~s=Σ, can be expressed as a linear system(6) Eu=σ,(6)

where u=(a,b,c0,,cs-2)T, σ=(αθ0,αθs)T and E is the evaluation matrix of Θ and M given by(7) E=sinkx0k-coskx0kx0x022x0s-1s-1sinkx1k-coskx1kx1x122x1s-1s-1sinkxsk-coskxskxsxs22xss-1s-1-sinkpk-coskpkpp22ps-1s-1sinkpk-coskpkpp22ps-1s-1sinkpk-coskpkpp22ps-1s-1=sinkx0k-sinkpkcoskpk-coskx0kx0-px022-p22x0s-1s-1-ps-1s-1sinkx1k-sinkpkcoskpk-coskx1kx1-px122-p22x1s-1s-1-ps-1s-1sinkxsk-sinkpkcoskpk-coskxskxs-pxs22-p22xss-1s-1-ps-1s-1.(7)

Remark

If p=0, then E in Equation (7) is given byE=sinkx0k1-coskx0kx0x022x0s-1s-1sinkx1k1-coskx1kx1x122x1s-1s-1sinkxsk1-coskxskxsxs22xss-1s-1

Uniqueness of the solution is possible if and only if the evaluation matrix (7) is regular (non-singular). The simple form of the determinant of E is given by(8) detE=i=0sxik2(s-1)!k<j(xj-xk)i=0s-1coskxixij=0,jis-1(xi-xj)i=0s-1sinkxixij=0,jis-1(xi-xj)i=0scoskxixij=0,jis(xi-xj)i=0ssinkxixij=0,jis(xi-xj).(8)

This simple form is obtained by performing the following steps:

I.

Dividing i-th row by xi in the determinant of E in Equation (7), we get (9) detE=i=0sxik2(s-1)!coskx0x0sinkx0x01x0x0s-2coskx1x1sinkx1x11x1x1s-2coskxsxssinkxsxs1xsxss-2.(9)

II.

Subtract first row from the other (i+1)-th row, for i=1,2,s, and divide (i+1)-th row by xi-x0 for i=1,2,s, we get detE=i=0sxik2(s-1)!k=1s(xk-x0)coskx0x0sinkx0x01x0x0s-2coskx1x1-coskx0x0x1-x0sinkx1x1-sinkx0x0x1-x001x1s-3coskxsxs-coskx0x0xs-x0sinkxsxs-sinkx0x0xs-x001xss-3. This reduces to a determinant of a matrix of order s similar to (9).

III.

Repeating the step II finite number of times, we arrive at the simple form of detE as in (8).

From the procedure given for simplification of the determinant of E, we can construct the interpolating function f~s(x) for (M,Θ,Σ) in terms of evaluation matrix. The following theorem presents an algorithm to construct f~s(x). Denote D=det(E) for simplicity.

Theorem 1

Let Θ be a finite set of integral conditions of the form Θ={Ax0,,Axs} with associated values Σ and M={coskx,sinkx,1,,xs-2}S be a finite linearly independent set such that the evaluation matrix E is regular. Then there exists unique interpolating function f~s(x) of the form (1), such that Θf~s=Σ as(10) f~s(x)=k=1s+1D-1Dk1αθk-1coskx+k=1s+1D-1Dk2αθk-1sinkx+l=0s-2k=1s+1D-1Dkl+3αθk-1xl,(10)

where Dij is the determinant of Eij obtained from E by replacing j-th column by the i-th unit vector.

Proof

It is given that the evaluation matrix associated with Θ and M is regular, therefore there exists unique mixed interpolation. Suppose Dk1,Dk2 and Dkl+3 denote the determinants of the resultant matrix E after replacing 1st, 2nd, and lth columns by k-unit vector, respectively, for l=0,1,,s-2, then the coefficients a,b,c0,,cs-2 are determined uniquely using the Cramer’s rule, as follows(11) a=k=1s+1D-1Dk1αθk-1,b=k=1s+1D-1Dk2αθk-1,cl=k=1s+1D-1Dkl+3αθk-1,l=0,1,,s-2.(11)

Now, the required interpolating function f~s(x) is the linear combination of elements of M with the coefficients a,b,c0,,cs-2. Hence, we have(12) f~s(x)=k=1s+1D-1Dk1αθk-1coskx+k=1s+1D-1Dk2αθk-1sinkx+l=0s-2k=1s+1D-1Dkl+3αθk-1xl,(12)

as stated.

In general, it is very difficult to solve explicitly the linear system (6) for the coefficients a,b,c0,,cs-2 in terms of Σ at the interpolation points. However, we can express the coefficients of f~s(x) in terms of evaluation matrix as given Theorem 4.

2.2. Examples

Now to verify the proposed algorithm in Theorem 4, we present some examples. We use Maple, the computer algebra software, for numerical computations in the following examples.

Example 2.1

Consider the integral conditions 00.1f(x)dx=k1, 00.3f(x)dx=k2, 00.5f(x)dx=k3, 00.8f(x)dx=k4 and 01.0f(x)dx=k5, where ki is constant, for i=1,2,3,4,5. Now we construct f~4(x)=acoskx+bsinkx+c0+c1x+c2x2 such that f~4(x) satisfies the given conditions. For simplicity, take k=1. Here, Θ={A0.1,A0.3,A0.5,A0.8,A1.0}, M={cosx,sinx,1,x,x2}, and Σ={k1,k2,k3,k4,k5}. Following Theorem 4, we have the evaluation matrixE=0.0998330.0049960.10.0050.0003330.2955200.0446640.30.0450.0090000.4794260.1224170.50.1250.0416670.7173560.3032930.80.3200.1706670.8414710.4596981.00.5000.333333,D=detE=7.19735×10-11;D-1=1.3894×1010,D11=det10.0049960.10.0050.00033300.0446640.30.0450.00900000.1224170.50.1250.04166700.3032930.80.3200.17066700.4596981.00.5000.333333=0.15028×10-5D21=det0.09983300.10.0050.0003330.29552010.30.0450.0090000.47942600.50.1250.0416670.71735600.80.3200.1706670.84147101.00.5000.333333=-0.18396×10-5D31=det0.0998330.00499600.0050.0003330.2955200.04466400.0450.0090000.4794260.12241710.1250.0416670.7173560.30329300.3200.1706670.8414710.45969800.5000.333333=0.13131×10-5D41=det0.0998330.0049960.100.0003330.2955200.0446640.300.0090000.4794260.1224170.500.0416670.7173560.3032930.810.1706670.8414710.4596981.000.333333=-4.82523×10-7D51=det0.0998330.0049960.10.00500.2955200.0446640.30.04500.4794260.1224170.50.12500.7173560.3032930.80.32000.8414710.4596981.00.5001=1.31086×10-7,

hence,k=15Dk1αθk-1=0.15028×10-5k1-0.18396×10-5k2+0.13131×10-5k3-4.82523×10-7k4+1.31086×10-7k5,

similarly,k=15Dk2αθk-1=8.60525×10-7k1-9.57686×10-7k2+6.17919×10-7k3-1.92581×10-7k4+4.63585×10-8k5,k=15Dk3αθk-1=-0.15011×10-5k1+0.18389×10-5k2-0.13128×10-5k3+4.82459×10-7k4-1.31072×10-7k5,k=15Dk4αθk-1=-8.86346×10-7k1+9.77076×10-7k2-6.26828×10-7k3+1.94676×10-7k4-4.68155×10-8k5k=15Dk5αθk-1=8.52374×10-7k1-0.10177×10-5k2+7.11690×10-7k3-2.55717×10-7k4+6.88081×10-8k5,

and the coefficients are given bya=20904.99k1-25589.48k2+18265.09k3-6712.06k4+1823.45k5b=11970.22k1-13321.75k2+8595.47k3-2678.87k4644.86k5,c0=-20881.23k1+25580.00k2-18261.10k3+6711.16k4-1823.26k5,c1=-12329.34k1+13591.47k2-8719.40k3+2708.02k4-651.22k5,c2=11856.84k1-14156.85k2+9899.85k3-3557.12k4+957.14k5.

Now the solution of the mixed interpolation (M,Θ,Σ) isf~4(x)=(20904.99k1-25589.48k2+18265.09k3-6712.06k4+1823.45k5)cosx+(11970.22k1-13321.75k2+8595.47k3-2678.87k4644.86k5)sinx-20881.23k1+25580.00k2-18261.10k3+6711.16k4-1823.26k5+(-12329.34k1+13591.47k2-8719.40k3+2708.02k4-651.22k5)x+(11856.84k1-14156.85k2+9899.85k3-3557.12k4+957.14k5)x2

In particular, if we choose ki=i, for i=1,2,3,4,5, thena=6790.30,b=3621.97,c0=-6776.17,c1=-3728.64,c2=3799.92

and the solution of the interpolation (M,Θ,Σ) isf~4(x)=6790.30cosx+3621.97sinx-6776.17-3728.64x+3799.92x2.

One can easily check in both the cases that Θ(f~4)=Σ.

Example 2.2

Suppose we have integral conditions 00.1f(x)dx=1, 00.2f(x)dx=3, 00.3f(x)dx=4, 00.4f(x)dx=5, 00.5f(x)dx=6, 00.6f(x)dx=7, 00.7f(x)dx=9, 00.8f(x)dx=13, 00.9f(x)dx=15 and 01.0f(x)dx=16. Now we construct f~9(x)=acoskx+bsinkx+c0+c1x+c2x2++c7x7 such that f~9(x) satisfies the given conditions. For simplicity, take k=0.5. In symbolic notations, we have Θ={A0.1,A0.2,A0.3,A0.4,A0.5,A0.6,A0.7,A0.8,A0.9,A1.0}, M={cos(0.5x),sin(0.5x),1,x,,x7} and Σ={1,3,4,5,6,7,9,13,15,16}. From Theorem 4, the coefficients are computed similar to Example 2.1 as followsa=-1.496313140×109,b=3.349193220×1010,c0=1.496313072×109,c1=-1.674596380×1010,c2=-1.87067734×108,c3=6.978924923×108,c4=3.516587822×106,c5=-8.177983600×106,c6=-4.298813138×105,c7=1.677402086×105.

Now, the interpolating function f~9(x) is given byf~9(x)=-1.496313140×109cos(0.5x)+3.349193220×1010sin(0.5x)+1.496313072×109-1.674596380×1010x-1.87067734×108x2+6.978924923×108x3+3.516587822×106x4-8.177983600×106x5-4.298813138×105x6+1.677402086×105x7.

If we choose k=2, thenf~9(x)=-3.85899899×108cos(2x)+2.91356330×108sin(2x)+3.858998408×108-5.82709230×108x-7.71845620×108x2+3.88781409×108x3+2.560552184×108x4-7.4670907×107x5-3.9114135×107x6+1.208298237×107x7.

One can easily verify in both cases that Θ(f~9)=Σ.

The following section presents the implementation of the proposed algorithm in Maple.

3. Maple implementation

Maple implementation of the proposed algorithm is presented by creating different data types using the Maple package IntDiffOp implemented by Korporal, Regensburger, and Rosenkranz (Citation2010). For displaying the operators, we have A for integral operator and E for evaluation operator as defined in IntDiffOp package, i.e. Ax=E[x].A.

The data type IntegralCondition(np) is created to represent the integral condition, where np is the node point.

with(IntDiffOp):

IntegralCondition := proc(np)

return BOUNDOP(EVOP(np,EVDIFFOP(0),EVINTOP(EVINTTERM(1,1))));

end proc:

The following producer EvaluationMatrix(IC) gives the evaluation matrix of the given M and Θ, where IC is the column matrix of the integral conditions.

EvaluationMatrix := proc (IC::Matrix)

local r,c,elts,fs;

r,c:=LinearAlgebra[Dimension](IC);

fs:=Matrix(1,r,[cos(k*x),sin(k*x),seq(x(i-1),i=1..r-2)]);

elts:=seq(seq(ApplyOperator(IC[t,1],fs[1,j]),j=1..r), t=1..r);

return Matrix(r,r,[elts]);

end proc:

The procedure MixedInterpolation(IC,CM) is created to find the mixed interpolating function for (M,Θ,Σ), where CM is column matrix of the associated values of Σ.

MixedInterpolation := proc (IC::Matrix, CM::Matrix)

local r,c,fs,evm,invevm,approx;

r,c:=LinearAlgebra[Dimension](IC);

fs: Matrix(1,r,[cos(k*x),sin(k*x),seq(x(i-1),i=1..r-2)]);

evm:=EvaluationMat(IC);

invevm:=1/evm; approx:=fs.invevm.CM;

return simplify(approx[1,1]);

end proc:

Example 3.1

Recall Example 2.1 for sample computations using Maple implementation.

> with(IntDiffOp):

> C1:=IntegralCondition(0.1); c1:=1;

C2:=IntegralCondition(0.3); c2:=2;

C3:=IntegralCondition(0.5); c3:=3;

C4:=IntegralCondition(0.8); c4:=4;

C5:=IntegralCondition(1.0); c5:=5; C1:=E[.1].Ac1:=1C2:=E[.3].Ac2:=2C3:=E[.5].Ac3:=3C4:=E[.8].Ac4:=4C5:=E[1.0].Ac4:=5> k:=1; 1> C:=Matrix([[C1],[C2],[C3],[C4],[C5]]); E[.1].AE[.3].AE[.5].AE[.8].AE[1.0].ACM:=Matrix([[c1],[c2],[c3],[c4],[c5]]); 12345EvaluationMat(C); 0.099833416650.0049958347220.10.0050.00033330.29552020670.044663510870.30.0450.0090000.47942553860.12241743810.50.1250.0416670.71735609090.30329329070.80.3200.1706670.84147098480.45969769411.00.5000.333333> MixedInterpolation(C,CM); -6776.165565-3728.640530x+6790.295165cos(x)+3621.967910sin(x)+3799.917488x2

Acknowledgements

Authors thank the referees for useful suggestions in improving the presentation of the paper.

Additional information

Funding

The authors received no direct funding for this research.

Notes on contributors

Srinivasarao Thota

Srinivasarao Thota completed his MSc in Mathematics from Indian Institute of Technology Madras, India. Now he is pursuing his PhD in Mathematics from Motilal Nehru National institute of Technology Allahabad, India. Srinivasarao Thota’s area of research interest is Computer Algebra, precisely symbolic methods for ordinary differential equations. He attended and presented research papers in several national and international conferences.

References

  • Chakrabarti, A. (1996). Hamsapriye: Derivation of a general mixed interpolation formula. Journal of Computational and Applied Mathematics, 70, 161–172.
  • Coleman, J. P. (1998). Mixed interpolation methods with arbitrary nodes. Journal of Computational and Applied Mathematics, 92, 69–83.
  • de Meyer, H., Vanthournout, J., & Vanden, G. (1990). Berghe: On a new type of mixed interpolation. Journal of Computational and Applied Mathematics, 30, 55–69.
  • de Meyer, H., Vanthournout, J., Vanden Berghe, G., & Vanderbauwhede, A. (1990). On the error estimation for a mixed type of interpolation. Journal of Computational and Applied Mathematics, 32, 407–415.
  • Korporal, A., Regensburger, G., & Rosenkranz, M. (2010). A Maple package for integro-differential operators and boundary problems. ACM Communications in Computer Algebra, 44, 120–122.
  • Lorentz, R. A. (2000). Multivariate Hermite interpolation by algebraic polynomials: A survey. Journal of Computational and Applied Mathematics, 122, 167–201.
  • Sauer, T. (1997). Polynomial interpolation, ideals and approximation order of refinable functions. Proceedings American Mathematical Society, 130, 3335–3347.
  • Thota, S., & Kumar, S. D. (2015). Symbolic method for polynomial interpolation with stieltjes conditions. Proceedings of International Conference on Frontiers in Mathematics, 1, 225–228.