Revision as of 12:58, 17 September 2008 by Kschrems (Talk)

Application of Linearity

Part 1

All Bob has to do to decrypt his message is:
1. Take the "message" vector and divide it into columns with three rows, such that the first, second, and third elements are in the first column, the fourth, fifth, and sixth elements are in the second column, etc.
2. Multiply the inverse of the "special" matrix that she sent him with each segment of the message vector.
3. Combine all the segments in the correct order
4. Convert the numbers back to letters using Alice's system such that A=1, B=2...

That's it!

Part 2

Eve should be able to figure out the message without knowing the "secret" matrix by using linearity properties.

$ \,\ a*\mathbf{x_1} + b*\mathbf{x_2} = A*\mathbf{y_1} + B*\mathbf{y_2} $


She can take the separate segments and solve for the constants $ a, b, A, $ and $ B $. This should tell us what the system does on a basis.

(Of course, it would be easier if she had the "secret" matrix)

Part 3

We can also solve the system quicker by finding the inverse of the "secret" matrix.

In order to find that, we multiply the encrypted vector matrix with the inverse of the message matrix.

$ \begin{bmatrix} 2 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 3 \end{bmatrix} \cdot \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 4 & 0 & 1 \end{bmatrix} $ -1


Matlab will tell us that the resultant matrix, the "secret" matrix, is:
$ \begin{bmatrix} -\frac{2}{3} & 0 & \frac{2}{3} \\ 0 & 1 & 0 \\ 4 & 0 & -1 \\ \end{bmatrix} $


Now, we take the inverse of the "secret" matrix and multiply it by the (column) vector in order to find the secret code:

The inverse of the "secret" matrix:
$ \begin{bmatrix} \frac{1}{2} & 0 & \frac{1}{3} \\ 0 & 1 & 0 \\ 2 & 0 & \frac{1}{3} \\ \end{bmatrix} $



$ \begin{bmatrix} \frac{1}{2} & 0 & \frac{1}{3} \\ 0 & 1 & 0 \\ 2 & 0 & \frac{1}{3} \\ \end{bmatrix} * \begin{bmatrix} 2\\ 23\\ 3 \\ \end{bmatrix} = \begin{bmatrix} 2\\ 23\\ 5\\ \end{bmatrix} $



The encrypted message is: <B, W, E>... which is actually not really a message, just a jumble of letters...

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett