Ответ:

\(\frac14a^2=\left(\frac12a\right)^2\), \(b^2=b^2\), а \(2\cdot\frac12a\cdot b=ab\).

Ответ: \(\left(\frac12a+b\right)^2\).