Q. 75

Question

Curve Fitting Find the function f(x) = ax3 + bx2 + cx + d for which f(-3)=-112, f(-1)=-2, f(1)=4, and f(2)=13

Step-by-Step Solution

Verified
Answer

f(x)=3x3-4x2+5

1Step 1. Given information

We have been given:

f(-3)=-112, f(-1)=-2, f(1)=4 and f(2)=13

We have to find f(x) = ax3 + bx2 + cx + d.

2Step 2. Put x = - 3 in the function f ( x )   =   a x 3   +   b x 2   +   c x   +   d .

a(3)3+b(3)2+c(3)+d=11227a+9b3c+d=112

3Step 3. Put x = - 1 in the function f ( x )   =   a x 3   +   b x 2   +   c x   +   d .

a(1)3+b(1)2+c(1)+d=112a+bc+d=2

4Step 4. Put x = 1 in the function f ( x )   =   a x 3   +   b x 2   +   c x   +   d .

a(1)3+b(1)2+c(1)+d=112a+b+c+d=4

5Step 5. Put x = 2 in the function f ( x )   =   a x 3   +   b x 2   +   c x   +   d .

a(2)3+b(2)2+c(2)+d=138a+4b+2c+d=13

6Step 6. Write the system of equations and corresponding augmented matrix

27a+9b3c+d    =112a+bc+d    =2a+b+c+d    =48a+4b+2c+d    =13

The corresponding augmented matrix is:

279311121111211114842113

7Step 7. Perform elementary row operations

R1R31111411112-279-31-112842113R2R2+R1R3R3+27R1R4R4-8R1111140202203624284046719R3R3-18R2R4R4+2R211114020220024840006315

8Step 8. Perform more row operations

R212R2R4R4+624R311114010110024840000525R318R3R415R4:11114010110031500015

9Step 9. Solve for a,b,c and d

a+b+c+d    =4          (1)b+d    =1                      (2)3cd    =5                 (3)d    =5                             (4)d    =5From (3): 3c5    =5c    =0From (2): b+5    =1b    =4From (1): a4+5    =4a    =3

Therefore, the function will be f(x)=3x3-4x2+5.