SlideShare a Scribd company logo
1 of 45
Linear Algebra
Group Member
FARHAN AMJAD (FA21-
BCS-005)
MUNEEB ANWAR (
FA21-BCS-008)
BILAL AHMAD (FA21-
BCS-014)
MUHAMMAD
USMAN(FA21-BCS-020)
Agenda
• System of Linear Equations
• Matrices and Types of Matrices
• Linear Combination
• Matrix Multiplication and Matrix-
Vector Product
• Partitioned Matrices and Matrix
Transformation
• Elementary Row Operations
• Row Reduced Echelon Form
(RREF) and Row Echelon Form
(REF)
• Gaussian Elimination Method and
Gauss-Jordan Reduction
System of
Linear
Equation
Number System
• Natural Number N = {1,2,3,4,5,…..}
• Whole Number W = {0,1,2,3,4,….}
• Integer Number ℤ = {0, ±1, ±2, ±3, ….}
• Rational Number Q = p/q , q≠0, p, q∈ ℤ
• Irrational Number Q’ ≠ p/q
• Real Number ℝ = Q U Q’
N ⊂ W ⊂ ℤ ⊂ Q ⊂ Q’ ⊂ ℝ
Linear Equation
A linear equation is a
mathematical expression that
represents a straight line on a
graph. It consists of variables
raised to the power of 1, and
the relationship between the
variables is such that when
plotted on a graph, it forms a
straight line.
Linear Equation
2x+y = 3
System of Linear Equation
• A system of linear equations is a group of equations where each equation
represents a straight line when graphed.
• These equations have variables (like x and y) and numbers.
• The goal is to find the values of the variables that make all the equations true
at the same time.
• Example
One Variable Two Variable Three Variable
2x=1 2x+3y=1
-x+y=2
x-2y+z=-4
2x-3y+2z=-6
2x+2y+z=5
Nature of Solution
Inconsistent
(No sol. Exist)
Nature of
Solution
No solution Infinite many Solution
0 = non-zero 0=0
EXAMPLE
Consider
x + 2y = 10…….(1)
5x + y = 14………(2)
A solution to a system of linear equations
is a pair of numbers for x and y that
makes both equations true. The solution
to the above system of linear equations
is x = 2 and y = 4. These values
for x and y make both equations true.
(Unique solution)
EXAMPLE
Consider
22x+11y=44…….(1)
14x+7y=28………(2)
Try simplifying the top equation. What do
you notice?
2x+y=4
2x+y=4
0=0 (Infinite Many solutions)
EXAMPLE
Consider
4x – y = 1…….(1)
-8x + 2y = 4………(2)
When we multiply equation (1) by 2, we
get the following result for the equation
(1) to (2):
8x – 2y = 2 … (3)
As equations (2) and (3) are similar,
adding them will result in the answer "0.“
0=non zero (no solution)
Method to Solve
Linear System
There are many methods to solve linear
systems, but we will discuss two of them:
1. Substitution method
2. Elimination method
2x+3y=11
4x-2y=2
Substitution Method:
• We can solve one of the
equations for one variable and
then substitute this expression
into the other equation.
Elimination Method:
• We can add or subtract the
equations in such a way that
one of the variables is
eliminated when we add or
subtract the equations.
Matrices
Matrices
• A matrix is a group of real or complex numbers arranged in rows and columns. If a matrix has m rows
and n columns, it's called an "m by n" matrix, written as "m × n.“
Types of Matrices
Row Matrix:
A matrix with a single row can
be represented as A = [aij]1Xn,
where i = 1 and j = 1, 2,...., n.
Types of Matrices
Column Matrix:
A matrix with a single column
can be represented as A =
[aij]mX1, where i = 1,2,….,m and
j = 1.
Types of Matrices
Square Matrix:
A matrix with a same number of
the row and column can be
represented as A = [aij]nXn, where
I,j = 1,2,….,n.
Types of Matrices
Diagonal Matrix:
A square matrix A = [aij] for which
all the terms off the main diagonal
are zero that is aij =0 for if i ≠ j is
called diagonal matrix.
Types of Matrices
Scalar Matrix:
A diagonal matrix A = [aij] for which all the
terms on the main diagonal are equal that
is aij =c for i=j and aij=0 for i ≠ j is called
scalar matrix.
Types of Matrices
Identity Matrix:
A Scalar matrix A = [aij] for which all the
terms on the main diagonal are equal that
is aij =1 for i=j and aij=0 for i ≠ j is called
Identity matrix.
Operation on Matrices
There are many operations that are performed on matrices. We can see some of
them.
• Matrix Addition
• Matrix Subtraction
• Matric Multiplication
• Scalar Multiplication
• Transpose of Matrix
Matrix Transpose
• Creating a new
matrix where the
rows of the
original matrix
become the
columns, and
vice versa.
Matrix Addition
Matrix addition follows these rules:
• Matrices must have the same dimensions (same number
of rows and columns) to be added together.
• Addition is performed by adding corresponding elements
of the matrices.
• The resulting matrix will have the same dimensions as the
original matrices being added.
Matrix Addition
Matrix Subtraction
Matrix subtraction follows these rules:
1. Matrices must have the same dimensions (same number
of rows and columns) to be subtracted.
2. Subtraction is performed by subtracting corresponding
elements of the matrices.
3. The resulting matrix will have the same dimensions as the
original matrices being subtracted.
Matrix Subtraction
Scalar Multiplication
Scalar multiplication refers to the
operation of multiplying every
element of a matrix by a single
scalar (a real or complex number).
In scalar multiplication, each
element of the matrix is multiplied
by the same scalar value. The
resulting matrix has the same
dimensions as the original matrix.
Matrix Multiplication
The number of columns in the first
matrix must be equal to the
number of rows in the second
matrix for multiplication to be
possible.
The resulting matrix will have
dimensions equal to the number of
rows of the first matrix and the
number of columns of the second
matrix.
Matrix Multiplication
Linear
Combination
Linear Combination
If A1, A2, A3, ..., Ak are matrices
with dimensions m × n, and c1, c2,
c3, ..., ck are real numbers, then
an expression like c1A1 + c2A2 +
c3A3 + ... + ckAk is termed as the
linear combination of A1, A2, A3,
..., Ak. Here, c1, c2, c3, ..., ck are
referred to as coefficients.
Example:
is the matrix of
Dot product
The dot product or inner product of the n-vectors a and b is the sum of the
products of corresponding entries.
Note that for a dot product to be defined, both vectors must have the same number
of elements.
If u&v are vectors, then uTv=u.v
Matrix Vector Product
Matrix-vector product refers to the operation of multiplying a matrix by a vector. In
this operation, each row of the matrix is multiplied element-wise by the
corresponding element of the vector, and the results are summed up to produce a
new vector.
The resulting vector has the same number of rows as the original matrix and is
obtained by multiplying each row of the matrix by the vector and summing the
results.
For example, if we have an m × n matrix A and a vector v of size n, the matrix-
vector product Av is a vector of size m. Each element of Av is obtained by taking
the dot product of the corresponding row of A and the vector v.
Matrix Vector Product
Partitioned matrices
Partitioned multiplication, also known as block matrix multiplication, is performed
according to the following rules:
1.Partitioning: Divide each matrix into smaller submatrices or blocks. These
blocks can be of any size, but they must be compatible for multiplication.
2.Multiplication of Blocks: Multiply corresponding blocks of the matrices
according to standard matrix multiplication rules.
3.Addition of Results: Sum the products of the individual block multiplications to
obtain the final result.
4.Compatibility: Ensure that the dimensions of the blocks allow for valid matrix
multiplication. Specifically, the number of columns in the left block must match the
number of rows in the corresponding block on the right.
Partitioned matrices
Matrix Transformation
If A is an m x n matrix and u is an n-vector, then the matrix product Au is an m-
vector. A function of mapping 𝑅𝑛
→𝑅𝑚
defined by f(u) = Au.
The vector f(u) in 𝑅𝑚 is called the image of u, and the set of all images of the
vectors in 𝑅𝑛 is called the range of f .
Image and Range of Matrix
Contraction and Dilation
2 0 0
0 2 0
0 0 2
When r=2 we solve it. If we compare A(u) with f(u), the f(u) will always be
greater. This case is Dilation.
0.5 0 0
0 0.5 0
0 0 0.5
When r=0.5 we solve it. If we compare A(u) with f(u), the f(u) will always be
less. This case is Contraction.
Elementary Row Operation
• Interchange of tow Rows
• Multiply a row by any non-zero number
• Add a multiple (non-zero) of any row to any other row
Row Reduced Echelon Form
• All zero rows, if there are any, appear at the bottom of the
matrix .
• The first nonzero entry from the left of a nonzero row is a l.
This entry is called a leading one o f its row.
• For each nonzero row. the leading one appears to the right
and below any leading ones in preceding rows.
• If a column contains a leading one, then all other entries in
that column are zero .
Row Reduced Echelon Form
Thank you

More Related Content

Similar to Linear Algebra Presentation including basic of linear Algebra

Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksBeginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksJinTaek Seo
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equationsDiler4
 
system of linear equations by Diler
system of linear equations by Dilersystem of linear equations by Diler
system of linear equations by Dilerkishor pokar
 
Alg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - MatricesAlg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - Matricesjtentinger
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesjtentinger
 
Introduction to Business Mathematics
Introduction to Business MathematicsIntroduction to Business Mathematics
Introduction to Business MathematicsZunair Bhatti
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinantssom allul
 
Matrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for BusinessMatrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for BusinessKhan Tanjeel Ahmed
 
Introduction To Matrix
Introduction To MatrixIntroduction To Matrix
Introduction To MatrixAnnie Koh
 
matrix algebra
matrix algebramatrix algebra
matrix algebrakganu
 
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...Rwan Kamal
 
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...Abdullaا Hajy
 
University of duhok
University of duhokUniversity of duhok
University of duhokRwan Kamal
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matricesAditya Vaishampayan
 

Similar to Linear Algebra Presentation including basic of linear Algebra (20)

Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksBeginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
 
Maths
MathsMaths
Maths
 
Linear Algebra and its use in finance:
Linear Algebra and its use in finance:Linear Algebra and its use in finance:
Linear Algebra and its use in finance:
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
 
system of linear equations by Diler
system of linear equations by Dilersystem of linear equations by Diler
system of linear equations by Diler
 
Alg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - MatricesAlg II 3-6 Solving Systems - Matrices
Alg II 3-6 Solving Systems - Matrices
 
Alg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatricesAlg II Unit 3-6-solvingsystemsmatrices
Alg II Unit 3-6-solvingsystemsmatrices
 
Matrix algebra
Matrix algebraMatrix algebra
Matrix algebra
 
Introduction to Business Mathematics
Introduction to Business MathematicsIntroduction to Business Mathematics
Introduction to Business Mathematics
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Matrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for BusinessMatrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for Business
 
Introduction To Matrix
Introduction To MatrixIntroduction To Matrix
Introduction To Matrix
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
matrix algebra
matrix algebramatrix algebra
matrix algebra
 
Ses 2 matrix opt
Ses 2 matrix optSes 2 matrix opt
Ses 2 matrix opt
 
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
 
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
Matrices and its Applications to Solve Some Methods of Systems of Linear Equa...
 
Unit i
Unit iUnit i
Unit i
 
University of duhok
University of duhokUniversity of duhok
University of duhok
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matrices
 

Recently uploaded

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Recently uploaded (20)

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

Linear Algebra Presentation including basic of linear Algebra

  • 2. Group Member FARHAN AMJAD (FA21- BCS-005) MUNEEB ANWAR ( FA21-BCS-008) BILAL AHMAD (FA21- BCS-014) MUHAMMAD USMAN(FA21-BCS-020)
  • 3. Agenda • System of Linear Equations • Matrices and Types of Matrices • Linear Combination • Matrix Multiplication and Matrix- Vector Product • Partitioned Matrices and Matrix Transformation • Elementary Row Operations • Row Reduced Echelon Form (RREF) and Row Echelon Form (REF) • Gaussian Elimination Method and Gauss-Jordan Reduction
  • 5. Number System • Natural Number N = {1,2,3,4,5,…..} • Whole Number W = {0,1,2,3,4,….} • Integer Number ℤ = {0, ±1, ±2, ±3, ….} • Rational Number Q = p/q , q≠0, p, q∈ ℤ • Irrational Number Q’ ≠ p/q • Real Number ℝ = Q U Q’ N ⊂ W ⊂ ℤ ⊂ Q ⊂ Q’ ⊂ ℝ
  • 6. Linear Equation A linear equation is a mathematical expression that represents a straight line on a graph. It consists of variables raised to the power of 1, and the relationship between the variables is such that when plotted on a graph, it forms a straight line. Linear Equation 2x+y = 3
  • 7. System of Linear Equation • A system of linear equations is a group of equations where each equation represents a straight line when graphed. • These equations have variables (like x and y) and numbers. • The goal is to find the values of the variables that make all the equations true at the same time. • Example One Variable Two Variable Three Variable 2x=1 2x+3y=1 -x+y=2 x-2y+z=-4 2x-3y+2z=-6 2x+2y+z=5
  • 9. Nature of Solution No solution Infinite many Solution 0 = non-zero 0=0
  • 10. EXAMPLE Consider x + 2y = 10…….(1) 5x + y = 14………(2) A solution to a system of linear equations is a pair of numbers for x and y that makes both equations true. The solution to the above system of linear equations is x = 2 and y = 4. These values for x and y make both equations true. (Unique solution)
  • 11. EXAMPLE Consider 22x+11y=44…….(1) 14x+7y=28………(2) Try simplifying the top equation. What do you notice? 2x+y=4 2x+y=4 0=0 (Infinite Many solutions)
  • 12. EXAMPLE Consider 4x – y = 1…….(1) -8x + 2y = 4………(2) When we multiply equation (1) by 2, we get the following result for the equation (1) to (2): 8x – 2y = 2 … (3) As equations (2) and (3) are similar, adding them will result in the answer "0.“ 0=non zero (no solution)
  • 13. Method to Solve Linear System There are many methods to solve linear systems, but we will discuss two of them: 1. Substitution method 2. Elimination method
  • 14. 2x+3y=11 4x-2y=2 Substitution Method: • We can solve one of the equations for one variable and then substitute this expression into the other equation. Elimination Method: • We can add or subtract the equations in such a way that one of the variables is eliminated when we add or subtract the equations.
  • 16. Matrices • A matrix is a group of real or complex numbers arranged in rows and columns. If a matrix has m rows and n columns, it's called an "m by n" matrix, written as "m × n.“
  • 17. Types of Matrices Row Matrix: A matrix with a single row can be represented as A = [aij]1Xn, where i = 1 and j = 1, 2,...., n.
  • 18. Types of Matrices Column Matrix: A matrix with a single column can be represented as A = [aij]mX1, where i = 1,2,….,m and j = 1.
  • 19. Types of Matrices Square Matrix: A matrix with a same number of the row and column can be represented as A = [aij]nXn, where I,j = 1,2,….,n.
  • 20. Types of Matrices Diagonal Matrix: A square matrix A = [aij] for which all the terms off the main diagonal are zero that is aij =0 for if i ≠ j is called diagonal matrix.
  • 21. Types of Matrices Scalar Matrix: A diagonal matrix A = [aij] for which all the terms on the main diagonal are equal that is aij =c for i=j and aij=0 for i ≠ j is called scalar matrix.
  • 22. Types of Matrices Identity Matrix: A Scalar matrix A = [aij] for which all the terms on the main diagonal are equal that is aij =1 for i=j and aij=0 for i ≠ j is called Identity matrix.
  • 23. Operation on Matrices There are many operations that are performed on matrices. We can see some of them. • Matrix Addition • Matrix Subtraction • Matric Multiplication • Scalar Multiplication • Transpose of Matrix
  • 24. Matrix Transpose • Creating a new matrix where the rows of the original matrix become the columns, and vice versa.
  • 25. Matrix Addition Matrix addition follows these rules: • Matrices must have the same dimensions (same number of rows and columns) to be added together. • Addition is performed by adding corresponding elements of the matrices. • The resulting matrix will have the same dimensions as the original matrices being added.
  • 27. Matrix Subtraction Matrix subtraction follows these rules: 1. Matrices must have the same dimensions (same number of rows and columns) to be subtracted. 2. Subtraction is performed by subtracting corresponding elements of the matrices. 3. The resulting matrix will have the same dimensions as the original matrices being subtracted.
  • 29. Scalar Multiplication Scalar multiplication refers to the operation of multiplying every element of a matrix by a single scalar (a real or complex number). In scalar multiplication, each element of the matrix is multiplied by the same scalar value. The resulting matrix has the same dimensions as the original matrix.
  • 30. Matrix Multiplication The number of columns in the first matrix must be equal to the number of rows in the second matrix for multiplication to be possible. The resulting matrix will have dimensions equal to the number of rows of the first matrix and the number of columns of the second matrix.
  • 33. Linear Combination If A1, A2, A3, ..., Ak are matrices with dimensions m × n, and c1, c2, c3, ..., ck are real numbers, then an expression like c1A1 + c2A2 + c3A3 + ... + ckAk is termed as the linear combination of A1, A2, A3, ..., Ak. Here, c1, c2, c3, ..., ck are referred to as coefficients. Example: is the matrix of
  • 34. Dot product The dot product or inner product of the n-vectors a and b is the sum of the products of corresponding entries. Note that for a dot product to be defined, both vectors must have the same number of elements. If u&v are vectors, then uTv=u.v
  • 35. Matrix Vector Product Matrix-vector product refers to the operation of multiplying a matrix by a vector. In this operation, each row of the matrix is multiplied element-wise by the corresponding element of the vector, and the results are summed up to produce a new vector. The resulting vector has the same number of rows as the original matrix and is obtained by multiplying each row of the matrix by the vector and summing the results. For example, if we have an m × n matrix A and a vector v of size n, the matrix- vector product Av is a vector of size m. Each element of Av is obtained by taking the dot product of the corresponding row of A and the vector v.
  • 37. Partitioned matrices Partitioned multiplication, also known as block matrix multiplication, is performed according to the following rules: 1.Partitioning: Divide each matrix into smaller submatrices or blocks. These blocks can be of any size, but they must be compatible for multiplication. 2.Multiplication of Blocks: Multiply corresponding blocks of the matrices according to standard matrix multiplication rules. 3.Addition of Results: Sum the products of the individual block multiplications to obtain the final result. 4.Compatibility: Ensure that the dimensions of the blocks allow for valid matrix multiplication. Specifically, the number of columns in the left block must match the number of rows in the corresponding block on the right.
  • 39. Matrix Transformation If A is an m x n matrix and u is an n-vector, then the matrix product Au is an m- vector. A function of mapping 𝑅𝑛 →𝑅𝑚 defined by f(u) = Au. The vector f(u) in 𝑅𝑚 is called the image of u, and the set of all images of the vectors in 𝑅𝑛 is called the range of f .
  • 40. Image and Range of Matrix
  • 41. Contraction and Dilation 2 0 0 0 2 0 0 0 2 When r=2 we solve it. If we compare A(u) with f(u), the f(u) will always be greater. This case is Dilation. 0.5 0 0 0 0.5 0 0 0 0.5 When r=0.5 we solve it. If we compare A(u) with f(u), the f(u) will always be less. This case is Contraction.
  • 42. Elementary Row Operation • Interchange of tow Rows • Multiply a row by any non-zero number • Add a multiple (non-zero) of any row to any other row
  • 43. Row Reduced Echelon Form • All zero rows, if there are any, appear at the bottom of the matrix . • The first nonzero entry from the left of a nonzero row is a l. This entry is called a leading one o f its row. • For each nonzero row. the leading one appears to the right and below any leading ones in preceding rows. • If a column contains a leading one, then all other entries in that column are zero .