15Week 50
15.1 Readings for this week's exercises
Read sections 13.2, 13.4, and 13.6 in the textbook.15.2 Notes
The transpose
Transposition is an operation that swaps rows and columns of a matix. The result of transposing
is called the transpose of , and is written (or ).Note: For non-quadratic matrices and have different dimensions.
The determinant
The denominator in the solution for and is composed entirely of elements from .
It is called 's determinant, and must be If the system has exactly one solution. If there are either 0 or many solutions.
Cramer's rule
The numerators in the solutions for and can be written as determinants:
This is Cramer's rule for 2 equations with 2 unknowns ().
The inverse matrix
The inverse matrix of is written and is defined by
Only quadratic matrices have an inverse, and only if
We write a system of equations with unknowns as the matrix equation:
If we know the inverse matrix of then we can solve the equation asThis is the solution by matrix inversion. Then, we can find the inverse of a matrix:Let
If , then
Note: we can find the inverse of a matrix or higher, but it is more complicated.
15.3 Problems
Find the transpose of the following matrices:
, , and
Show that the matrices
and
are both symmetric.
Denmark, Norway and Sweden have a significant trade with each other. All countries buy goods and services from each other (import) and sell goods and services to each other (export).Their trade can be expressed in terms of a matrix , where
Here, quantifies how much country exports to country in billions of kr. For example, if , then country 1 exports goods and services worth 5 billion kr to country 3.
- What are the values of the diagonal elements (where ) in ?
- Is it a fair assumption to make that is symmetric? Explain your answer.
- The minister of trade in country 1 requests a column vector with three elements where element number indicates the total value of the trade between country 1 and country (both import and export).
Which of the expressions below will result in such a vector? Explain your answer.
Find the value of the determinant:
Find the value of the determinant:
Consider the following three systems of two equations with two unknowns:
- Write each of the three systems of equations in matrix form .
- Calculate for each of the three systems of equations.
- Indicate which of the plots below corresponds to each of the three systems of equations.
- How many solutions are there to each of the three systems of equations?
Use Cramer's rule to solve the system of equations, if possible:
Use Cramer's rule to solve the system of equations, if possible:
(Previous exam problem)
Let and be parameters. Use Cramer's rule to solve the following system of equations for the two unknown variables, and
:
(Previous exam problem)Three matrices , and are given by
- Show that and .
- Calculate the matrix product .
- Find the values of and , that ensure that satisfies the equation , where is the identity matrix.
A simple model to forecast the weather is based on the probability for rain or sunshine tomorrow, given knowledge of the weather today. Assume that if it rains today there is a 70% probability of rain tomorrow, and if today is sunny there is a 60% probability of sunshine tomorrow.
- Construct a matrix where the first column indicates rain today and the second culumn indicates sunhine today. The first row indicates rain tomorrow and the second row indicates sunshine tomorrow. A matrix element in is the probability that the weather tomorrow corresponds to the row, assuming that the weather today is given by the column.
Write the probabilities as a fraction or in decimal, but not in percent. A probability of 50% should be written as 1/2 or 0.5.
You can assume that the weather on a given day can be classified as either sunshine or rain. The probabilities for these two outcomes on a given day must therefore sum to 1, irrespective of whether the weather on the day before was sunny or rainy.Construct .Your answer: It is a
- The weather today can be described as a column vector, , which is one of:
Explain why can be interpreted as a vector indicating the probability of the weather tomorrow.
Calculate , assuming today is a rainy day.Your answer: It is a
- Which expression results in a column vector where the elements are the probabilities of rain and sunshine, respectively, the day after tomorrow, when is the vector indicating observed the weather today?
Choose among the following options:
- Use matrix multiplication to calculate the vector expressing the probability of the weather the day after tomorrow, assuming that it rains today. The calculation may be easier if you write the matrix elements as fractions, i.e., write, e.g., instead of 0.5.
Calculate the matrix product identified above, assuming rain today.Your answer: It is a
- What is the probability of sunshine the day after tomorrow, assuming that it is raining today?
Use a fraction or decimal number in your answer.Your answer: It is a
A Danish company transports products and materials back and forth between a factory in Denmark and a factory in Southern Europe. The goods must be quality checked somewhere in Germany as part of the transit between Denmark and Southern Europe.The factory in Denmark can be placed either in Vejle og in Esbjerg. The goods must be quality controlled in either Hamburg, Frankfurt or Berlin. The factory in Southern Europe can be placed either in Bilbao, Toulouse, Milan or Porto.The company wants to place the factories in such a way that the number of usable freight train connections between the cities is as high as possible (given a stop in one the German cities).The number of train connections between the Danish cities and the German cities is represented by the matrix , given by:
For example there are train connections between Esbjerg and Frankfurt, but none between Esbjerg and Berlin.In a similar way the matrix represents the train connections between the German and Southern European cities:
The total number of possible train connections between the Danish and Southern European cities are now given by the elements of the matrix . is a matrix given by:
For example, there are 5 ways to transport goods between Esbjerg and Porto.
- Insert the missing matrix elements in
- Where does the company place its two factories?
- What is the minimum number of train connections between Frankfurt and Milan that makes Vejle and Milan the optimal locations for the two factories?
Show that
Let . Find so that .
Your answer: It is a
Find the inverse of the matrix, if it exists:
Find the inverse of the matrix, if it exists:
Solve the linear system by using the inverse matrix:
Solve the linear system by using the inverse matrix:
(Previous exam problem)Consider the following system of equations:
- Determine A, x, and b, so that the system of equations can be written in matrix form as: (Note that you have answered this sub-problem in exercise 14.8).
- Compute CA and AD, where and (Note that you have answered this sub-problem in exercise 14.8).
- Find the scalar so that (Hint: use that ).
- Find the vector x that is a solution to the matrix equation
(Previous exam problem)A vector and two matrices and are given by
where the elements in are real variables and the elements in are real constants.
- Find the inverse matrix of .
- Calculate , where is the transpose of .
- Assume that is symmetric and determine (i.e. all elements in ), so that