If x+2and x-1 are the factors of x3+10x2+mx+n, then the value of m and n are respectively

Let f (x) = x3+10x2 +mx + n

Since, (x + 2) and (x - 1) are factor of f (x)


So, f (-2) = 0


(-2)3 + 10 (-2)2 + m (-2) + n


32 - 2m + n = 0 (i)


f (1) = 0


(1)3 + 10 (1)2 + m (1) + n = 0


11 + m + n = 0 (ii)


(2) - (1)


3m -21 = 0


m = 7 (iii)


Using (iii) and (ii), we get


11 + 7 + n= 0


n = - 18

5