You can put this solution on YOUR website! For the most part, you can treat i's just like x's (it's only when we get to i^2 that we have to do anything differently).
So we start by using FOIL to get:
The difference now comes in that i^2 term at the end. Since i is the imaginary number defined by then so whenever you see an i^2 term, replace it with a negative 1: