cramer rule (control systems dae 32103)

2
5.2 Cramer’s Rule Introduction Cramer’s rule is a method for solving linear simultaneous equations. It makes use of determinants and so a knowledge of these is necessary before proceeding. 1. Cramer’s Rule - two equations If we are given a pair of simultaneous equations a 1 x + b 1 y = d 1 a 2 x + b 2 y = d 2 then x, and y can be found from x = d 1 b 1 d 2 b 2 a 1 b 1 a 2 b 2 y = a 1 d 1 a 2 d 2 a 1 b 1 a 2 b 2 Example Solve the equations 3x +4y = 14 2x 3y = 11 Solution Using Cramer’s rule we can write the solution as the ratio of two determinants. x = 14 4 11 3 3 4 2 3 = 2 1 =2, y = 3 14 2 11 3 4 2 3 = 5 1 = 5 The solution of the simultaneous equations is then x = 2, y = 5. 5.2.1 copyright c Pearson Education Limited, 2000

Upload: jay-leong

Post on 20-Jan-2015

37 views

Category:

Engineering


0 download

DESCRIPTION

Control Systems DAE 32103

TRANSCRIPT

Page 1: Cramer rule (Control Systems DAE 32103)

✌5.2

Cramer’s RuleIntroductionCramer’s rule is a method for solving linear simultaneous equations. It makes use of determinantsand so a knowledge of these is necessary before proceeding.

1. Cramer’s Rule - two equationsIf we are given a pair of simultaneous equations

a1x + b1y = d1

a2x + b2y = d2

then x, and y can be found from

x =

∣∣∣∣∣

d1 b1

d2 b2

∣∣∣∣∣

∣∣∣∣∣

a1 b1

a2 b2

∣∣∣∣∣

y =

∣∣∣∣∣

a1 d1

a2 d2

∣∣∣∣∣

∣∣∣∣∣

a1 b1

a2 b2

∣∣∣∣∣

ExampleSolve the equations

3x + 4y = −14

−2x− 3y = 11

SolutionUsing Cramer’s rule we can write the solution as the ratio of two determinants.

x =

∣∣∣∣∣

−14 411 −3

∣∣∣∣∣

∣∣∣∣∣

3 4−2 −3

∣∣∣∣∣

=−2

−1= 2, y =

∣∣∣∣∣

3 −14−2 11

∣∣∣∣∣

∣∣∣∣∣

3 4−2 −3

∣∣∣∣∣

=5

−1= −5

The solution of the simultaneous equations is then x = 2, y = −5.

5.2.1 copyright c© Pearson Education Limited, 2000

Page 2: Cramer rule (Control Systems DAE 32103)

2. Cramer’s rule - three equationsFor the case of three equations in three unknowns: If

a1x + b1y + c1z = d1

a2x + b2y + c2z = d2

a3x + b3y + c3z = d3

then x, y and z can be found from

x =

∣∣∣∣∣∣∣

d1 b1 c1

d2 b2 c2

d3 b3 c3

∣∣∣∣∣∣∣

∣∣∣∣∣∣∣

a1 b1 c1

a2 b2 c2

a3 b3 c3

∣∣∣∣∣∣∣

y =

∣∣∣∣∣∣∣

a1 d1 c1

a2 d2 c2

a3 d3 c3

∣∣∣∣∣∣∣

∣∣∣∣∣∣∣

a1 b1 c1

a2 b2 c2

a3 b3 c3

∣∣∣∣∣∣∣

z =

∣∣∣∣∣∣∣

a1 b1 d1

a2 b2 d2

a3 b3 d3

∣∣∣∣∣∣∣

∣∣∣∣∣∣∣∣∣

a1 b1 c1

a2 b2 c2

a3 b3 c3

∣∣∣∣∣∣∣∣∣

ExercisesUse Cramer’s rule to solve the following sets of simultaneous equations.

a)

7x + 3y = 15

−2x + 5y = −16

b)

x + 2y + 3z = 17

3x + 2y + z = 11

x− 5y + z = −5

Answersa) x = 3, y = −2. b) x = 1, y = 2, z = 4

5.2.2 copyright c© Pearson Education Limited, 2000