Ответ:

\((4p+\frac12q-u-3)^2=16p^2+\frac14q^2+u^2+9+4pq-8pu-24p-qu-3q+6u\).