Changing format of the equation of interpolation

In summary, we discussed plotting a line function L(x) that intersects two given points (a, f(a)) and (b, f(b)), and found that the linear function can be expressed as L(x) = f(b) \frac{(x - a)}{(b-a)} + f(a) \frac{(x-b)}{(a-b)}. We also explored plotting a quadratic function P(x) that intersects three given points (a, f(a)), (m, f(m)), and (b, f(b)), and found that the quadratic function can be expressed in various forms such as the hyperbola and elipse equations. We also looked at some relationships that can help with this question, such as the two-point form,
  • #1
Bruno Tolentino
97
0
Give 2 points: (a, f(a)) and (b, f(b)), is possible plot a line function L(x) that intersects these two points, the linear function is:

[tex]L(x) = f(b) \frac{(x - a)}{(b-a)} + f(a) \frac{(x-b)}{(a-b)}[/tex]

In other format, is:

[tex]L(x)-f(a) = \frac{f(b)-f(a)}{(b-a)} (x-a) [/tex]

Now, given 3 points: (a, f(a)), (m, f(m)) and (b, f(b)), is possible too plot a quadratic function P(x) that intersects these three points, and the quadratic function is:

5c315199fec37d3fa3ba45a70fff1545.png


And what I REALLY WANT is change the format of the function P(x) for a new format of equation where all factors are the form (u-v).

Here are some relationships that can help you to help me:
https://en.wikipedia.org/wiki/Linear_equation#Two-point_form
https://en.wikipedia.org/wiki/Linear_equation#2D_vector_determinant_form
https://en.wikipedia.org/wiki/Simpson's_rule#Quadratic_interpolation
https://pt.wikipedia.org/wiki/Polinômio_de_Lagrange#Polin.C3.B4mios_de_Lagrange
https://en.wikipedia.org/wiki/Mean_value_theorem
https://pt.wikipedia.org/wiki/Matriz_de_Vandermonde

Interpolação de segunda ordem (2D).png
nth derivative.png


Equation of hyperbola:
[tex] \left( \frac{x}{a} \right)^2 - \left( \frac{y}{b} \right)^2 = 1 [/tex]
Equation of elipse:
[tex] \left( \frac{x}{a} \right)^2 + \left( \frac{y}{b} \right)^2 = 1 [/tex]
Equation of parabola:
[tex] \left( \frac{x}{a} \right)^2 + \left( \frac{y}{b} \right) = 1 [/tex]
Equation of straight line:
[tex] \left( \frac{x}{a} \right) - \left( \frac{y}{b} \right) = 1 [/tex]

This is a horrible question, because involves so much algebraic operations, for this reason I posted all these relationship above, because, maybe you can to get the answer for my question without make counts, just comparing the symmetry...
 
Mathematics news on Phys.org
  • #2
It is not clear in what way what you want is different from the display.
 
  • #3
Realize that the 2nd equation is of the form: (u-v) = (u-v)/(u-v) * (u-v), all factors are of the form (u-v). This is not true for the 1nd equation, that is of the form w = w (u-v)/(u-v) + w (u-v)/(u-v), the same happens with the 3nd equation, I would like of rewrite all factors in the form (u-v), obviously, P(x), f(a), f(m) and f(b) are separated factors.
 
  • #4
EDIT: I got my answer!

Calling a of x3, m of x2 and b of x1 and f(a) of y3, f(m) of y2 and f(b) of y3, the answer for my question is:

[tex](y - y_1) = \frac{(y_3 - y_1)}{(x_3 - x_2)(x_3 - x_1)} (x-x_2)(x-x_1) + \frac{(y_2 - y_1)}{(x_2 - x_1)(x_2 - x_3)} (x-x_1)(x-x_3)[/tex]

BUT, my second question is: is possible isolate all the y terms in the left side of equation and isolate all the x terms in the right side? (independent of the format of equation, the important, for my is just isolate the terms x and y) If yes, so, you can help me make this?
 
Last edited:

What is interpolation and why is it important?

Interpolation is a mathematical method used to estimate values between known data points. It is important because it allows us to fill in missing data or to create a smooth curve from a set of discrete points.

What are the common formats of interpolation equations?

The most commonly used formats for interpolation equations are linear, polynomial, and spline. Linear interpolation involves connecting two data points with a straight line, while polynomial interpolation uses a curve to connect multiple points. Spline interpolation is a more complex method that uses a series of curves to create a smooth interpolation.

Why would you want to change the format of an interpolation equation?

Changing the format of an interpolation equation can help to better fit the data or improve the accuracy of the interpolation. It can also provide a more visually appealing representation of the data.

What factors should be considered when choosing the format of an interpolation equation?

The choice of interpolation format depends on the type of data, the accuracy needed, and the intended use of the interpolated values. Linear interpolation is best for simple data sets, while spline interpolation is better for more complex and irregularly spaced data.

Are there any limitations or drawbacks to changing the format of an interpolation equation?

There are some limitations to changing the format of an interpolation equation. For example, spline interpolation can be more computationally expensive and may not always provide the most accurate results. Additionally, changing the format may not always improve the interpolation and could potentially introduce errors.

Similar threads

Replies
7
Views
828
Replies
5
Views
847
Replies
3
Views
738
Replies
9
Views
2K
Replies
19
Views
2K
Replies
17
Views
2K
  • General Math
Replies
11
Views
1K
Replies
2
Views
1K
Replies
2
Views
256
Replies
8
Views
1K
Back
Top