Now suppose we wanted to use a
matrix to encode a message, then instead of dividing the letters into groups of two, we would divide them into groups of three.
Using the matrix
, encode the message: ATTACK NOW!
We divide the letters of the message into groups of three.
ATT ACK –NO W––
Note that since the single letter "W" was left over on the end, we added two spaces to make it into a triplet.
Now we assign the numbers their corresponding letters from the table, and convert each triplet of numbers into
matrices. We get
So far we have,
We multiply, on the left, each matrix of our message by the matrix B. For example,
By multiplying each of the matrices in
( III ) by the matrix B, we get the desired coded message as follows:
If we need to decode this message, we simply multiply the coded message by
, and associate the numbers with the corresponding letters of the alphabet.
Divide the letters of the message into groups of two or three.
Convert each group into a string of numbers by assigning a number to each letter of the message. Remember to assign letters to blank spaces.
Convert each group of numbers into column matrices.
Convert these column matrices into a new set of column matrices by multiplying them with a compatible square matrix of your choice that has an inverse. This new set of numbers or matrices represents the coded message.
To decode a message
Take the string of coded numbers and multiply it by the inverse of the matrix that was used to encode the message.
Associate the numbers with their corresponding letters.
In the 1930's, Wassily Leontief used matrices to model economic systems. His models, often referred to as the input-output models, divide the economy into sectors where each sector produces goods and services not only for itself but also for other sectors. These sectors are dependent on each other and the total input always equals the total output. In 1973, he won the Nobel Prize in Economics for his work in this field. In this section we look at both the closed and the open models that he developed.
The closed model
As an example of the closed model, we look at a very simple economy, where there are only three sectors: food, shelter, and clothing.
We assume that in a village there is a farmer, carpenter, and a tailor, who provide the three essential goods: food, shelter, and clothing. Suppose the farmer himself consumes 40% of the food he produces, and gives 40% to the carpenter, and 20% to the tailor. Thirty percent of the carpenter's production is consumed by himself, 40% by the farmer, and 30% by the carpenter. Fifty percent of the tailor's production is used by himself, 30% by the farmer, and 20% by the tailor. Write the matrix that describes this closed model.
The table below describes the above information.
The proportion produced by the farmer
The propotion produced by the carpenter
The proportion produced by the tailor
The proportion used by the farmer
.40
.40
.30
The proportion used by the carpenter
.40
.30
.20
The proportion used by the tailor
.20
.30
.50
In a matrix form it can be written as follows.
This matrix is called
the input-output matrix . It is important that we read the matrix correctly. For example the entry
, the entry in row 2 and column 3, represents the following.
of the tailor's production is used by the carpenter.