Professional Documents
Culture Documents
𝒚 = 𝒂𝒙𝟐 + bx + c
This will exactly fit a simple curve to three points.
If the order of the equation is increased to a third degree polynomial, the following is
obtained:
𝒚 = 𝒂𝒙𝟑 + 𝒃𝒙𝟐 + cx + d
This will exactly fit four points.
Given the two red points, the blue line is the linear interpolation
between the points, and the value y at x may be found by linear
interpolation.
which can be derived geometrically from the figure on the right. It is a special case
of polynomial interpolation with n = 1.
Solving this equation for y, which is the unknown value at x, gives
which is the formula for linear interpolation in the interval (𝑥0 ,𝑦0 ).
x 1 3 4 6 8 9 11 14
y 1 2 4 4 5 7 8 9
Solution:
The normal equation for fitting the straight line y = ax + b
x y xy x2
1 1 1 1
3 2 6 9
4 4 16 16
6 4 24 36
8 5 40 64
9 7 63 81
11 8 88 121
14 9 126 196
x = 56 y = 40 xy = 364 x2 = 524
Solution:
Straight Line equation is y = ax + b
Therefore; y = 22.3125x - 5.2969 (slope of a line is (+) 22.3125 and y intercept is -5.2969)
x 0 1 2 3 4
x 12 10 8 6 4 2
y 6 5 4 3 2 1
Solution:
The equation is y = ax2 + bx + c and the normal equations are
Example 4: Fit cubic equation y = ax3 + bx2 +cx + d using the following data:
x 12 10 8 6 4 2
y 6 5 4 3 2 1
Solution:
The normal equation of y = ax3 + bx2 + cx + d are
Example 3: The temperature of a rock at 4PM was 35 degrees Celsius and at 7PM it was 23
degree Celsius. Using linear interpolation, find its temperature at 9PM.
Solution:
Exercise:
1. The first set of values for day three are (3,4), the second set of values for day five are (5,8).
Calculate the estimated height of the plant on the fourth day. Answer: y = 6
Day 1 3 5 7 9
Height
0 4 8 12 16
(mm)
References/ Video Links:
https://www.youtube.com/watch?v=yQsDxOdn1hk&list=PLYdroRCLMg5NTT00m-
7ituVGdtY1X680M&index=1
https://www.youtube.com/watch?v=s7ILfzREF0w&list=PLYdroRCLMg5NTT00m-
7ituVGdtY1X680M&index=3&t=0s
https://www.youtube.com/watch?v=1iJGLcP__s0
http://atozmath.com/CONM/LeastSquare.aspx?q=1&q1=0.24%2c0.26%2c0.28%2c0.30%601.25
%2c0.80%2c0.66%2c0.20%601&do=1#PrevPart
https://www.vedantu.com/formula/linear-interpolation-formula
https://byjus.com/linear-interpolation-formula/
https://study.com/academy/lesson/interpolation-in-statistics-definition-formula-example.html