Escolar Documentos
Profissional Documentos
Cultura Documentos
Chapter 03
LINEAR ALGEBRAIC EQUATIONS
03 Linear Algebraic Equations Linear Algebraic Equations
03 Linear Algebraic Equations
Example
3X1 + 2X2 + X3 = 11
3X1 + X2 + 3X3 = 16
X1 + 2X2 + X3 = 7
03 Linear Algebraic Equations Gaussian Elimination with Backward Substitution
Elimination process
Backward
substitution
Original equations
03 Linear Algebraic Equations
Eliminate
Eliminateaa2121by
by
[[Eq. (2.2)––aa2121xxEq.
Eq.(2.2) Eq.(2.4)]
(2.4)]
Eliminate a31 Eq. (2.3) by
[ Eq. (2.3) – a31 x Eq. (2.4)]
03 Linear Algebraic Equations
Example
3X1 + 2X2 + 3X3 = 10
3X1 + X2 + 2X3 = 9
X1 + X2 + 2X3 = 5
03 Linear Algebraic Equations
03 Linear Algebraic Equations Matrix Inversion
a 11 a 12 a 13 ... a 1n x1 b1
a b
21 a 22 a 23 ... a 2 n x
2 2
a 31 a 32 a 33 ... a 3n x3 b3
=
. . .
a n1 a nn x n b n
a n2 a n3 ...
A x = B
03 Linear Algebraic Equations Solution
A x = B
A-1 A x = A-1 B
I x = A-1 B
x = A-1 B
Matlab
x = inv(A)*B
or
x = A\B
Example
x1 + 2 x2 + 3x3 = 366
03 Linear Algebraic Equations
10x1 - x2 + 2x3 = 6
-x1 + 11x2 - x3 + 3x4 = 25
2x1 - x2 + 10x3 - x4 = -11
3x2 - x3 + 8x4 = 15
03 Linear Algebraic Equations Next meeting
03 Linear Algebraic Equations Ex 02
X2 – 2X3 + X4 + 2X5 + 4X7 = -16
X1 + X2 + 2X3 – 2X4 + X5 – X6 = 14
3X1 – 2X2 – X3 + X4 + 2X5 +2X6 + 2X7 = -7
2X1 + 2X2 – 5X3 – X4 – 4X5 + 3X6 –10X7 = 1
2X1 – 2X3 – X4 + 2X5 + 3X6 + 2X7 = -6
-X1 + 2X2 + X3 – 2X4 + X6 + 2X7 = 12
-2X1 – X2 + X3 – X4 + X5 – 2X7 = -6
03 Linear Algebraic Equations Ex. 03
• Five reactors linked by pipes are shown in Fig. The rate of mass flow
through each pipe is computed as the product of flow (Q) and
concentration (c). At steady state, the mass flow into and out of each
reactor must be equal. Write mass balances for the remaining reactors
in Fig. and express the equations in matrix form. Then use MATLAB
to solve for the concentrations in each reactor.
Ex 04
The plant need former acid contained 65 % weight H2SO4, 20 %
03 Linear Algebraic Equations
Sh = K1 (Re)K2 (Sc)K3
Determine K1, K2, dan K3 form this data :
Sh Re Sc
(Sherwood) (Reynold) (Schmidt)
Find A, m, and E for the constant of reaction rate form this data:
03 Linear Algebraic Equations Ex 08
ra = k Caα Cbβ
03 Linear Algebraic Equations Ex 09
Energy supply unit need coal contained 0.61 % sulphur, 0.043 % phosphor,
and 1.8% ash. There are 4 type coal. Find the composition of coal
Type % ash
Ex 10
Xylene, styrene, toluene, and benzene is separated in distillation
03 Linear Algebraic Equations
system.
Find D1, D2, B1, B2, D, and B