Professional Documents
Culture Documents
University of Babylon
College of Materials Engineering
Department of ceramics and building materials
Lecturer
Dr. Mohammed A'asi
Preparation
Eihab Ahmed Obaid
0
- Linear Algebra
- Organizing Information
Ex :- Factory made three cars in a day in first week & five cars
in day in second week & six cars in day in third week , the total
number of cars is :-
T=(3*7)+(5*7)+(6*7)
= 21 + 35 + 42
T = 98 cars
1
- Functions
Is the operations that occur on the any variables and have inputs
& outputs .
- Linear Functions
2- Homogeneity :- {f(c.u)=c.f(u)}
1- ( . ) = Additivity
2- (+ )= + Homogeneity
2
- Linear System
a1 x1 + a2 x2 + .. + an xn = C
b1 x1 + b2 x2 + .. + bn xn = D
- Matrix
- Types of Matrices
By the entries
1- Coefficient Matrix :- matrix that have just a coefficient of the
equations ( without the constants ) .
2- Augmented Matrix :- matrix that have the coefficient &
constants of there equations in their entries
Coefficient augmented
x+3y=0 1 3 1 3 0
x2y=4 1 -2 1 -2 4
By the results
1- Consistent : the matrix that have a solution .
a- Unique Solution Matrix :- represent a matrix of cross
vectors that have one magnitude for each variable .
b- Infinity Many Solutions :- represent a matrix have an
identical ( one over another ) vectors .
2- Inconsistent : the matrix that doesn't have solution , and
represent matrix have parallel vectors .
3
- Writing Matrix
Ans. :-
2 x = 6 y = 20 .. for apples
4 x = 8 y = 28 .. for bananas
2 6 20
4 8 28
4
Gausse Elimination
* * * * 1 * * * x=?
* * * * 0 1 * * y=?
* * * * 0 0 1 * z=?
1 * * * x=?
0 1 * * y=?
0 0 1 * z=?
* * * * 1 0 0 * x=?
* * * * 0 1 0 * y=?
* * * * 0 0 1 * z=?
1 0 0 * x=?
0 1 0 * y=?
0 0 1 * z=?
Exambles :-
1) x + 5 y = 7 , -2x7y=-5
Ans. :-
1 5 7 *2 1 5 7
-2 -7 -5 0 3 9
0*x+3*y=9 = y=3
1*x+5*y=7 x + 15 = 7
X = 7 15 x=-8
2) x - 2 y + z = 0 , 2y8z=8 , -4x+5y+9z=-9
Ans. :-
1 -2 1 0 *4
0 2 -8 8 2
-4 5 9 -9
1 -2 1 0
0 1 -4 4 *3 Forwarding
0 -3 13 -9
1 -2 1 0
0 1 -4 4
0 0 1 3
6
1 -2 1 0
0 1 -4 4
0 0 1 3 *4
1 -2 1 0
0 1 0 16 Backwarding
0 0 1 3 * -1
1 -2 0 -3
0 1 0 16 *2
0 0 1 3
1 0 0 29
0 1 0 16
0 0 1 3
x = 29
y = 16
z=3
7
3) x+2y3z=4
3xy+5z=2 find x , y , z
4x+y+2z=6
Ans. :-
1 2 -3 4 * -3 1 2 -3 4 * -4
3 -1 5 2 0 -7 14 -10
4 1 2 6 4 1 2 6
1 2 -3 4 1 2 -3 4
0 -7 14 -10 * -1 0 -7 14 -10 *-
0 -7 14 -10 0 0 0 0
1 2 -3 4
0 1 -2
0 0 0 0
z=a , a :- constant , aR
y-2a= y= + 2a
x+2( +2a)-3a=4 x+ +4a-3a=4
x=4- -a x= -a
x= -a
2x3y+2z=1 , find x , y , z
5x8y+7z=1
Ans. :-
0 1 -4 8
2 -3 2 1
5 -8 7 1
2 -3 2 1 *-
0 1 -4 8
5 -8 7 1
2 -3 2 1
0 1 -4 8 *
0 - 2 -
2 -3 2 1
0 1 -4 8
0 0 0 0x+0y+0z
9
- Matrices Multiplication
U= a1 b1 , V= x1 y1 z1
a2 b2 x2 y2 z2
2 * 2 2 * 3
must be same
Ex -1 :- u= 0 1 -1 , v= 3 , find u * v
1 1
- 0 0
2 2
5
Ans. :-
( 0 + 0 + (-5) ) = -5
3 5
(- +0+ ) 1
2 2
10
Ex -2:- u= 1 2 , v= 2 6 , find u * v
0 1 4 8
Ans :-
u*v= 1 2 * 2 6
0 1 4 8
= (2+8) ( 6 + 16 )
(0+4) ( 0+ 8)
= 10 22
4 8
Ex -3:- u= 2 3 1 , v= 3 4 5 , find u * v
2 -7 4 1 1 4
2 1 4
Ans :-
u*v= 2 3 1 * 3 4 5
2 -7 4 1 1 4
2 1 4
= 11 12 26
7 5 -2
11
- The Matrix Detour
This term means using the matrix with the original equation
instead of the function for the same formula to facilitate the solution
process when the solution is difficult for the given function .
Ex :- ( + 2 ) f(x) = x + 1 , find f(x) .
Ans. :-
( + 2 ) [ a x2 + b x + c ] = 2 a x + b + 2 a x2 + 2 b x + 2 c
2 a x2 + ( 2 a + 2 b ) x + ( b + 2 c ) = x + 1
0
2a 0 a= a=0
2
1
2a+2b = 1 2a+2b=1 b=
2
1
B+2c 1 b+2c=1 c=
4
1 1
( +2)( x+ )=x+1
2 4
12
- Inverse of Matrix
A. ( 2 x 2 ) matrix
A-1 = * adj. ( A )
//
Where :-
A-1 :- the inverse of matrix .
For A = x1 y1
x2 y2
/A/ = ( x1 * y2 ) ( y1 * x2 )
Adj ( A ) = y2 - y1
- x2 x1
A-1 1 * y2 - y1
( x1 * y2 ) ( y1 * x2 ) - x2 x1
13
Ex :- A= 4 7 , find A-1
2 6
Ans :-
/A/ = ( 4 * 6 ) ( 7 * 2 )
= 24 - 14 = 10
Adj ( A ) = 6 -7
-2 4
A-1 1 * 6 -7
10 -2 4
6 7
= -
10 10
2 4
-
10 10
= 0.6 - 0.7
- 0.2 0.4
14
B. ( 3 x 3 ) matrix
A-1 = * adj. ( A )
//
Where :-
A-1 :- the inverse of matrix .
x1 y1 z1
For A = x2 y2 z2
x3 y3 z3
x1 y1 z1 x1 y1
/A/ = x2 y2 z2 x2 y2
x3 y3 z3 x3 y3
/A/ = n assuming
15
a1 - b1 c1
- a2 b2 - c2
a3 - b3 c3
a1 - a2 a3
adj. ( A ) = - b1 b2 - b3
c1 - c2 c3
a1 - a2 a3
A-1 = - b1 b2 - b3
c1 - c2 c3
Ex :- 1 0 -3
A= 2 -2 1 , find A-1
0 -1 3
Ans :-
A-1 = * adj. ( A )
//
16
1 0 -3 1 0
/A/ = 2 -2 1 2 -2
0 -1 3 0 -1
= [-6+0+6][01+0]
/A/ =1
-5 -6 -2
3 3 1
-6 -7 -2
-5 3 -6
adj. ( A ) = -6 3 -7
-2 1 -2
-5 3 -6 -5 3 -6
A-1 = * -6 3 -7 = -6 3 -7
-2 1 -2 -2 1 -2
17
- Vectors
[x y z] , y
- Adding Vectors z
1 3 4
0 + 2 = 2
2 6 8
- Scaling Vectors
3 12
4 x 2 = 8
6 24
- Draw Vectors
18
- Linear Combinations
Ex :-
W1 = - v1 + 2 v2
W2 = 2 v1 + v2
W3 = - v1 v2
W4 = v1 0.5 v2
19