Ответ:

  1. \(x^2+18x+81=x^2+2\cdot x\cdot9+9^2=\mathbf{(x+9)^2}\).
  2. \(16a^2-40ab+25b^2=(4a)^2-2\cdot4a\cdot5b+(5b)^2=\mathbf{(4a-5b)^2}\).