# Linear Algebra/Topic: Cramer's Rule/Solutions

Jump to navigation Jump to search

## Solutions

Problem 1

Use Cramer's Rule to solve each for each of the variables.

1. ${\begin{array}{*{2}{rc}r}x&-&y&=&4\\-x&+&2y&=&-7\end{array}}$ 2. ${\begin{array}{*{2}{rc}r}-2x&+&y&=&-2\\x&-&2y&=&-2\end{array}}$ Answer
1. $x=1$ , $y=-3$ 2. $x=-2$ , $y=-2$ Problem 2

Use Cramer's Rule to solve this system for $z$ .

${\begin{array}{*{4}{rc}r}2x&+&y&+&z&=&1\\3x&&&+&z&=&4\\x&-&y&-&z&=&2\end{array}}$ Answer

$z=1$ Problem 3

Prove Cramer's Rule.

Answer

Determinants are unchanged by pivots, including column pivots, so $\det(B_{i})=\det({\vec {a}}_{1},\dots ,x_{1}{\vec {a}}_{1}+\dots +x_{i}{\vec {a}}_{i}+\dots +x_{n}{\vec {a}}_{n},\dots ,{\vec {a}}_{n})$ is equal to $\det({\vec {a}}_{1},\dots ,x_{i}{\vec {a}}_{i},\dots ,{\vec {a}}_{n})$ (use the operation of taking $-x_{1}$ times the first column and adding it to the $i$ -th column, etc.). That is equal to $x_{i}\cdot \det({\vec {a}}_{1},\dots ,{\vec {a}}_{i},\dots ,{\vec {a}}_{n})=x_{i}\cdot \det(A)$ , as required.

Problem 4

Suppose that a linear system has as many equations as unknowns, that all of its coefficients and constants are integers, and that its matrix of coefficients has determinant $1$ . Prove that the entries in the solution are all integers. (Remark. This is often used to invent linear systems for exercises. If an instructor makes the linear system with this property then the solution is not some disagreeable fraction.)

Answer

Because the determinant of $A$ is nonzero, Cramer's Rule applies and shows that $x_{i}=\left|B_{i}\right|/1$ . Since $B_{i}$ is a matrix of integers, its determinant is an integer.

Problem 5

Use Cramer's Rule to give a formula for the solution of a two equations/two unknowns linear system.

Answer

The solution of

${\begin{array}{*{2}{rc}r}ax&+by&=&e\\cx&+dy&=&f\end{array}}$ is

$x={\frac {ed-fb}{ad-bc}}\qquad y={\frac {af-ec}{ad-bc}}$ provided of course that the denominators are not zero.

Problem 6

Can Cramer's Rule tell the difference between a system with no solutions and one with infinitely many?

Answer

Of course, singular systems have $\left|A\right|$ equal to zero, but the infinitely many solutions case is characterized by the fact that all of the $\left|B_{i}\right|$ are zero as well.

Problem 7

The first picture in this Topic (the one that doesn't use determinants) shows a unique solution case. Produce a similar picture for the case of infintely many solutions, and the case of no solutions.

Answer

We can consider the two nonsingular cases together with this system

${\begin{array}{*{2}{rc}r}x_{1}&+&2x_{2}&=&6\\x_{1}&+&2x_{2}&=&c\end{array}}$ where $c=6$ of course yields infinitely many solutions, and any other value for $c$ yields no solutions. The corresponding vector equation

$x_{1}\cdot {\begin{pmatrix}1\\1\end{pmatrix}}+x_{2}\cdot {\begin{pmatrix}2\\2\end{pmatrix}}={\begin{pmatrix}6\\c\end{pmatrix}}$ gives a picture of two overlapping vectors. Both lie on the line $y=x$ . In the $c=6$ case the vector on the right side also lies on the line $y=x$ but in any other case it does not.