Professional Documents
Culture Documents
Baguio City
Objective
• …
• Cramer’s Rule is used if a unique solution to the system of equations exists. A course
in Linear Algebra (or Readings of references for Linear Algebra) provides the procedure
for determining a priori if a system has a unique solution or not.
• For this course (CS 132), we just assume that the system has a unique solution.
Furthermore, we consider only the case of a system of 2 equations in 2 unknowns.
Cramer’s Rule
for solving a system of two equations in two
unknowns
• General Idea
ax + by = h ! equation 1
cx + dy = k ! equation 2
a b x h
* =
c d y k
Cramer’s Rule
for solving a system of two equations in two
unknowns
• General Idea:
a b x h
* =
c d y k
ax + by h
cx + dy k
Cramer’s Rule
for solving a system of two equations in two
unknowns
• General Idea:
a b x h
* =
c d y k
• General Idea:
a b x h
* =
c d y k
h b
k d
x = -----------------------
a b
c d
Cramer’s Rule
for solving a system of two equations in two
unknowns
• General Idea:
a b x h
* =
c d y k
a h
c k
y = -----------------------
a b
c d
Value of a 2 by 2 Determinant
c d
a b
c d
Value of a 2 by 2 Determinant
Example
-3 -2
5 1
-3 -2
Cramer’s Rule
Example
2x + 3y = 12
1x – 5y = -7
Cramer’s Rule
Example
2x + 3y = 12
1x – 5y = -7
x=3, y=2
Validate the solution:
2x + 3y = 12 ? ! 2(3)+3(2) =12 ? ! 12 = 12
checked!
x - 5y = -7 ? ! (3) -5(2) = -7? ! -7 = -7 checked!
Cramer’s Rule
Example
3a + 4b = 5
2a – 3b = -4
Cramer’s Rule
Example
3a + 4b = 5
2a – 3b = -4