I was wondering how one could derive the
$$\tan(x)\simeq \frac{x}{1-x^2/3}$$
valid for small $x$ values.
This is similar to the ratio of the small $x$ expansions of $\sin(x)$ an $\cos(x)$, however that would yield
$$\tan(x)\simeq \frac{x}{1-x^2/2}$$
so I have been left slightly confused. Many thanks in advance.
EDIT: In my notes this seems to be some sort of recursive fraction approximation. A second version I have written is:
$$ \tan(x)\simeq %%% \frac{\lambda} {1-\frac{\lambda^2}{3-\frac{\lambda^2}{5-\lambda^2/2}}} $$
EDIT: Thanks for your great answers! You can also find this derived in the references to Equation 33 here: http://mathworld.wolfram.com/Tangent.html
Wall, H. S. (1948). Analytic theory of continued fractions. pg. 349
C.D., O. (1963). Continued fractions. pg. 138
This relation con be derived using a Pade approximant. Define a function
$$ R(x) = \frac{a_0 + a_1 x + \cdots + a_m x^m}{1 + b_1 x + \cdots + b_n x^n} $$
That agrees with $f$ up to some order
$$ \left.\frac{{\rm d}^kf}{{\rm d}x^k}\right|_{x=0} = \left.\frac{{\rm d}^kR}{{\rm d}x^k}\right|_{x=0} ~~~\mbox{for}~~ k = 0, 1, \cdots $$
So in your example, take $m=1$ and $n=2$ and $f(x) = \tan(x)$, this would lead to the equations
\begin{eqnarray} a_0 &=&0 \\ a_1 - a_0 b_1 &=& 1 \\ -2a_1 b_1 + a_0(2b_1^2 - 2b_2) &=&0 \\ 3a_1(2 b_1^2 - 2b_2) + a_0(-6b_1^3 + 12 b_1 b_2) &=& 2 \end{eqnarray}
whose solution is
$$ a_0 = 0, a_1 =1, b_1 = 0~~\mbox{and}~~ b_2=-1/3 $$
That is
$$ \tan(x) \approx \frac{x}{1 - x^2/3} $$
which aggress up to the fourth derivative!