Examples
f(x)=x4+x3-11x2-5x+30f(x)=x4+x3−11x2−5x+30 , g(x)=2x-2g(x)=2x−2
Step 1
Replace the function designators with the actual functions in f(x)-gxf(x)−gx.
x4+x3-11x2-5x+30-(2x-2)x4+x3−11x2−5x+30−(2x−2)
Step 2
Step 2.1
Apply the distributive property.
x4+x3-11x2-5x+30-(2x)--2x4+x3−11x2−5x+30−(2x)−−2
Step 2.2
Multiply 22 by -1−1.
x4+x3-11x2-5x+30-2x--2x4+x3−11x2−5x+30−2x−−2
Step 2.3
Multiply -1−1 by -2−2.
x4+x3-11x2-5x+30-2x+2x4+x3−11x2−5x+30−2x+2
x4+x3-11x2-5x+30-2x+2x4+x3−11x2−5x+30−2x+2
Step 3
Step 3.1
Subtract 2x2x from -5x−5x.
x4+x3-11x2-7x+30+2x4+x3−11x2−7x+30+2
Step 3.2
Add 30 and 2.
x4+x3-11x2-7x+32
x4+x3-11x2-7x+32