Professional Documents
Culture Documents
Math 204 PDF
Math 204 PDF
Ribal Alameh
+961 71311998
Hamra
Bliss Str
Blue Bldg, 7th Flr
+961 1 379372
+961 71666544
info@learninghublb.com
Page |1
Table of Contents
6. Matrix Algebra: .......................................................................................................................... 2
❖ An m by n matrix: ............................................................................................................. 2
❖ Types of matrices:.............................................................................................................. 2
❖ Two equal matrices: .......................................................................................................... 3
❖ Transpose: .......................................................................................................................... 3
❖ Addition/ Subtraction: ...................................................................................................... 3
❖ Scalar Multiplication: ....................................................................................................... 3
❖ Matrix Multiplication: 𝑨𝑩 = 𝑪 ...................................................................................... 4
❖ Augmented Matrix: ........................................................................................................... 4
❖ Determinant: ...................................................................................................................... 5
❖ Cofactor Matrix: ................................................................................................................ 5
❖ Solving a System Using Cramer’s Rule ........................................................................... 5
❖ Properties: .......................................................................................................................... 5
❖ Inverse: ............................................................................................................................... 6
❖ Solving a System Using the Inverse: ................................................................................ 6
❖ Row Operations: ................................................................................................................ 6
8. Counting, Permutation and Combination: ................................................................................ 7
❖ Tree Diagram:.................................................................................................................... 7
❖ Experiments: ...................................................................................................................... 7
❖ Factorial: ............................................................................................................................ 8
❖ Permutation: ...................................................................................................................... 8
❖ Combination: ..................................................................................................................... 8
❖ Permutation with Possible Repetition: ............................................................................ 9
❖ Sample Space and Event of Sample Space: ..................................................................... 9
RIBAL ALAMEH
+961 71311998
Page |2
6. Matrix Algebra:
❖ An m by n matrix:
➢ Number of row m
➢ Number of columns n
❖ Types of matrices:
➢ Row vector 1𝑥𝑛
Ex: 𝐴 = (1 2 −1)
RIBAL ALAMEH
+961 71311998
Page |3
2 0 0
Ex: 𝐷 = (0 0 0)
0 0 0
➢ Identity matrix
0, 𝑖 ≠ 𝑗
▪ 𝑎𝑖𝑗 = {
1, 𝑖 = 𝑗
1 0 ⋯ 0
0 1 ⋱ ⋮
𝐼𝑛 = ( )
⋮ ⋱ ⋱ 0
0 ⋯ 0 1
1 0 0
Ex: 𝐼3 = (0 1 0)
0 0 1
❖ Transpose:
➢ The transpose of a matrix 𝐴 = (𝑎𝑖𝑗 ) of size 𝑚𝑥𝑛 is a matrix denoted by 𝐴𝑇 = (𝑎𝑗𝑖 )
of size 𝑛𝑥𝑚 whose entries can be obtained by switching the rows with the columns.
1 0
1 2 −1 𝑇
Ex: 𝐴 = ( ) 𝐴 = ( 2 1)
0 1 3
−1 3
➢ Properties of transpose:
▪ (𝐴𝑇 )𝑇 = 𝐴
▪ 𝐼𝑛𝑇 = 𝐼𝑛
▪ 𝐿𝑇 = 𝑈
▪ 𝑈𝑇 = 𝐿
➢ Symmetric: A matrix is said to be symmetric if 𝐴𝑇 = 𝐴
❖ Addition/ Subtraction:
➢ Should have same size & 𝐴 = (𝑎𝑖𝑗 ), 𝐵 = (𝑏𝑖𝑗 ) → 𝐴 ± 𝐵 = (𝑎𝑖𝑗 ± 𝑏𝑖𝑗 )
➢ 𝐴+𝐵 =𝐵+𝐴
➢ 𝐴 − 𝐵 = −(𝐵 − 𝐴)
➢ 𝐴+𝐵+𝐶 =𝐵+𝐶+𝐴 =𝐶+𝐵+𝐴 = ⋯
➢ 𝐴 + 0𝑚𝑥𝑛 = 𝐴
➢ (𝐴 + 𝐵)𝑇 = 𝐴𝑇 + 𝐵 𝑇
❖ Scalar Multiplication:
➢ 𝑘𝐴 = (𝑘𝑎𝑖𝑗 ) 𝑘∈ℝ
➢ dim(𝑘𝐴) = dim(𝐴)
RIBAL ALAMEH
+961 71311998
Page |4
1 −2 0
Ex: 𝐴 = ( )
2 1 −1
3 1 −1
𝐵=( )
0 1 2
−5 −4 2
→ (𝐴 − 2𝐵) = ( )
2 −1 −5
➢ Properties of Scalar Multiplication:
▪ 𝑘(𝐴 + 𝐵) = 𝑘𝐴 + 𝑘𝐵
▪ (𝑙 + 𝑘)𝐴 = 𝑙𝐴 + 𝑘𝐴
▪ 0𝐴 = 0𝑚𝑥𝑛
▪ 𝑘0𝑚𝑥𝑛 = 0𝑚𝑥𝑛
▪ 𝑘𝐴𝑇 = (𝑘𝐴)𝑇
❖ Matrix Multiplication: 𝑨𝑩 = 𝑪
➢ 𝐴 = (𝑎𝑖𝑗 ) with size 𝑚𝑥𝑛, 𝐵 = (𝑏𝑖𝑗 ) with size 𝑛𝑥𝑝
➢ Number of columns of A should be equal to the number of rows of B
➢ Size of resulting matrix 𝐶 = (𝑐𝑖𝑗 ) is 𝑚𝑥𝑝
➢ 𝑐𝑖𝑗 = ∑𝑛𝑘=1 𝑎𝑖𝑘 𝑏𝑘𝑗
2 1 5
1 −1 2
Ex: 𝐴 = ( ) 𝐵 = (0 −1 1)
0 1 3
1 2 1
4 6 6
𝐶 = 𝐴𝐵 = ( ) Note: 𝐴𝐵 ≠ 𝐵𝐴
3 5 4
➢ Properties of Matrix Multiplication:
▪ 𝐴𝐵𝐶 = (𝐴𝐵)𝐶 = 𝐴(𝐵𝐶)
▪ 𝐴(𝐵 ± 𝐶) = 𝐴𝐵 ± 𝐴𝐶
▪ (𝐴 ± 𝐵)𝐶 = 𝐴𝐶 ± 𝐵𝐶
▪ 𝑘(𝐴𝐵) = 𝐴(𝑘𝐵) = (𝑘𝐴)𝐵 𝑘єℝ
▪ 𝐴𝐼𝑛 = 𝐴
▪ (𝐴𝐵)𝑇 = 𝐵 𝑇 𝐴𝑇
▪ (𝐴𝐵𝐶𝐷)𝑇 = 𝐷𝑇 𝐶 𝑇 𝐵 𝑇 𝐴𝑇
▪ 𝐴𝑚𝑥𝑛 𝑂𝑛𝑥𝑝 = 𝑂𝑚𝑥𝑝
▪ 𝐴0 = 𝐼𝑛
▪ 𝐴𝑛 = 𝐴𝐴𝐴 … 𝐴 (n times)
▪ 𝐴−𝑛 = 𝐴−1 𝐴−1 𝐴−1 … 𝐴−1 (n times)
❖ Augmented Matrix:
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 = 𝑏1
𝑎 𝑥 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥𝑛 = 𝑏2
➢ { 21 1
⋮
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 = 𝑏𝑚
RIBAL ALAMEH
+961 71311998
Page |5
❖ Determinant:
Only for square matrices where dim(𝐴) = 𝑛𝑥𝑛
➢ 𝑑𝑒𝑡 (𝐴) = |𝐴|
➢ For a 1x1 matrix 𝐴 = (𝑎) : |𝐴| = 𝑎
𝑎 𝑏
➢ 𝐴= ( ) 𝑑𝑒𝑡 (𝐴) = 𝑎𝑑 − 𝑐𝑏
𝑐 𝑑
𝑎31 𝑎22 𝑎13 + 𝑎32 𝑎23 𝑎11 + 𝑎32 𝑎21 𝑎12 =top
𝑎11 𝑎12 𝑎13 𝑎11 𝑎12
➢ (𝑎21 𝑎22 𝑎23 ) 𝑎21 𝑎22
𝑎31 𝑎32 𝑎33 𝑎31 𝑎32
𝑎11 𝑎22 𝑎32 + 𝑎12 𝑎23 𝑎31 + 𝑎13 𝑎21 𝑎32 =bottom
det(𝐴) = bottom − top (only for 3𝑥3 matrix)
❖ Cofactor Matrix:
′
➢ 𝐴𝐶 = 𝑎𝑖𝑗 = (−1)𝑖+𝑗 (𝑚𝑖𝑛𝑜𝑟)
Minor: determinant of the matrix obtained when hiding row i and column j
➢ dim(𝐴) = dim(𝐴𝑇𝑐 )
❖ Properties:
➢ If a row/column is full of zeros, then det(𝐴) = 0
➢ det(𝐴) = det(𝐴𝑇 )
➢ det(𝐴𝐵) = det(𝐴) . det(𝐵)
1
➢ det(𝐴−1 ) = det(𝐴)
𝑑1 0 ⋯ 0
0 𝑑2 ⋱ ⋮
➢ If 𝐴 is a diagonal matrix ( )
⋮ ⋱ ⋱ 0
0 ⋯ 0 𝑑𝑛
→ det(𝐴) = 𝑑1 𝑑2 ⋯ 𝑑𝑛
RIBAL ALAMEH
+961 71311998
Page |6
❖ Inverse:
➢ If det(𝐴) = 0 → 𝐴 has no inverse
➢ dim(𝐴) = dim(𝐴−1 )
➢ 𝐴𝐴−1 = 𝐴−1 𝐴 = 𝐼𝑛
1
➢ 𝐴−1 = det(𝐴) 𝑎𝑑𝑗(𝐴) where 𝑎𝑑𝑗(𝐴) = 𝐴𝑇𝑐 (adjoint)
𝑎 𝑏 1 𝑑 −𝑏
➢ 𝐴= ( ) → 𝐴−1 = det(𝐴) ( )
𝑐 𝑑 −𝑐 𝑎
𝐼𝑥 = 𝐴−1 𝑏
𝑥 = 𝐴−1 𝑏
❖ Row Operations:
➢ Switch any two rows
➢ Multiply a row by a non-zero constant
➢ Add to a row a multiple of another row
RIBAL ALAMEH
+961 71311998
Page |7
5
T
6
H 2
❖ Experiments:
➢ Toss a coin 100 times:
▪ How many outcomes are there?
#of outcomes = 2100
➢ N experiments:
▪ N experiments with 𝑛1 , 𝑛2 , … 𝑛𝑁 outcomes for experiments 1,2, … , 𝑁
respectively
#of outcomes = 𝑛1 𝑥𝑛2 𝑥 … 𝑥𝑛𝑁
➢ 26 letters in the alphabet:
▪ 5 vowels (a e i o u) and y is not a vowel
➢ 52 cards in a deck
Deck of
Cards
52 Cards
Red Black
26 Cards 26 Cards
RIBAL ALAMEH
+961 71311998
Page |8
❖ Factorial:
➢ 𝑛! = 𝑛(𝑛 − 1)(𝑛 − 2) … 3𝑥2𝑥1
= 𝑛(𝑛 − 1)!
= 𝑛(𝑛 − 1)(𝑛 − 2)!
➢ 1! = 1
➢ 0! = 1
❖ Permutation:
➢ Arrangement of 𝑛 objects (all ≠, no repeated objects) in a specific order.
𝑛!
▪ 𝑛𝑃𝑟 = (𝑛−𝑟)! (𝑟 ≤ 𝑛) (𝑛 − 𝑟)! ≠ 𝑛! − 𝑟!
▪ 𝑛𝑃𝑛 = 𝑛!
𝑛𝑃𝑛 corresponds to all ≠ ways that you can arrange and place n objects in n
places.
Ex: How many ≠ 3-digit numbers can you make with the cards 1,2 and 3?
𝟏 𝟐 𝟑
123,132,231,213,321,312
Ex: Stephany wants to create a password using all 8 letters of her name. In
how many ways can she do so:
a- If she uses all 8 letters?
b- If she uses only 3 letters?
c- If she uses only 5 letters?
a- 8!
b- 8𝑃3
c- 8𝑃5
❖ Combination:
➢ Arrangement of n objects (all ≠, no repeated objects) but order is not important.
𝑛! 𝑛 𝑛𝑃
▪ 𝑛𝐶𝑟 = (𝑛−𝑟)!𝑟! (𝑟 ≤ 𝑛) 𝑛𝐶𝑟 = ( ) = 𝑟!𝑟
𝑟
▪ 𝑛𝐶𝑛 = 1
If we take n objects (all n of them) and the order is not respected, it will be
𝑛𝐶𝑛
Ex: The basketball team is made of 12 players. In a match, only 5 of them can
play. In how many ways can the players be picked?
12!
12𝐶5 = 5!7! → expected answer in the exam
RIBAL ALAMEH
+961 71311998
Page |9
Ex: Rami wants to eat 3 ≠ biscuits. If he has a box of BISCOTTA and a box
of Gandour and a box of Chocoprince and a box of Petitcolier and a box of
Unica, in how many ways can he pick his biscuits?
❖ Compliment of an event: 𝐴
➢ The complement of an event 𝐴 is denoted by 𝐴′ 𝑜𝑟 𝐴 𝐴
❖ Union and Intersection:
𝑆
➢ Union: 𝐴⋃𝐵
▪ The union of A and B is the collection of all elements present in either A, B,
or both sets.
𝐴 𝐵
𝑆
➢ Intersection: 𝐴 ∩ 𝐵
▪ The intersect of A and B is the collection of all common elements between A
and B (belonging to both A and B)
𝐴 𝐵
𝑆
RIBAL ALAMEH
+961 71311998
P a g e | 10
❖ Properties:
➢ 𝐴∪𝐴 =𝑆
➢ 𝐴∩𝐴 =∅
➢ Mutually Exclusive
▪ 𝐴∩𝐵 =∅
𝐴 𝐵
𝑆
➢ Collectively Exhaustive
▪ 𝐴∪𝐵∪𝐶 =𝑆
𝐴
𝐵
𝐶 𝑆
➢ 𝐵 is a subset of 𝐴:
▪ 𝐵⊂𝐴
𝐴
𝐵
𝑆
➢ 𝐴∩𝐵 =𝐴∪𝐵
➢ 𝐴∪𝐵 =𝐴∩𝐵
➢ 𝐴∩𝐵 =𝐴−𝐴∩𝐵
❖ Probability
➢ 0 ≤ 𝑃(𝐸) ≤ 1
➢ If 𝑃(𝐸) = 0 → 𝐸 = ∅
➢ If 𝑃(𝐸) = 1 → 𝐸 = 𝑆
➢ 𝑃(𝐸) + 𝑃(𝐸) = 1
➢ 𝑃(𝐸) = 1 − 𝑃(𝐸)
➢ 𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵)
➢ Mutually Exclusive Probability:
▪ 𝑃(𝐴 ∩ 𝐵) = 𝑃(∅) = 0 → 𝑃(𝐴 ∪ 𝐵) = 𝑃(𝐴) + 𝑃(𝐵)
Ex:
If we select one card from a deck of 52 cards, what is the probability of selecting:
a) It is an even number
b) It is not a king
RIBAL ALAMEH
+961 71311998
P a g e | 11
c) It is a heart
d) It is a jack of hearts
e) It is a jack or a heart
Ex:
If we roll a fair die:
a) Sample Space: 𝑆 = {1,2,3,4,5,6}
1
b) 𝑃(1) = 𝑃(2) = 𝑃(3) = 𝑃(4) = 𝑃(5) = 𝑃(6) = 6
c) 𝑃(1) + 𝑃(2) + 𝑃(3) + 𝑃(4) + 𝑃(5) + 𝑃(6) = 1
If we roll a bias die:
𝑃(1) = 0.30
𝑃(2) = 0.25
𝑃(3) = 0.10
𝑃(4) = 0.15
a) What is the probability of getting a 5 or 6?
b) If 𝑃(5) = 3 × 𝑃(6), what is the probability of getting a 6?
❖ Conditional Probability:
➢ 𝑃(𝐴|𝐵): the probability of A occurring, knowing that B has already occurred.
𝑃(𝐴∩𝐵) 𝑃(𝐵∩𝐴)
➢ 𝑃(𝐴|𝐵) = and 𝑃(𝐵|𝐴) =
𝑃(𝐵) 𝑃(𝐴)
Ex:
• If we select 2 cards, 1 after the other without replacing, what is the probability of
getting the second card a queen knowing that the first was a king?
• If we select 3 cards, what is the probability that the third is a queen knowing that the
first and second where queens.
• What is the probability of selecting 3 cards without replacing and all of them are
queens?
❖ Independent Events:
➢ Two events are said to be independent if the occurrence of one does not affect the
probability of the other.
➢ 𝑃(𝐴 ∩ 𝐵) = 𝑃(𝐴) × 𝑃(𝐵)
➢ 𝑃(𝐴|𝐵) = 𝑃(𝐴) and 𝑃(𝐵|𝐴) = 𝑃(𝐵)
Ex:
We are taking two cards with replacements.
What is the probability of selecting the second card a king knowing that the first was a
king?
Ex:
In a class of 150 students:
RIBAL ALAMEH
+961 71311998
P a g e | 12
Ex:
The probability that Ismail is going to Faraiya this weekend is 0.8.
If Ismail goes to Faraiya this weekend, the probability of him returning on Monday in
order to study for math is 0.25. If he does not go to Faraiya this weekend, the
probability of him not studying for the math exam on Monday is 0.6.
a) What is the probability of Ismail studying for the exam on Monday?
b) What is the probability he didn’t go to Faraiya, knowing that he studied for the
math exam on Monday?
c) What is the probability that he goes to Faraiya and studies for the math exam on
Monday?
RIBAL ALAMEH
+961 71311998
P a g e | 13
❖ Binomial Distribution:
❖ Normal Distribution:
➢ Characteristics of Normal Distribution:
▪ Bell shaped
▪ The mean is located at the peak
▪ The distribution is symmetric therefore 50% of the data is above the mean and
50% is below the mean
▪ Asymptotic: it gets closer and closer to the x-axis without ever touching it.
Graph
➢ Standard Normal Distribution (SND):
The standard normal distribution is a particular ND where the mean is equal to 0
and the standard deviation is 1: 𝜇 = 0 and 𝜎 = 1
➢ The SND is called the z-distribution
To pass from ND to SND:
𝑥−𝜇
𝑧=
𝜎
To pass from SND to ND:
𝑥 = 𝜇 + 𝑧𝜎
➢ Z can be negative:
P(𝑎 < 𝑥 < 𝑏) =area under the curve between the values a and b
Graph
Examples:
P (0 < 𝑧 < 1.25)=A (1.25) =0.3944
P (0 < 𝑧 < 1.3) =A (1.3) =0.4032
P (0 < 𝑧 < 0.1) =A (0.1) =0.0398
P (−2.72 < 𝑧 < 0) =A (2.72) =0.4967
P (−1.05 < 𝑧 < 0) =A (1.05) =0.3531
P (−3.72 < 𝑧 < 0) =A (3.72) =0.5
❖ Derivatives:
❖ Derivatives using logarithms:
❖ Partial Derivatives:
❖ Maximum, Minimum, and Saddle point:
❖ Integration:
RIBAL ALAMEH
+961 71311998