Complete the square (a≠1) (#290)

Complete the square (a≠1) (#290)

Rewrite ax2+bx+cax^2+bx+c as a(x+p)2+qa(x+p)^2+q.