Let $L/F$ be a field extension and let $a_1,...,a_n$ elements in $L$ that are algebraically independent over $F$ (i.e. there is no non-zero polynomial $f\in F[x_1,...,x_n]$ s.t. $f(a_1,...,a_n)=0$). Prove that $F(a_1,...,a_n)$ is isomorphic to the fraction field of $F[x_1,...,x_n]$.
Proof : Let $\varphi:F[x_1,...,x_n]\to L$ s.t. $\varphi:x_i\longmapsto a_i$. This is clearly injective.
This injectivity along with the existence of inverse in $L$, means that we can extend $\varphi$ to an injective homomorphism $\varphi:F(x_1,...,x_n)\to L$.
Question : I don't understand this last sentence. How $\varphi$ can be prolonged to $F[x_1,...,x_n]$ to $F(x_1,...,x_n)$ ?
After, they say that this is surjective because $F$ and each of the $a_i$ is in the image, and these generate $L$ over $F$.
Question : Why it generate $L$ over $F$ ?