What is the remainder when j(x)=x4+2x3−5x2+2x+4 is divided by x+3

From the problem, we have a function :
[tex]j(x)=x^4+2x^3-5x^2+2x+4[/tex]The remainder when j(x) is divided by x + 3 is the value of the function when x = -3
x = -3 comes from :
x + 3 = 0
x = -3
Substitute x = -3 to the function,
[tex]\begin{gathered} j(-3)=(-3)^4+2(-3)^3-5(-3)^2+2(-3)+4 \\ j(-3)=81-54-45-6+4 \\ j(-3)=-20 \end{gathered}[/tex]The answer is -20