| x+1 | ) | x3y+ | x2y+ | x2+ | xy+ | 2x+ | y+ | 1 |
Now I ask what do I need to multiply x by to get x3y?. The answer is x2y. I multiply x+1 by x2y and subtract.
| x2y | ||||||||
| x+1 | ) | x3y+ | x2y+ | x2+ | xy+ | 2x+ | y+ | 1 |
| -x3y | -x2y |
Now I bring down the rest of the dividend and ask what do I multiply x by to get x2? The answer is x. I multiply x+1 by x and subtract.
| x2y+ | x | |||||||
| x+1 | ) | x3y+ | x2y+ | x2+ | xy+ | 2x+ | y+ | 1 |
| -x3y | -x2y | |||||||
| x2+ | xy+ | 2x+ | y+ | 1 | ||||
| -x2 | -x |
Now I bring down the rest of the dividend and ask what do I multiply x by to get xy? The answer is y. I multiply x+1 by y and subtract.
| x2y+ | x+ | y | ||||||
| x+1 | ) | x3y+ | x2y+ | x2+ | xy+ | 2x+ | y+ | 1 |
| -x3y | -x2y | |||||||
| x2+ | xy+ | 2x+ | y+ | 1 | ||||
| -x2 | -x | |||||||
| xy+ | x+ | y+ | 1 | |||||
| -xy | -y |
When I bring down what's left of the dividend I get x+1. If I multiply x+1 by 1 I get x+1. So I multiply x+1 by 1 and subtract. This time it comes out even.
| x2y+ | x+ | y+ | 1 | |||||
| x+1 | ) | x3y+ | x2y+ | x2+ | xy+ | 2x+ | y+ | 1 |
| -x3y | -x2y | |||||||
| x2+ | xy+ | 2x+ | y+ | 1 | ||||
| -x2 | -x | |||||||
| xy+ | x+ | y+ | 1 | |||||
| -xy | -y | |||||||
| x+ | 1 | |||||||
| -x | -1 |
So, (x3y+x2y+x2+xy+2x+y+1)÷(x+1)=x2y+x+y+1.
