Question #66677

determine a unique polynomial f(x) of degree<=3 such that
f(x_0)=1, f'(x_0)=2, f(x_1)=2, f'(x_1)=3 where x_1 - x_0 = h
1

Expert's answer

2017-05-09T13:30:09-0400

Answer on Question #66677 – Math – Algorithms | Quantitative Methods

Question

determine a unique polynomial f(x)f(x) of degree <=3<= 3 such that f(x0)=1f(x_0) = 1, f(x0)=2f'(x_0) = 2, f(x1)=2f(x_1) = 2, f(x1)=3f'(x_1) = 3 where x1x0=hx_1 - x_0 = h

Solution


f(x)=ax3+bx2+cx+d.f(x)=3ax2+2bx+cf(x) = ax^3 + bx^2 + cx + d. \quad f'(x) = 3ax^2 + 2bx + c{f(x0)=1f(x0+h)=2f(x0)=2f(x0+h)=3{ax03+bx02+cx0+d=1a(x0+h)3+b(x0+h)2+c(x0+h)+d=23ax02+2bx0+c=23a(x0+h)2+2b(x0+h)+c=3\left\{ \begin{array}{l} f(x_0) = 1 \\ f(x_0 + h) = 2 \\ f'(x_0) = 2 \\ f'(x_0 + h) = 3 \end{array} \right. \Rightarrow \left\{ \begin{array}{c} ax_0^3 + bx_0^2 + cx_0 + d = 1 \\ a(x_0 + h)^3 + b(x_0 + h)^2 + c(x_0 + h) + d = 2 \\ 3ax_0^2 + 2bx_0 + c = 2 \\ 3a(x_0 + h)^2 + 2b(x_0 + h) + c = 3 \end{array} \right.


We can solve this system using Cramer’s rule and obtain the coefficients a,b,ca, b, c and dd.

In particular case (x0=0)(x_0 = 0):


{d=1ah3+bh2+ch+d=2c=23ah2+2bh+c=3d=1,c=2{ah3+bh2=12h3ah2+2bh=1a=5h2h3,b=37hh2.\begin{array}{l} \left\{ \begin{array}{l} d = 1 \\ ah^3 + bh^2 + ch + d = 2 \\ c = 2 \\ 3ah^2 + 2bh + c = 3 \end{array} \right. \Rightarrow d = 1, \quad c = 2 \rightarrow \left\{ \begin{array}{l} ah^3 + bh^2 = 1 - 2h \\ 3ah^2 + 2bh = 1 \end{array} \right. \Rightarrow \\ a = \frac{5h - 2}{h^3}, \quad b = \frac{3 - 7h}{h^2}. \end{array}


So f(x)=5h2h3x3+37hh2x2+2x+1f(x) = \frac{5h - 2}{h^3} x^3 + \frac{3 - 7h}{h^2} x^2 + 2x + 1.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS