Answer on Question #66677 – Math – Algorithms | Quantitative Methods
Question
determine a unique polynomial f ( x ) f(x) f ( x ) of degree < = 3 <= 3 <= 3 such that f ( x 0 ) = 1 f(x_0) = 1 f ( x 0 ) = 1 , f ′ ( x 0 ) = 2 f'(x_0) = 2 f ′ ( x 0 ) = 2 , f ( x 1 ) = 2 f(x_1) = 2 f ( x 1 ) = 2 , f ′ ( x 1 ) = 3 f'(x_1) = 3 f ′ ( x 1 ) = 3 where x 1 − x 0 = h x_1 - x_0 = h x 1 − x 0 = h
Solution
f ( x ) = a x 3 + b x 2 + c x + d . f ′ ( x ) = 3 a x 2 + 2 b x + c f(x) = ax^3 + bx^2 + cx + d. \quad f'(x) = 3ax^2 + 2bx + c f ( x ) = a x 3 + b x 2 + c x + d . f ′ ( x ) = 3 a x 2 + 2 b x + c { f ( x 0 ) = 1 f ( x 0 + h ) = 2 f ′ ( x 0 ) = 2 f ′ ( x 0 + h ) = 3 ⇒ { a x 0 3 + b x 0 2 + c x 0 + d = 1 a ( x 0 + h ) 3 + b ( x 0 + h ) 2 + c ( x 0 + h ) + d = 2 3 a x 0 2 + 2 b x 0 + c = 2 3 a ( x 0 + h ) 2 + 2 b ( x 0 + 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. ⎩ ⎨ ⎧ f ( x 0 ) = 1 f ( x 0 + h ) = 2 f ′ ( x 0 ) = 2 f ′ ( x 0 + h ) = 3 ⇒ ⎩ ⎨ ⎧ a x 0 3 + b x 0 2 + c x 0 + d = 1 a ( x 0 + h ) 3 + b ( x 0 + h ) 2 + c ( x 0 + h ) + d = 2 3 a x 0 2 + 2 b x 0 + c = 2 3 a ( x 0 + h ) 2 + 2 b ( x 0 + h ) + c = 3
We can solve this system using Cramer’s rule and obtain the coefficients a , b , c a, b, c a , b , c and d d d .
In particular case ( x 0 = 0 ) (x_0 = 0) ( x 0 = 0 ) :
{ d = 1 a h 3 + b h 2 + c h + d = 2 c = 2 3 a h 2 + 2 b h + c = 3 ⇒ d = 1 , c = 2 → { a h 3 + b h 2 = 1 − 2 h 3 a h 2 + 2 b h = 1 ⇒ a = 5 h − 2 h 3 , b = 3 − 7 h h 2 . \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} ⎩ ⎨ ⎧ d = 1 a h 3 + b h 2 + c h + d = 2 c = 2 3 a h 2 + 2 bh + c = 3 ⇒ d = 1 , c = 2 → { a h 3 + b h 2 = 1 − 2 h 3 a h 2 + 2 bh = 1 ⇒ a = h 3 5 h − 2 , b = h 2 3 − 7 h .
So f ( x ) = 5 h − 2 h 3 x 3 + 3 − 7 h h 2 x 2 + 2 x + 1 f(x) = \frac{5h - 2}{h^3} x^3 + \frac{3 - 7h}{h^2} x^2 + 2x + 1 f ( x ) = h 3 5 h − 2 x 3 + h 2 3 − 7 h x 2 + 2 x + 1 .
Answer provided by https://www.AssignmentExpert.com
Comments