I under stand the shifting but not why it will always give the right answer?
For Example:
1101
1011
X____
1101 (1101 times 1)
1101 (1101 times 1, shifted once)
0000 (1101 times 0, shifted twice)
1101 (1101 times 1, shifted thrice)
+_________________________
10001111 (binary 143)
It seems like 1011 is never even used? I appreciate all clarity on the subject thank you
$\begin{matrix} & & & & & 1&1&0&1\\ & & & &\times & \color{red}{\rm 1} & \color{purple}{\rm 0} & \color{blue}{\rm 1} & \color{green}{\rm 1} \end{matrix}$
$\begin{matrix} & & & & 1 & 1 & 0 & 1 & (1101 \times \color{green}{\rm 1}) \\ ~ & & & 1 & 1 & 0 & 1 & & (1101 \times \color{blue}{\rm 1} ~\text{shifted once})\\ ~ & & 0 & 0 & 0 & 0 & & & (1101 \times \color{purple}{\rm 0} ~\text{shifted twice})\\ + & 1& 1& 0 & 1 & & & & (1101 \times \color{red}{\rm 1} ~\text{shifted thrice}) \end{matrix}$
Then add in the usual way the result of 1113111, but the "3" needs to be converted to "11", making it 1121111, the "2" needs to be converted to "10", 1201111, another carry over as we convert this "2" into a "10", 2001111, and one final carryover to have the final answer of 10001111.
This works because the number "1011" is equal to the number "1000 + 000 + 10 + 1".
Since $(a+b)\cdot x = a\cdot x + b\cdot x$, we often think of breaking down multiplication into smaller easier to work with steps. In this case, having it so that every number we multiply by in the smaller steps has only a single nonzero digit.