Let $F$ be a subfield of a field $K$, $a$ an element of $K$.
Prove that $a$ is algebraic over $F$ iff $F[a]=F(a)$.
For the first direction I've tried this: $a$ is algebraic over $F$ $\Rightarrow$ there is a polynomail $f$ over $F$ such that $f(a)=0$ $\Rightarrow$ $1,a,a^2,...,a^m$ are linearly dependent $\Rightarrow$ $\deg(F[a])<m$. but it contains $f(a)$ so they are equal..
is that correct? about the other direction.. i simply have no clue