Algebraic Error In My Work for Secant Method

140 Views Asked by At

I keep getting the wrong answer for problems involving approximating roots, mostly due to some kind of algebraic oversight I am making. Essentially, given a problem where I need to approximate a value for $4^{3/4}$ using one step of the secant method where $x_0 = 3, x_1 = 2$, I try:

$x - 4^{3/4} = 0$

$f(x) = x- 4^{3/4}$

Thus, use secant method, so

$x_2 = 2 - \frac{2-3}{(2-4^{3/4})-(3-4^{3/4})} \times (2-4^{3/4})$

This is wrong however, because $f(x)$ is actually:

$f(x) = x^4-4^3$

And you get a slightly different answer.

I can't seem to track down the error in my assumption though; maybe I'm just tired, but I'd greatly appreciate any help with this.

1

There are 1 best solutions below

3
On

Using the secant method with $f(x) = x-4^{3/4}$ does not work, for you cannot compute any value of $f$ without knowing $4^{3/4}$ a priori. You have to find a function which known coefficients. Note also that you "approximation" has $$ x_2 = 2 - \frac{2-3}{(2-4^{3/4}) - (3 - 3^{3/4})} \cdot (2 - 4^{3/4}) = 2 - (2 - 4^{3/4}) = 4^{3/4} $$ and hence is not of any help.

Using the suggested function $g(x) = x^4 - 4^3$ (note that - in constrast to the above - we can write $g$ without formal powers, $g(x) = x^4 - 64$), we have $$ x_2 = 2 - \frac{2-3}{(16 - 64) - (81 - 64)} \cdot (16 - 64) = 2 - \frac{-1}{-65} \cdot (-48) = \frac{178}{65} $$