Fixed Point Iteration on an interval

I have the fixed point iteration x(i+1) = g(xi) where g(x) = 1 - 5x + 15/2x^2 - 5/2x^3. I want to find an initial guess that will make the FPI cycle endlessly through the numbers in the interval (0, 1).
I've found the roots on matlab to be 2.1597 + 0.0000i, 0.4201 + 0.0932i and 0.4201 - 0.0932i but I don't know how to use this to find the initial guess.
Any tips would be greatly appreciated!

2 Commenti

You're still using the wrong roots! The "fixed points" would be the roots of the equation
x = 1 - 5x + 15/2x^2 - 5/2x^3 .
For these three values you would have x(i+1) equal to x(i) so that the iteration would not change values.
Britt
Britt il 16 Mag 2016
Modificato: Britt il 16 Mag 2016
@Roger Stafford I honestly don't know what you mean by that, they are the roots matlab gave me? And I was told I don't even need the roots to find the initial guess?

Accedi per commentare.

Risposte (2)

syms g(x)
g(x) = 1 - 5*x + 15/2*x^2 - 5/2*x^3
solve( g(x) == g(x+1))

9 Commenti

I appreciate this, although I'm not certain what this is giving me? Roots? I get 0 and 1, am I to use these to find the initial guesses for the three circumstances?
Plot g(x) from about -3 to +3.
Solve g(x) = 0 and solve g(x) = 1.
Armed with the roots and the graph you should be able to see where g(x) has a value between 0 and 1. You will get two distinct ranges.
Britt
Britt il 17 Mag 2016
Modificato: Britt il 17 Mag 2016
So I've plot the function and solved for 0 (which is the root I already had) and for 1. The graph shows me that when x = 0 and when x = 1, g(x) = 1. So can I use that as my initial guess to cycle through the interval (0, 1)?
Anywhere in that range should work, but there is second range outside of [0,1] which will also result in cycling over [0,1]
So if I wanted to find an initial guess for a different interval, say [1, 2] I'd be able to just choose a value within that range also?
No, the second interval is between 2 and the last root of solve(g(x)==0)
No I mean if I was trying to find a different initial guess, for a different interval. [1, 2] was just the example interval I was using.
I am confused. In this alternate version, is the idea to find initial values that cycle over [1, 2] instead of [0, 1], and you want to know the range of initial values that will lead to that cycling over [1, 2] ?
Yes, in each circumstance I'm trying to figure out and understand how I'd find initial values/guesses that would cause the fpi to cycle over both [0, 1] and [1, 2] independently. Sorry to be so unclear, I'm very confused by the concept

Accedi per commentare.

John D'Errico
John D'Errico il 18 Mag 2016
Modificato: John D'Errico il 18 Mag 2016
Perhaps you are asking how to do this:
syms x
g = 1 - 5*x + 15/2*x^2 - 5/2*x^3;
x0 = solve(diff(g) - 1)
x0 =
1 - 5^(1/2)/5
5^(1/2)/5 + 1
x0d = double(x0)
x0d =
0.55279
1.4472
xiter = x0d(1);
xiter = double(subs(g,x,xiter))
xiter =
0.10557
xiter = double(subs(g,x,xiter))
xiter =
0.55279
xiter = double(subs(g,x,xiter))
xiter =
0.10557
xiter = double(subs(g,x,xiter))
xiter =
0.55279
xiter = double(subs(g,x,xiter))
xiter =
0.10557
Now, lets see that happens when we start from the second root.
xiter = x0d(2)
xiter =
1.4472
>> xiter = double(subs(g,x,xiter))
xiter =
1.8944
>> xiter = double(subs(g,x,xiter))
xiter =
1.4472
>> xiter = double(subs(g,x,xiter))
xiter =
1.8944
>> xiter = double(subs(g,x,xiter))
xiter =
1.4472
>> xiter = double(subs(g,x,xiter))
xiter =
1.8944
As you should see, in either case, the iterations cycle infinitely. This was done by choosing points where g'(x) was equal to 1.
I'll let you do some reading to understand why that happens. Perhaps start here, but I'm sure there are better places to look.

1 Commento

Thanks heaps for this, it shows the cycling well. I'm just a bit confused as to what you used as an initial value/guess to achieve this? Was it just 1? Sorry, its finding the initial guess that I can't fathom

Accedi per commentare.

Richiesto:

il 15 Mag 2016

Commentato:

il 18 Mag 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by