Question
Question: How do you find the polynomial function whose graph passes through \(\left( 2,4 \right),\left( 3,6 \...
How do you find the polynomial function whose graph passes through (2,4),(3,6),(5,10)?
Solution
We will use second polynomial fitting. Then we will find the corresponding coefficient matrix. Later, we will use the Cramer’s Rule to determine the unknowns.
Complete step by step solution:
We are given with three points, (2,4),(3,6) and (5,10).
Therefore, we will use second polynomial fitting like y=ax2+bx+c.
We will get the following three equations:
When we consider the point (2,4), we will get y1=ax12+bx1+c=a(2)2+b(2)+c.
When we consider the point (3,6), we will get y2=ax22+bx2+c=a(3)2+b(3)+c.
When we consider the point (5,10), we will get y3=ax32+bx3+c=a(5)2+b(5)+c.
These equations will give us the following system of equations:
4a+2b+c=4.9a+3b+c=6.25a+5b+c=10.
Let us convert this system of equations into matrix form as AX=B where A= 4 219 3125 51,X=a b c and B=4 6 10 .
When we solve this using X=A−1B, we will get the values the unknowns a,b and c.
Here we are using Cremer’s rule to find the values of the unknowns a,b and c.
Let us find the determinant of the matrix A.
⇒∣A∣= 4 219 3125 51=4(3−5)−2(9−25)+1(45−75)=4×(−2)−2(−16)+(−30)
⇒∣A∣=−8+32−30=−8+2=−6.
Consider the matrix Ax1 which is constructed by replacing the first column of the matrix A with the elements of the column matrix B.
So, the matrix Ax1 is given by Ax1= 4 216 3110 51.
We are going to find the determinant of the matrix Ax1.
Therefore, ∣Ax1∣=4(3−5)−2(6−10)+1(30−30)=4×(−2)−2(−4)+0=−8+8=0.
Consider the matrix Ax2 which is constructed by replacing the second column of the matrix A with the elements of the column matrix B.
So, the matrix Ax2= 4 419 6125 101.
As we have done earlier, we are going to find the determinant of the matrix Ay.
So, ∣Ax2∣=4(6−10)−4(9−25)+1(90−150)=4(−4)−4(−16)+(−60)=−16+64−60=−16+4=−12.
Consider the matrix Ax3 which is constructed by replacing the third column of the matrix A with the elements of the column matrix B.
Thus, the matrix Ax3= 4 249 3625 510.
The determinant of Ax3=4(30−30)−2(90−150)+4(45−75)=0−2(−60)+4(−30)=120−120=0.
Now, the values of the unknowns can be obtained as follows:
a=∣A∣∣Ax1∣=−60=0.
b=∣A∣∣Ax2∣=−6−12=612=2.
c=∣A∣∣Ax3∣=−60=0.
Now we will substitute these values in any of the equations in the system of equations.
We will get,
4(0)+2(2)+0=4.9(0)+3(2)+0=6.25(0)+5(2)+0=10.
We can see,
y1=0x12+2x1+0=2x1.y2=0x22+2x2+0=2x2.y3=0x32+2x3+0=2x3.
Generally, y=2x.
Hence the polynomial function whose graph passes through (2,4),(3,6) and (5,10) y=2x.
Note: In (2,4),x=2 and y=4. That is y=2⋅2=2x. In (3,6),x=3 and y=6. That is, y=2⋅3=2x. Similarly, in (5,10),x=5 and y=10. That is, y=2⋅5=2x. Therefore the required function is y=2x.
The determinant a1 a2a3b1 b2b3c1 c2c3=a1(b2c3−c2b3)−a2(b1c3−c1b3)+a3(b1c2−c1b2).