0

$$f(x) = \sqrt{x}$$
has to be approximated by polynomial interpolation $p(x_n) = f(x_n)$ with the positions $\{x_n\} = \{1,4\}$. For such problem which method is the fastest? And find $p(2)$.

My attempt:

Newton's Method:

$p(x) = x_{n+1} = x_n + \frac{g(x_i)}{g'(x_n)}$

where $g(x) = x^2 - 1$

then we can find the roots of the given number. But I'm not sure if its the fastest way to calculate the square roots.

Thanks.

rndflas
  • 955

2 Answers2

1

You problem asks for $p(x) = \frac{4-x}{4} + \frac{x}{2}$ for which $p(0) = 1 = f(1)$ and $p(4) = 2 = f(4)$. Then $p(2) = \frac{3}{2}$.

Carl Christian
  • 12,583
  • 1
  • 14
  • 37
  • how do we know $p(x) = \frac{4-x}{4} + \frac{x}{2}$ ?? – rndflas Jun 07 '16 at 13:42
  • Your problem specified two nodes, namely $x_0 = 1$ and $x_1 = 4$ and said to apply interpolation. As there is one and only one polynomial of degree 1 which interpolates $f$ on those two nodes and $p$ does the job it must be the interpolating polynomial required. – Carl Christian Jun 07 '16 at 13:54
  • what would be p(x) if ${x_n} = {0,1,4,9}$?? – rndflas Jun 07 '16 at 13:59
  • 1
    Then you need to apply the general formula for interpolating polynomial of degree at most 3. Either compute Lagrange's form or Newton's form of the interpolating polynomial. – Carl Christian Jun 07 '16 at 14:22
0

There are available many methods like

1> the Quasi Newton

2> Secant method

3>fixed point iteration method

All of these you can find explained in Justin Solomon's book Numerical Algorithms

Qwerty
  • 6,165