If (x+a) is a factor of two polynomials x^2+px+q and x^2+mx+n, then prove that : a=n- q/m-p.