[tex]\displaystyle\\
\text{Metoda 1:}\\
(x - x_1)(x-x_2)=0\\
(x - 2)(x-(-3))=0\\
(x - 2)(x+3)=0\\
x^2 -2x +3x-6\\
\boxed{x^2+x-6=0} \\\\
\text{Metoda 2 (cu relatiile lui Viete):}\\
x^2 -Sx+P=0\\
S=x_1+x_2=2-3=-1\\
P=x_1x_2=2\cdot(-3)=-6\\
x^2 -(-1)x+(-6)=0\\
x^2 +1x-6=0\\
\boxed{x^2 +x-6=0}
[/tex]