5. Recursion and Iteration
Sign In
Use the initial value as the input of a function rule. This will give us the first output value.
1, 4, 37
x_0&=- 12 f(x)& = 2x^2+x+1 To do so, we will use a table.
| n | x_n | f(x)=2x^2+x+1 | x_(n+1) |
|---|---|---|---|
| 0 | x_0= -1/2 | 2 x_0^2+ x_0+1=2( -1/2)^2+( -1/2)+1 | 1 |
| 1 | x_1= 1 | 2 x_1^2+ x_1+1=2( 1)^2+ 1+1 | 4 |
| 2 | x_2= 4 | 2 x_2^2+ x_2+1=2( 4)^2+ 4+1 | 37 |
| 3 | x_3= 37 | - | - |
Therefore, the first three iterates of the function are 1, 4 and 37.