

Thus, we should evaluate the problem to decide which one to use. Each method has different operations, advantages, and disadvantages. Popular methods to solve systems of three equations are the elimination method and Crammer’s rule. In this manner, we can determine the coefficients a_0, a_1, and a_2 by solving the system: With the mapped functions, we can organize them into a system of three equations. Thus, mapping the samples, we’ll get three functions:, , and. Similar to the linear interpolation, we’ll have to map the XY samples into the general formula of a second-degree polynomial function. In this way, let’s consider three generic numerical samples: (x1, y1), (x2, y2), and (x3, 圓). So, this function graphically describes a parabola that crosses all the provided samples.Īs a second-degree equation, we’ll need to provide three XY samples to calculate the interpolating polynomial.

The quadratic interpolation has as final objective to find a quadratic function (second degree) that considers the XY samples. Thus, we can finally replace the unknown coefficients from the general formula ( ) to determine our interpolating polynomial. So, a s any of these methods apply to the problem, we can choose the one that best fits it.Īfter solving the system of equations, we’ll have numeric values for both the coefficients and. There are different ways to solve a system of two equations: the substitution method, the comparison method, and the addition method.

Since, ,, are numeric values, we must only determine the coefficients and that satisfies the following system of equations: To find the interpolating polynomial, first, we need to map our XY samples in the general formula of a first-degree polynomial function ( ). So, lets consider the following generic samples: and. In this way, we need two samples of XY data to execute a linear polynomial interpolation. Thus, the line generated by this function must cross the coordinate of XY data in the cartesian plane.įunctions describe lines in the cartesian plane when they are first-degree polynomials. Finally, we’ll point out other interpolation methods.Īs the name suggests, linear interpolation aims to determine the linear function that embraces the provided XY data samples. Next, we’ll investigate a similar method to do quadratic interpolation. So, we’ll study a method for linear interpolation. At first, we’ll see core concepts about polynomial interpolation. In this tutorial, we’ll learn basic concepts about polynomial interpolation. Examples of such uses are data estimation (with some similarities with regression purposes) and screen resolution adaptions. Note that polynomial interpolation has several uses in computer science. Thus, in these scenarios, we can estimate an unknown Y for a new X in a given range through an interpolating polynomial. Often, we have data in the XY format: for each X, there is a corresponding Y. Nowadays, some technologies and computing paradigms, such as the Internet of Things (IoT) and big data, are particularly responsible for generating tons of data.īut, even obtaining lots of data, we may need to estimate extra data for specific purposes. With the growth of data availability, strategies to process it becomes a big concern in the current computing scenario.
