Let $E/F$ be a field extension. Let $A$ be the set of all elements in $E$ that are algebraic over $F$. One can show that $A$ is a subfield of $E$. The proofs I read all argue as follows:
Let $a,b \in A$. We want to show that $ab, a +b \in A$. To this end we show that $[F(a,b):F]$ is finite. Finite implies algebraic hence since $a+b, ab \in F(a,b)$, $a+b, ab$ are algebraic and hence in $A$.
I understand this proof but I was wondering if the following argument also works or whether it is flawed:
Let $a,b$ be algebraic over $F$. Then there exist $p,q \in F[x]$ with $p(a) = 0$ and $q(b) = 0$. Define $p' (x) = p(x-b)$ and $p''(x) = p(x b^{-1})$. Then $p'(a + b) = p(a) = 0$ and $p''(ab) = p(a) = 0$. Hence $ab, a+b$ are algebraic over $F$ (since $p', p'' \in F[x]$). Is this correct?
Thanks for help!