Question: I have some troubles wit the next exercise.

> 
> Find the required work for move a particle from the point $(1,0)$ to the point $(-1,0)$ trought the ellipse $x^2+\displaystyle\frac{y^2}{b^2}=1$ against to the force $F(x,y)=(3y^2+2,16x)$. Which value of $b$ minimizes the work?
> 
> 
> 

First, consider $\gamma(t)=(\cos(t),-b\sin(t))$ the parametrization of the ellipse. The sign in the second coordinate is because the field goes counterclockwise, and, then, the parametrization should be goes clockwise.

Then, $$\displaystyle\int\_{0}^{\pi}(3b^2\sin^2(t)+2,16\cos(t))\cdot(-\sin(t),-b\cos(t))\,dt$$The integral then is $$\int\_{0}^{\pi}-3b^2\sin^3(t)-2\sin(t)-16b\cos^2(t)\,dt$$And the value is $-4b^2-8b\pi-4$ but, this function of $b$ doesn't have minimum, only a maximum. What happened here? What is wrong with my exercise?

Answer: 
Let $a\_0=0$ and $a\_{n+1}=\cfrac1{1+\cfrac1{5+a\_n}}$.

Prove by induction:

1) $a\_n<\dfrac{-5+\sqrt{45}}2$

2) $a\_{n+1}>a\_n$ i.e. monotone

So that it converges and that it must converge to some $a'$ such that:

$$a'=\cfrac1{1+\cfrac1{5+a'}}$$

(feel free to ask if you need more tips on any steps below, hover on the below tips to see major steps)

Induction step on proving 1)

> 
>  \begin{align}&a\_0<\cfrac{-5+\sqrt{45}}2\\&a\_{n+1}=\cfrac1{1+\cfrac1{5+a\_n}}<\cfrac1{1+\cfrac1{5+\cfrac{-5+\sqrt{45}}2}}=\cfrac{-5+\sqrt{45}}2\end{align}
> 
> 
> 

Induction on 2)

> 
>  \begin{align}&a\_1>a\_0\\&a\_{n+1}=\cfrac1{1+\cfrac1{5+a\_n}}>\cfrac1{1+\cfrac1{5+a\_{n-1}}}=a\_n\end{align}
> 
> 
>
Here is the method of Lagrange and Gauss for this: the "reduced" quadratic form $x^2 + 5x - 5 y^2$ is in a very short cycle. Notice that the limit is the positive root of $t^2 + 5t-5.$

```
=========================================
jagy@phobeusjunior:~/old drive/home/jagy/Cplusplus$ ./indefCycle 1 5 -5

  0  form              1           5          -5

           1           0
           0           1

To Return  
           1           0
           0           1

0  form   1 5 -5   delta  -1     ambiguous  
1  form   -5 5 1   delta  5     ambiguous  
2  form   1 5 -5

  form   1 x^2  + 5 x y  -5 y^2 

minimum was   1rep   x = 1   y = 0 disc 45 dSqrt 6  M_Ratio  36
Automorph, written on right of Gram matrix:  
-1  -5
-1  -6
=========================================

```