(1-ni)(1+i)=(n+1)+(1-n)i This is an analysis of the answer, but I don't know how this formula changes, how it changes from left to right, and what rules are used

(1-ni)(1+i)=(n+1)+(1-n)i This is an analysis of the answer, but I don't know how this formula changes, how it changes from left to right, and what rules are used

(1-ni)(1+i)
=1*1-ni*1+1*i-ni*i
=1-ni+i-ni*i
=1+i-(ni+ni*i)
=(1+i)-(1+i)ni
=(1+i)(1-ni)
I can't get the result you wrote above