Solving x(a-x)=b^2

A construction used for solving [math]x(a-x)=b^2[/math], where [math]AB=a[/math] and [math]PE=b[/math]. Prove that [math]QB[/math] is the desired length [math]x[/math].