Mistake in solving an equation involving a square root I want to solve $2x = \sqrt{x+3}$, which I have tried as below:
$$\begin{equation}
4x^2 - x -3 = 0 \\
x^2 - \frac14 x - \frac34 = 0 \\
x^2 - \frac14x = \frac34 \\
\left(x - \frac12 \right)^2 = 1 \\
x = \frac32 , -\frac12
\end{equation}$$
This, however, is incorrect.
What is wrong with my solution?
 A: Two mistakes:
1) mistake in completing the square. Remember, divide the coefficient of the $x$ term by two, not multiply. You should've got: $(x-\frac 18)^2 = \frac 34 + \frac{1}{64}$.
2) when you square, you run the risk of introducing "redundant roots". This is because when you solve by squaring, you're really solving $2x = \pm\sqrt{x+3}$. So put your solutions back into the original to see which one(s) satisfy the original equation, and discard the rest. This applies whenever you raise both sides of an equation to any even power.
A: You made a mistake when completing the square.
$$x^2-\frac{1}{4}x = \frac{3}{4} \color{red}{\implies\left(x-\frac{1}{2}\right)^2 = 1}$$
This is easy to spot since $(a\pm b)^2 = a^2\pm2ab+b^2$, which means the coefficient of the linear term becomes $-2\left(\frac{1}{2}\right) = -1 \color{red}{\neq -\frac{1}{4}}$. This means something isn’t correct...
Note that the equation is rewritten such that $a = 1$, so you need to add $\left(\frac{b}{2}\right)^2$ to both sides and factor. (In other words, divide the coefficient of the linear term $x$ by $2$ and square the result, which will then be added to both sides.)
$$b = -\frac{1}{4} \implies \left(\frac{b}{2}\right)^2 \implies \frac{1}{64}$$
Which gets
$$x^2-\frac{1}{4}x+\color{blue}{\frac{1}{64}} = \frac{3}{4}+\color{blue}{\frac{1}{64}}$$
Factoring the perfect square trinomial yields
$$\left(x-\frac{1}{8}\right)^2 = \frac{49}{64}$$
And you can probably take it on from here.
Edit: As it has been noted in the other answers (should have clarified this as well), squaring introduces the possibility of extraneous solutions, so always check your solutions by plugging in the values obtained in the original equation. By squaring, you’re solving
$$4x^2 = x+3$$
which is actually
$$2x = \color{blue}{\pm}\sqrt{x+3}$$
so your negative solution will satisfy this new equation but not the original one, since that one is
$$2x = \sqrt{x+3}$$
with no $\pm$.
A: $$\begin{equation}
4x^2 - x -3 = 0 \\
(4x + 3)(x - 1) = 0 \\
x = -\frac34 , 1
\end{equation}$$
A: From 
$$x^2-\frac{1}{4}x=\frac{3}{4}$$ to $$\left(x-\frac{1}{2} \right)^2=1$$ you have not completed the square correctly. 
It should instead be 
$$\left(x-\frac{1}{8} \right)^2-\frac{1}{64}=\frac{3}{4}$$
Additionally please note that, if we were to proceed with your original solution as 'correct', one of your solutions does in fact not work. When we originally square both sides we have, in a sense, 'modified' the question -- allowing for negative solutions for $x$. Your original solution of $x=-\frac{1}{2}$ does not satisfy the original equation - we must be mindful to check our solutions in these situations. 
A: $\require{cancel}$Additional details in $\color{blue}{blue}$.  Important detail in $\color{green}{green}$.  Mistakes in $\color{red}{\cancel{\text{canceled red}}}$. Corrections in $\color{purple}{purple}$.
$\begin{equation}
\color{blue}{2x = \sqrt{x+3}}\color{green}{\ge 0}\\
\color{blue}{4x^2 = x+3}\color{green}{\text{!AND!} x\ge 0}\\
4x^2 - x -3 = 0 \\
x^2 - \frac14 x - \frac34 = 0 \\
x^2 - \frac14x = \frac34 \\
\color{blue}{x^2 -2\cdot\frac 18=\frac 34}\\
\color{blue}{x^2 -2\cdot\frac 18 +(\frac 18)^2=\frac 34+\frac 1{64}}\\
\color{red}{\cancel{(x - \frac12 )^2 = 1}}\color{purple}{(x - \frac18)^2 = \frac {49}{64}} \\
\color{blue}{x-\frac 18=\pm \frac 78}\\
\color{red}{\cancel{x = \frac32 , -\frac12}}\color{purple}{x = 1 , -\frac34}\color{green}{\text{!AND!} x\ge 0}\\
\color{purple}{x = 1}\\
\end{equation}$
