Home [Linear Algebra] 5.3 Cramer's Rule, Inverses, and Volumes
Post
Cancel

[Linear Algebra] 5.3 Cramer's Rule, Inverses, and Volumes

Keywords

[1] A1=CTdet(A). Then, (A1)_ij= cofactor C_ji divided by the determinant of A

[2] Cramer’s Rule computes x=A1b from xj=det(A with column j changed to b) / det(A)

[3] Area of parallelogram = |adbc| if the four corners are (0,0),(a,b),(c,d),(a+c,b+d)

[4] Volume of box = |det(A)| if the rows of A (or columns of A) give the sides of the boc

[5] The cross product w=u×v is |ijk u1u2u3 v1v2v3|. Also, v×u=(u×v). w1,w2,w3 are cofactors of row 1. Notice wTu=0 and wTv=0.

Cramer’s Rule

Cramer’s Rule solves Ax=b algebraically not by elimination. The idea is simple and makes sense.

Suppose we have a matrix A. First, we construct an identity matrix I with its first column replaced by x then its determinant is x1. Then, we multiply this matrix with A and the result becomes B1.

[ A ][x100 x210 x301]=[b1a12a13 b2a22a23 b3a32a_33]=B1 det(A)(x1)=det(B1) x1=det(B1)det(A)

Now we repeat this process for all the other xi to get the all solutions.

Cramer’s Rule

If det(A) is nonzero, then Ax=b is solved by determinants:

x1=det(B1)det(A)    x2=det(B2)det(A)      xn=det(Bn)det(A)

where the matrix Bj is the matrix A with jth column replaced by the vector b.

[Note] But Cramer’s Rule evalutes n+1 determinants and each one is the sum of n! terms, resulting in (n+1)! terms in total. It would be very inefficient to calculate this (factorial increase very quickly).

Explicit Formula for x using Cramer’s Rule

Let’s take an example of 2 by 2 matrix A. We now find the columns of A1=[x y] by solving

AA1=I

We can break down this equation for each x and y.

[ab cd][x1 x2]=[1 0] [ab cd][y1 y2]=[0 1]

Now, we need to calculate |A| and determinants for x1,x2,x3,x4.

|ab cd|  |1b 0d|  |a1 c0|  |0b 1d|  |a0 c1|

The last four determinants are d,c,b,a. Notice that they’re cofactors!.

Using the Cramer’s Rule, we get

x1=d|A|, x2=c|A|, y1=b|A|, y2=a|A|

Then,

A1=1|A||db ca|

The idea is that A1 involves the cofactors. The determinant of each Bj in Cramer’s Rule is a cofactor of A.

Formula

The i,j entry of A1 is the cofactor Cji divided by det(A):

(A1)ij=Cjidet(A)

or

A_1=CTdet(A)

where C is the cofactor matrix where the cofactors Cij go into C. The transpose of C leads to A1

Area of a Triangle

joint
Introduction to Linear Algebra, 5th edition

How do we find the area of a triangle with the corners (x1,y1),(x2,y2),(x3,y3). The best way is to use the determinants.

Area by Determinant

The triangle with corners (x1,y1),(x2,y2),(x3,y3) has A=determinant2.

A=12|x1y11 x2y21 x3y31| A=12|x1y1 x2y2|, if (x3,y3)=(0,0)

Proof

For the second case, why is the area equal to 12|x1y2x2y1|?

Consider the case when (x3,y3)=(0,0). Let’s remove the factor 12 to get the parallelogram which is made of two identical triangles.

joint
Introduction to Linear Algebra, 5th edition

This book uses an exotic proof that the area has the same properties as the determinant.

[1] When A=I, the parallelogram becomes the unit square. Its area is det(I)=I

[2] When rows are exchanged, the determinant reverses sign. The absolute value stays the same - it is the same parallelogram

[3] If row 1 is multiplied by t, the area is also multiplied by t.

joint
Introduction to Linear Algebra, 5th edition

Hence, the area satisfies the properties of the determinant.

Cross Product

The cross product is a special application for three dimensions. Consider vectors u=(u1,u2,u3) and v=(v1,v2,v3). The cross product is a vector in three dimensions denoted by u×v.

The components of cross product are 2 by 2 cofactors.

Definition

The cross product of u=(u1,u2,u3) and v=(v1,v2,v3) is a vector

u×v=|ijk u1u2u3 v1v2v3|=[u2v3u3v2 u3v1u1v3 u1v2u2v1]

This cross product u×v is perpendicular to u and v. The cross product v×u=(u×v).

Length of Cross Product

u×v=uv|sinθ|

Property 1

v×u=(u×v) becuase it reverses two rows

Its direction is perpendicular to u and v pointing “up” or “down” by the right hand rule (from u to v).

Property 2

The cross product u×v is perpendicular to u and v.

u(u×v)=u1(u2v3u3v2)+u2(u3v1u1v3)+u3(u1v2u2v1)=0

Property 3

The cross product of any vector with itself is u×u = 0. This is obvious because the determinant with two equal rows is 0.

Cross vs Dot Product Length

u×v=uv|sinθ| uv=uv|cosθ|

Area of parallelogram

The length of u×v equals the area of the parallelogram with sides u and v.

Triple Product = Determinant = Volume

Recall u×v is a vector so we can take its dot product with another vector w. This combination produces the triple product (u×v)w which is a scalar value which is equal to the volume of the u,v,w box.

(u×v)w=|w1w2w3 u1u2u3 v1v2v3|=|u1u2u3 v1v2v3 w1w2w3|

(u×v)w=0 when u,v,w lie in the same plane

The reasons are

[1] u×v is perpendicular to that plane so its dot product with w is zero.

[2] Three vectors in a plane are dependent. The matrix is singular (det=0)

[3] Zero volume when u,v,w box is squashed onto a plane

References

[1] Introduction to Linear Algebra, 5th edition

This post is licensed under CC BY 4.0 by the author.
Trending Tags