1) If we use the secant method on f(x) = x^3-2x+2 starting with x0 = 0 and x1=1, what is x2, and x3.
2) If the secant method is used on f(x) = x^5 + x^3 + 3 and if xn-2 = 0 and xn-1 = 1, what is xn, xn+1, and xn+2.
The equation i'm using for the secant method:
\(\displaystyle x_{n + 1} = x_n - (\frac{{x_n - x_{n - 1} }}{{f(x_n ) - f(x_{n - 1} )}})f(x_n ) \\\)
For number 1 i get:
\(\displaystyle x_2 = x_1 - (\frac{{x_1 - x_0 }}{{f(x_1 ) - f(x_0 )}})f(x_1 ) \\\)
\(\displaystyle x_2 = 1 - (\frac{{1 - 0}}{{1 - 2}})(1) = 2 \\\)
\(\displaystyle x_3 = 2 - (\frac{{2 - 1}}{{6 - 1}})(6) = 10.8 \\\)
I don't think this is right. I thought that x should be closing in on 1.769..., but i can't see what i'm doing wrong.
For number 2, i get:
\(\displaystyle x_n = 1 - (\frac{{1 - 0}}{{5 - 3}})(5) = 2.5\)
i didn't go any further because xn should equal -2/3.
Not sure what i'm doing wrong. Any help would be appreciated.
Thanks.
2) If the secant method is used on f(x) = x^5 + x^3 + 3 and if xn-2 = 0 and xn-1 = 1, what is xn, xn+1, and xn+2.
The equation i'm using for the secant method:
\(\displaystyle x_{n + 1} = x_n - (\frac{{x_n - x_{n - 1} }}{{f(x_n ) - f(x_{n - 1} )}})f(x_n ) \\\)
For number 1 i get:
\(\displaystyle x_2 = x_1 - (\frac{{x_1 - x_0 }}{{f(x_1 ) - f(x_0 )}})f(x_1 ) \\\)
\(\displaystyle x_2 = 1 - (\frac{{1 - 0}}{{1 - 2}})(1) = 2 \\\)
\(\displaystyle x_3 = 2 - (\frac{{2 - 1}}{{6 - 1}})(6) = 10.8 \\\)
I don't think this is right. I thought that x should be closing in on 1.769..., but i can't see what i'm doing wrong.
For number 2, i get:
\(\displaystyle x_n = 1 - (\frac{{1 - 0}}{{5 - 3}})(5) = 2.5\)
i didn't go any further because xn should equal -2/3.
Not sure what i'm doing wrong. Any help would be appreciated.
Thanks.