All over the place on Wikipedia, I see a bunch of identities related to continued fractions, like $$\arctan x=\cfrac{x}{1+\cfrac{x^2}{3+\cfrac{4x^2}{5+\cfrac{9x^2}{7+...}}}}$$ or $$\pi=\cfrac{4}{1+\cfrac{1^2}{2+\cfrac{3^2}{2+\cfrac{5^2}{2+...}}}}$$ How does one verify these? I haven't even managed to prove a single one of them yet.
Furthermore, aside from proving them, how does one derive them? That is, how does one come up with something like this?
I know how to evaluate simpler continued fractions, like $$\cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{1+...}}}$$
But I don't know how to evaluate anything where the terms on the inside follow some other sort of sequence.
Can anyone provide a proof (or, preferably, a derivation) of one of the two identities above, or some other continued fraction identity? Can anybody give me some way to go about these types of problems?