Step-by-step explanation:
1. Make 2 parenthesis, extract x and put it in both parenthesis. The first parenthesis will have the sign of the number in the middle +5x, the second parenthesis will have the product of the multiplication of the sign of the second and third number; (+)(-) = -. Then, find 2 numbers that multiplied by each other give the third number as a result and added up or substracted give the result of the number in the middle. Here, 7 times 2 is 14 and +7 -2 = +5
[tex]x^2+5x-14=0[/tex]
[tex](x+7)(x-2)=0[/tex]
Equal both results to zero.
[tex]x+7=0\\x=-7[/tex]
[tex]x-2=0\\x=2[/tex]