Abstract: This paper contains a detailed comparison between the Lagrange and Hermite polynomial interpolation when approximating a function. Initially the theoretical part about each interpolation procedure is exposed, followed by the exposure of the conditions of the comparative analysis between approximations, explaining the tests and calculating the error to be made.
Keywords:InterpolationInterpolation,approximationapproximation,polynomialpolynomial,functionfunction,LagrangeLagrange,HermiteHermite.
Resumen: El presente artículo contiene una detallada comparación entre la interpolación polinómica de Lagrange y de Hermite al momento de aproximar una función. Inicialmente se exponen la parte teórica acerca de cada procedimiento de interpolación, se exponen las condiciones de análisis comparativo entre aproximaciones, explicando las pruebas y el cálculo del error a realizar.
Palabras clave: Interpolación, aproximación, polinomio, función, Lagrange, Hermite..
Bioingeniería
Comparison between some techniques of interpolators: An application in engineering
Comparación entre algunas técnicas de interpoladores una aplicación en ingeniería
Received: 17 December 2017
Accepted: 15 March 2019
N the mathematical field of numerical analysis, polynomial interpolation is a method used to know, in an approximate way, the values that a certain function takes, of which only its image is known in a finite number of abscissas. Often, the expression of the function will not even be known and only the values it takes for these abscissas will be available. [1]
In numerous phenomena of nature we observe a certain regularity in the way of producing, this allows us to draw conclusions from the progress of a phenomenon in situations that we have not measured directly. [2]
Interpolation consists of finding a data within a range in which we know the values at the extremes. In engineering and some sciences, it is common to have a certain number of points obtained by sampling or from an experiment and to try to build a function that adjusts them.
Another problem closely linked with that of interpolation is the approximation of a function complicated by a simpler one. By having a function whose calculation is costly, you can start from a certain number of its values and interpolate these data by constructing a simpler function (interpolating polynomial). In general, of course, the same values are not obtained by evaluating the function obtained than if the original function is evaluated, although depending on the characteristics of the problem and the method of interpolation used, the gain in efficiency can compensate for the error committed. [2]
The general problem of interpolation is presented to us when we are given a function of which we only know a series of points of it and we are asked to find the value of a point of this function.
It is desired, therefore, to find a function whose graph passes through these points and which serves to estimate the desired values.
The treatment for both problems is similar; the "interpolator" polynomials will be used. One of the best-known applications of these methods is for laboratory data, disease reports or the probability that a natural and non-natural phenomenon will occur. [3]
Returning to the previous ideas, the objective is to find a polynomial that fulfills the aforementioned and that allows to find approximations of other unknown values.e.
Suppose that f (x) admits continuous derivatives of all orders in a range (a, b) in which the point x0 is. Suppose that the Taylor polynomial sequence converges to f (x). [4]
The great difficulty of the construction of the previous definition is the calculation of the higher derivatives since in many occasions these are difficult to find. [5]
Another way many more practical is to suppose n + 1 point ( , ) where the components are distributed over the domain of the function and thus avoid the calculation of the higher derivatives, as it is intended to build a function that passes through each of them. these points what the method guarantees whatever is used should be the calculation of the errors, that is, this should be minimized.
The Lagrange polynomial interpolation is the way to present the polynomial that interpolates a given set of points under the following conditions: [4][6][7]
Let the set of points (x_i, y_i) with i = 1,2,3, ..., n, and assuming all the different x_i, the Lagrange interpolation polynomial is defined as the linear combination [1]:
(1)Lagrange Interpolator Code

Hermite polynomial interpolation generates a polynomial that approximates the function f in the interval [a, b] in xi for i = 0, 1,.. n, besides this interpolating polynomial fulfills the condition that the value of the evaluation of the point xi in its first derivative coincides with that of f, in such a way that: [8]

The Hermite polynomial generated has a great relationship with Newton's polynomial, while both share the calculation of divided differences. The Hermite interpolation polynomial has the form: [9]

where:

These coefficients are calculated according to the table of divided differences (Table 1).

To establish a clear difference between the approximation of the interpolating polynomials, we will take test functions and some values of the x axis that will provide the points for the respective interpolation. [9]
Hermite interpolation code

The functions that will be put as test are the exponential function, the sinusoidal function and the polynomial function.




Polynomial test function



The measure of the mean square error (ECM) is established to properly observe the difference between the test function and the approximation of the interpolator polynomial [10]
(2)As it is specified in (2) will be taken as error evaluation values (abscissas) those that are intermediate to the interpolation points, that is, have n points to generate p (x) and n-1 points for evaluate the error. [11], [12], [13]
The results obtained will be presented for different test functions, exponential, sinusoidal and polynomial functions, these were chosen, because the vast majority of engineering functions can be expressed as a combination of those already mentioned.
The results obtained will be presented for different test functions, exponential, sinusoidal and polynomial functions, these were chosen, because the vast majority of engineering functions can be expressed as a combination of those already mentioned.
A. Exponential test function
B. 1 case. Lagrange polynomial

C. 2 case. Hermite polynomial

D. Sinusoidal test function:

E. Case 1. Lagrange polynomial

F. Case 2. Hermite polynomial

G. Polynomial test function:
H. Case 1. Lagrange polynomial

I. Case 2. Hermite polynomial

J. Mean square error

The results obtained from the interpolating polynomials of Lagrange and Hermite quickly show that the Hermite polynomial will always be of greater degree than the Lagrange polynomial, a fact that represents a greater use of computational memory, however, in Table 5 of the EMC, the efficiency of this computational cost, which is a result of zero error and almost zero in some approximations made.
Finally, we can see on the graphs, the Hermite interpolator is more reliable than the Lagrange interpolator, almost unlike the original function, due to the information required to perform the interpolation.

Associated teacher of mathematics and physics at Universidad Tecnologica de Pereira, Colombia. PhD in engineering (2012). Master of Science (Msc) in the faculty of Physics - Cience (2010). Member of plasma laboratory from Universidad Nacional de Colombia located in Manizales, Colombia. Member of nonlinear differential equations group “GEDNOL” at Universidad Tecnologica de Pereira, Colombia. Area of expertise: material processing through assisted plasma techniques, structural characterization mechanical of materials, simulation and modeling of material’s physical properties.

university lecturer of the department of Mathematics at the Universidad Tecnológica de Pereira, Colombia. Master of Science (Msc) in mathematics (2008). Member of nonlinear differential equations group “GEDNOL” at Universidad Tecnologica de Pereira, Colombia. Member of the research group in Applied Mathematics and Education “GIMAE” at the Universidad Tecnologica de Pereira.

university professor and director of the Mathematics Department of the Technological University of Pereira, Colombia. Master of Science (Msc) in physical instrumentation (2007). Member of the plasma laboratory of the National University of Colombia, located in Manizales, Colombia. Member of the group of non-linear differential equations "GEDNOL" at the Technological University of Pereira, Colombia. Director of the research group in Applied Mathematics and Education "GIMAE" at the Universidad Tecnologica de Pereira, Colombia.























