Given the function f(x)=Kx^3-mx^2+3x+7, determine the values of k and m if the remainder is -2 when f(x) is divided by x+1 and -4 when f(x) is divided by x-1

"the remainder is -2 when f(x) is divided by x+1" --> f(-1) = -2

and similarly f(1) = -4

yielding you two equations:

f(-1) = -k - m - 3 + 7 = -2
k+m = 6

f(1) = k-m+3+7=-4
k - m = -14

solve these two equations for k and m