The question is pretty much in the title. We are asked to show
$$\models \varphi\rightarrow \forall x\varphi\quad\text{ if $x$ is not a free variable of $\varphi$}.$$
It seems to me that this is pretty obvious, because if $x$ is not free, then the quantifier doesn't change anything and $\varphi,\forall x\varphi$ are logically equivalent. So there isn't really anything left to show.
But what if $x$ is free in $\varphi$? I would have thought the following ($\mathfrak{M}$ is a structure, and $s$ a variable assignment): \begin{align*} \models\forall x\,\varphi \iff&\forall\mathfrak{M},s:\,\mathfrak{M},s\models\forall x\,\varphi\\ \iff&\forall\mathfrak{M},s\mathrm{~and~}\forall d\in\lvert \mathfrak{M}\rvert:\,\mathfrak{M},s\frac{d}{x}\models\varphi\\ \iff&\forall\mathfrak{M},\bar{s}:\,\mathfrak{M},\bar{s}\models\varphi\\ \iff&\models\varphi. \end{align*} For the equivalence of the 2nd and the 3rd line, I use the argument that $s$ is arbitrary, and we could choose another assignment $\bar{s}$ with $\bar{s}(x)=d=s\frac{d}{x}(x)$. We may do that for all $d$ in $\mathfrak{M}$'s domain.
Is my way of thinking terribly flawed here or is this correct?
Thanks
Edit. To the downvoter:
Use your downvotes whenever you encounter an egregiously sloppy, no-effort-expended post, or an answer that is clearly and perhaps dangerously incorrect.
This does not apply here.