The determinant of (abcd) is ad−bc. Compute it for A=(3162) and B=(3122). Which matrix is invertible, and what does the determinant tell you about its columns?

Linear algebra and optimisation, Matrix inverses
Level L2 Elementary. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can compute a 2×2 determinant and read it: zero means the columns are dependent and there is no inverse.

Key idea

For a 2×2 matrix, det⁡=ad−bc. The matrix squashes the unit square into a parallelogram whose area is ∣det⁡∣. If det⁡=0 the parallelogram is flat, the columns lie on one line (they are linearly dependent), and the matrix has no inverse. If det⁡≠0 the matrix is invertible.

Steps

  1. Compute det⁡A=3⋅2−1⋅6=0.
  2. Compute det⁡B=3⋅2−1⋅2=4.
  3. Read the results: B is invertible because det⁡B≠0. A is not, because det⁡A=0.
  4. Look at the columns of A: (3,6) is exactly 3 times (1,2). The columns point along the same line, so the matrix squashes the plane onto that line and cannot be undone. The columns of B, (3,2) and (1,2), point different ways.
  5. Say what it means for equations: Bx=b has exactly one solution. For A, a non-zero input such as (1,−3) is sent to A(1,−3)=(3−3,6−6)=(0,0), so information is lost.
  6. Area view: B maps the unit square to a parallelogram of area 4. A maps it to a flat line of area 0.

Common mistakes

How long your answer should be

About 3 minutes; two small calculations and a short explanation.

Read this

Previous in Linear algebra and optimisation: For a 2×2 matrix A=(abcd) the inverse is A−1=1ad−bc(d−b−ca) (when ad−bc≠0). How do you use it to solve 2x+y=5 and x+3y=10?
Next in Linear algebra and optimisation: How do you show that the negative log-likelihood of logistic regression is convex in the weights w?