Which bit don't you understand?
Incidentally substituting x=i (as well as x=0 and x=1) is quite handy too if you're happy with complex numbers. It gives you C and D and ten using the firs two equations you can also get A and B.
Specifically equating coefficients with like terms after "foil"ing, I see this in other problems and I'm not sure why its there or why it makes sense exactly.
Also, I am comfortable with imaginaries, but doesnt that needlessly make it more complicated? or from your perspective do you find it simpler by combining the i's, but what happens whenyou go back to reals when not all i's become an even power of i?
multiply and add the polynomials to get:
You need these to be equal as polynomials, so in other words, all the coefficients must be equal:
Usually when you see equations like this, you're trying to figure out which values of x make the equation true, but here you want 1, which is , to be the same polynomial as , so that they are equal for all values of x.
The rest is using these four equations and the two equations from the previous part to solve for A, B, C, and D.
Step 4 is actually unnecessary, by the way; the four equations in step 5 are all you need to solve for the four unknowns A, B, C, and D.