SlideShare a Scribd company logo
1 of 13
Chapter 5
SOLVING THE SYSTEMS OF LINEAR EQUATIONS
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 1
Solving the linear algebraic equation
The equations
Have graphs that intersect at the solution y=4, x=7
Can be solve by MATLAB programing
6 10 2
3 4 5
x y
x y
 
 
[6 10;3 4]
6 10
3 4
[2; 5]
2
5
A
A
B
B
   
 
   
 
 
  
 
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 2
>> solution=inv(A)*B
Or
>>solution=(A^-1)*B
Or
>>solution=AB
Or
>>solution=linesolve(A,B)
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 3
MATLAB calculation of root
The MATLAB command inv(A) computes the inverse of the matrix A. The following MATLAB session solves
the following equations using MATLAB.
2x + 9y = 5
3x - 4y = 7
>>A = [2,9;3,-4];
>>b = [5;7]
>>x = inv(A)*b
x =
2.3714
0.0286 If you attempt to solve a singular problem using the inv command, MATLAB displays an
error message.
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 4
Cramer’s rule
Solves equations using determinants. Gives insight into the existence and
uniqueness of solutions and into the effects of numerical inaccuracy.
Cramer’s determinant D is the determinant of the matrix A in the matrix form Ax =
b. D = |A|.
When the number of variables equals the number of equations, a singular problem
can be identified by computing Cramer’s determinant D.
If the determinant D is zero, the equations are singular because D appears in the
denominator of the solutions.
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 5
Cramer’s rule
Cramer’s Determinant and Singular Problems
For the set
3x - 4y = 5
6x - 8y = 3
Cramer’s determinant is
D = 3(8) – (-4)(6) = 0
Because D = 0, the equation set is singular.
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 6
Cramer’s rule
In general, for a set of homogeneous linear algebraic equations
that contains the same number of equations as unknowns,
● a nonzero solution exists only if the set is singular; that is, if
Cramer’s determinant is zero;
● furthermore, the solution is not unique.
If Cramer’s determinant is not zero, the homogeneous set has a
zero solution; that is, all the unknowns are zero.
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 7
Cramer’s rule
You can use determinants to solve a system of linear equations.
You use the coefficient matrix of the linear system.
Linear System Coeff Matrix
ax+by=e
cx+dy=f
If then the system has exactly one solution:






dc
ba
det 0A 
A
df
be
x
det

A
fc
ea
y
det

4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 8
Example 1
Solve the system:
8x+5y=2
2x-4y=-10
The coefficient matrix is:






 42
58
42)10()32(
42
58


42
410
52


x
42
102
28


y
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 9
Cramer’s Rule
1
42
42
42
)50(8
42
410
52








x
2
42
84
42
480
42
102
28









y
Solution: (x, y)=(-1,2)
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 10
Example 2
Solve the system:
2x+y=1
3x-2y=-23
The solution is: (x, y)=(-3,7) !!!
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 11
Example 3
Solve the system:
x+3y-z=1
-2x-6y+z=-3
3x+5y-2z=4 1
4
4
253
162
131
453
362
131








z
Let’s solve for Z
The answer is: (-2,0,1)!!!
Z=1
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 12
Slide ends here for
chapter 5
Dr. Mohammed Danish,
Malaysian Institute of Chemical and Bioengineering Technology,
UNIKL, Alor gajah 7800 Melaka, Malaysia
4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 13

More Related Content

What's hot

PPT 7th grade math
PPT 7th grade mathPPT 7th grade math
PPT 7th grade mathSara
 
System of Linear inequalities in two variables
System of Linear inequalities in two variablesSystem of Linear inequalities in two variables
System of Linear inequalities in two variablesAnirach Ytirahc
 
Solving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICSSolving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICSCoreAces
 
Lecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and divisionLecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and divisionHazel Joy Chong
 
3.1.2 Linear Equations in one Variable dfs
3.1.2 Linear Equations in one Variable dfs3.1.2 Linear Equations in one Variable dfs
3.1.2 Linear Equations in one Variable dfsFarhana Shaheen
 
Mathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear InequalitiesMathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear InequalitiesJuan Miguel Palero
 
Intro to systems_of_linear_equations
Intro to systems_of_linear_equationsIntro to systems_of_linear_equations
Intro to systems_of_linear_equationskelpernell
 
Linear Equation in one variables 3
Linear Equation in one variables 3Linear Equation in one variables 3
Linear Equation in one variables 3NG YIT HOE
 
Systems of linear equations
Systems of linear equationsSystems of linear equations
Systems of linear equationsgandhinagar
 
Math 8 - Systems of Linear Inequalities in Two Variables
Math 8 - Systems of Linear Inequalities in Two VariablesMath 8 - Systems of Linear Inequalities in Two Variables
Math 8 - Systems of Linear Inequalities in Two VariablesCarlo Luna
 
2.6 Linear Inequalities in Two Variables
2.6 Linear Inequalities in Two Variables2.6 Linear Inequalities in Two Variables
2.6 Linear Inequalities in Two Variableshisema01
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMileacre
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMileacre
 
Math 8 - Linear Inequalities in Two Variables
Math 8 - Linear Inequalities in Two VariablesMath 8 - Linear Inequalities in Two Variables
Math 8 - Linear Inequalities in Two VariablesCarlo Luna
 
Solving Systems of Linear Equations by Graphing
Solving  Systems of Linear Equations by Graphing Solving  Systems of Linear Equations by Graphing
Solving Systems of Linear Equations by Graphing PLeach
 
Algebraic Mathematics of Linear Inequality & System of Linear Inequality
Algebraic Mathematics of Linear Inequality & System of Linear InequalityAlgebraic Mathematics of Linear Inequality & System of Linear Inequality
Algebraic Mathematics of Linear Inequality & System of Linear InequalityJacqueline Chau
 
3.3 graph systems of linear inequalities
3.3 graph systems of linear inequalities3.3 graph systems of linear inequalities
3.3 graph systems of linear inequalitiesmorrobea
 
Beating the system (of equations)
Beating the system (of equations)Beating the system (of equations)
Beating the system (of equations)Matthew DeMoss
 

What's hot (20)

PPT 7th grade math
PPT 7th grade mathPPT 7th grade math
PPT 7th grade math
 
System of Linear inequalities in two variables
System of Linear inequalities in two variablesSystem of Linear inequalities in two variables
System of Linear inequalities in two variables
 
Solving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICSSolving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICS
 
Lecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and divisionLecture 05 b radicals multiplication and division
Lecture 05 b radicals multiplication and division
 
3.1.2 Linear Equations in one Variable dfs
3.1.2 Linear Equations in one Variable dfs3.1.2 Linear Equations in one Variable dfs
3.1.2 Linear Equations in one Variable dfs
 
Mathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear InequalitiesMathematics 8 Systems of Linear Inequalities
Mathematics 8 Systems of Linear Inequalities
 
Intro to systems_of_linear_equations
Intro to systems_of_linear_equationsIntro to systems_of_linear_equations
Intro to systems_of_linear_equations
 
Linear Equation in one variables 3
Linear Equation in one variables 3Linear Equation in one variables 3
Linear Equation in one variables 3
 
Systems of linear equations
Systems of linear equationsSystems of linear equations
Systems of linear equations
 
Math 8 - Systems of Linear Inequalities in Two Variables
Math 8 - Systems of Linear Inequalities in Two VariablesMath 8 - Systems of Linear Inequalities in Two Variables
Math 8 - Systems of Linear Inequalities in Two Variables
 
2.6 Linear Inequalities in Two Variables
2.6 Linear Inequalities in Two Variables2.6 Linear Inequalities in Two Variables
2.6 Linear Inequalities in Two Variables
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones lineales
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones lineales
 
Math 8 - Linear Inequalities in Two Variables
Math 8 - Linear Inequalities in Two VariablesMath 8 - Linear Inequalities in Two Variables
Math 8 - Linear Inequalities in Two Variables
 
Solving Systems of Linear Equations by Graphing
Solving  Systems of Linear Equations by Graphing Solving  Systems of Linear Equations by Graphing
Solving Systems of Linear Equations by Graphing
 
Test of consistency
Test of consistencyTest of consistency
Test of consistency
 
Linear Equations
Linear Equations Linear Equations
Linear Equations
 
Algebraic Mathematics of Linear Inequality & System of Linear Inequality
Algebraic Mathematics of Linear Inequality & System of Linear InequalityAlgebraic Mathematics of Linear Inequality & System of Linear Inequality
Algebraic Mathematics of Linear Inequality & System of Linear Inequality
 
3.3 graph systems of linear inequalities
3.3 graph systems of linear inequalities3.3 graph systems of linear inequalities
3.3 graph systems of linear inequalities
 
Beating the system (of equations)
Beating the system (of equations)Beating the system (of equations)
Beating the system (of equations)
 

Similar to 05 Chapter MATLAB Differntial equations

April 22, 2015
April 22, 2015April 22, 2015
April 22, 2015khyps13
 
7.3 Systems of Nonlinear Equations
7.3 Systems of Nonlinear Equations7.3 Systems of Nonlinear Equations
7.3 Systems of Nonlinear Equationssmiller5
 
Math Project 2ppt
Math Project 2pptMath Project 2ppt
Math Project 2pptguest7461b8
 
Equivalent equation
Equivalent equationEquivalent equation
Equivalent equationgheovani
 
Cramer’s Rule OF Matrix
Cramer’s Rule OF MatrixCramer’s Rule OF Matrix
Cramer’s Rule OF MatrixAbi Malik
 
Cramer’s rule of matrix
Cramer’s rule of matrixCramer’s rule of matrix
Cramer’s rule of matrixAbi Malik
 
Systems of equations alg1
Systems of equations alg1Systems of equations alg1
Systems of equations alg1Hazel Joy Chong
 
7.3 Solving Multi Step Frac Deci
7.3 Solving Multi Step Frac Deci7.3 Solving Multi Step Frac Deci
7.3 Solving Multi Step Frac DeciJessca Lundin
 
linear equation system with 2 and 3 variables
linear equation system with 2 and 3 variableslinear equation system with 2 and 3 variables
linear equation system with 2 and 3 variablesWanda Sari
 
9.1 Systems of Linear Equations
9.1 Systems of Linear Equations9.1 Systems of Linear Equations
9.1 Systems of Linear Equationssmiller5
 
Chapter 3 linear equations
Chapter 3 linear equationsChapter 3 linear equations
Chapter 3 linear equationsChandran Chan
 
Business Math Chapter 3
Business Math Chapter 3Business Math Chapter 3
Business Math Chapter 3Nazrin Nazdri
 
9.5 Nonlinear Systems of Equations
9.5 Nonlinear Systems of Equations9.5 Nonlinear Systems of Equations
9.5 Nonlinear Systems of Equationssmiller5
 
PRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdf
PRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdfPRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdf
PRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdfedwinllantoy2
 

Similar to 05 Chapter MATLAB Differntial equations (20)

April 22, 2015
April 22, 2015April 22, 2015
April 22, 2015
 
7.3 Systems of Nonlinear Equations
7.3 Systems of Nonlinear Equations7.3 Systems of Nonlinear Equations
7.3 Systems of Nonlinear Equations
 
Math Project 2ppt
Math Project 2pptMath Project 2ppt
Math Project 2ppt
 
Tema 8
Tema 8Tema 8
Tema 8
 
4.3 cramer’s rule
4.3 cramer’s rule4.3 cramer’s rule
4.3 cramer’s rule
 
Hprec2 1
Hprec2 1Hprec2 1
Hprec2 1
 
Equivalent equation
Equivalent equationEquivalent equation
Equivalent equation
 
Demo class
Demo classDemo class
Demo class
 
Cramer’s Rule OF Matrix
Cramer’s Rule OF MatrixCramer’s Rule OF Matrix
Cramer’s Rule OF Matrix
 
Cramer’s rule of matrix
Cramer’s rule of matrixCramer’s rule of matrix
Cramer’s rule of matrix
 
Systems of equations alg1
Systems of equations alg1Systems of equations alg1
Systems of equations alg1
 
7.3 Solving Multi Step Frac Deci
7.3 Solving Multi Step Frac Deci7.3 Solving Multi Step Frac Deci
7.3 Solving Multi Step Frac Deci
 
linear equation system with 2 and 3 variables
linear equation system with 2 and 3 variableslinear equation system with 2 and 3 variables
linear equation system with 2 and 3 variables
 
5 3 solving trig eqns
5 3 solving trig eqns5 3 solving trig eqns
5 3 solving trig eqns
 
9.1 Systems of Linear Equations
9.1 Systems of Linear Equations9.1 Systems of Linear Equations
9.1 Systems of Linear Equations
 
Chapter 3 linear equations
Chapter 3 linear equationsChapter 3 linear equations
Chapter 3 linear equations
 
ML ALL in one (1).pdf
ML ALL in one (1).pdfML ALL in one (1).pdf
ML ALL in one (1).pdf
 
Business Math Chapter 3
Business Math Chapter 3Business Math Chapter 3
Business Math Chapter 3
 
9.5 Nonlinear Systems of Equations
9.5 Nonlinear Systems of Equations9.5 Nonlinear Systems of Equations
9.5 Nonlinear Systems of Equations
 
PRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdf
PRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdfPRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdf
PRIMER GRADO ECUACIONES Y DESIGUALDADES EN UNA VARIABLE.pdf
 

More from Dr. Mohammed Danish

Instrumental method of analysis Oil and Fat(Unit 7 b)
Instrumental method of analysis Oil and Fat(Unit 7 b)Instrumental method of analysis Oil and Fat(Unit 7 b)
Instrumental method of analysis Oil and Fat(Unit 7 b)Dr. Mohammed Danish
 
Non edible application of oil and Fat (Unit 6 b)
Non edible application of oil and Fat (Unit 6 b)Non edible application of oil and Fat (Unit 6 b)
Non edible application of oil and Fat (Unit 6 b)Dr. Mohammed Danish
 
Oil and Fat edible applications (Unit 6 a)
Oil and Fat edible applications (Unit 6 a)Oil and Fat edible applications (Unit 6 a)
Oil and Fat edible applications (Unit 6 a)Dr. Mohammed Danish
 
Fatty acid reaction and derivatives (Unit 5 b)
 Fatty acid reaction and derivatives (Unit 5 b) Fatty acid reaction and derivatives (Unit 5 b)
Fatty acid reaction and derivatives (Unit 5 b)Dr. Mohammed Danish
 
Production of Glycerin (Unit 4 b)
Production of Glycerin (Unit 4 b) Production of Glycerin (Unit 4 b)
Production of Glycerin (Unit 4 b) Dr. Mohammed Danish
 
Processing of edible oil (Unit 3)
Processing of edible oil (Unit 3)Processing of edible oil (Unit 3)
Processing of edible oil (Unit 3)Dr. Mohammed Danish
 
Chemical and Physical properties of Oil and Fat (Unit 2)
Chemical and Physical properties of Oil and Fat (Unit 2)Chemical and Physical properties of Oil and Fat (Unit 2)
Chemical and Physical properties of Oil and Fat (Unit 2)Dr. Mohammed Danish
 
Introduction of Edible oils (Unit 1)
Introduction of Edible oils (Unit 1) Introduction of Edible oils (Unit 1)
Introduction of Edible oils (Unit 1) Dr. Mohammed Danish
 
08-09 Chapter numerical integration
08-09  Chapter numerical integration 08-09  Chapter numerical integration
08-09 Chapter numerical integration Dr. Mohammed Danish
 
06-07 Chapter interpolation in MATLAB
06-07 Chapter interpolation in MATLAB06-07 Chapter interpolation in MATLAB
06-07 Chapter interpolation in MATLABDr. Mohammed Danish
 
04 Chapter MATLAB linear algebra review
04 Chapter MATLAB linear algebra review04 Chapter MATLAB linear algebra review
04 Chapter MATLAB linear algebra reviewDr. Mohammed Danish
 
03 Chapter MATLAB finite precision arithmatic
03 Chapter MATLAB finite precision arithmatic03 Chapter MATLAB finite precision arithmatic
03 Chapter MATLAB finite precision arithmaticDr. Mohammed Danish
 

More from Dr. Mohammed Danish (17)

Instrumental method of analysis Oil and Fat(Unit 7 b)
Instrumental method of analysis Oil and Fat(Unit 7 b)Instrumental method of analysis Oil and Fat(Unit 7 b)
Instrumental method of analysis Oil and Fat(Unit 7 b)
 
Analysis of oil and Fat(Unit 7)
Analysis of oil and Fat(Unit 7)Analysis of oil and Fat(Unit 7)
Analysis of oil and Fat(Unit 7)
 
Non edible application of oil and Fat (Unit 6 b)
Non edible application of oil and Fat (Unit 6 b)Non edible application of oil and Fat (Unit 6 b)
Non edible application of oil and Fat (Unit 6 b)
 
Oil and Fat edible applications (Unit 6 a)
Oil and Fat edible applications (Unit 6 a)Oil and Fat edible applications (Unit 6 a)
Oil and Fat edible applications (Unit 6 a)
 
Fatty acid reaction and derivatives (Unit 5 b)
 Fatty acid reaction and derivatives (Unit 5 b) Fatty acid reaction and derivatives (Unit 5 b)
Fatty acid reaction and derivatives (Unit 5 b)
 
Fatty acid clusters (Unit 5 a)
Fatty acid clusters (Unit 5 a) Fatty acid clusters (Unit 5 a)
Fatty acid clusters (Unit 5 a)
 
Production of Glycerin (Unit 4 b)
Production of Glycerin (Unit 4 b) Production of Glycerin (Unit 4 b)
Production of Glycerin (Unit 4 b)
 
Fatty Acid Isolation (Unit 4 a)
Fatty Acid Isolation (Unit 4 a)Fatty Acid Isolation (Unit 4 a)
Fatty Acid Isolation (Unit 4 a)
 
Processing of edible oil (Unit 3)
Processing of edible oil (Unit 3)Processing of edible oil (Unit 3)
Processing of edible oil (Unit 3)
 
Chemical and Physical properties of Oil and Fat (Unit 2)
Chemical and Physical properties of Oil and Fat (Unit 2)Chemical and Physical properties of Oil and Fat (Unit 2)
Chemical and Physical properties of Oil and Fat (Unit 2)
 
Introduction of Edible oils (Unit 1)
Introduction of Edible oils (Unit 1) Introduction of Edible oils (Unit 1)
Introduction of Edible oils (Unit 1)
 
01 Chapter MATLAB introduction
01 Chapter MATLAB introduction01 Chapter MATLAB introduction
01 Chapter MATLAB introduction
 
08-09 Chapter numerical integration
08-09  Chapter numerical integration 08-09  Chapter numerical integration
08-09 Chapter numerical integration
 
06-07 Chapter interpolation in MATLAB
06-07 Chapter interpolation in MATLAB06-07 Chapter interpolation in MATLAB
06-07 Chapter interpolation in MATLAB
 
04 Chapter MATLAB linear algebra review
04 Chapter MATLAB linear algebra review04 Chapter MATLAB linear algebra review
04 Chapter MATLAB linear algebra review
 
03 Chapter MATLAB finite precision arithmatic
03 Chapter MATLAB finite precision arithmatic03 Chapter MATLAB finite precision arithmatic
03 Chapter MATLAB finite precision arithmatic
 
02 MATLAB programming
02 MATLAB programming02 MATLAB programming
02 MATLAB programming
 

Recently uploaded

Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 

Recently uploaded (20)

Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 

05 Chapter MATLAB Differntial equations

  • 1. Chapter 5 SOLVING THE SYSTEMS OF LINEAR EQUATIONS 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 1
  • 2. Solving the linear algebraic equation The equations Have graphs that intersect at the solution y=4, x=7 Can be solve by MATLAB programing 6 10 2 3 4 5 x y x y     [6 10;3 4] 6 10 3 4 [2; 5] 2 5 A A B B                    4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 2
  • 4. MATLAB calculation of root The MATLAB command inv(A) computes the inverse of the matrix A. The following MATLAB session solves the following equations using MATLAB. 2x + 9y = 5 3x - 4y = 7 >>A = [2,9;3,-4]; >>b = [5;7] >>x = inv(A)*b x = 2.3714 0.0286 If you attempt to solve a singular problem using the inv command, MATLAB displays an error message. 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 4
  • 5. Cramer’s rule Solves equations using determinants. Gives insight into the existence and uniqueness of solutions and into the effects of numerical inaccuracy. Cramer’s determinant D is the determinant of the matrix A in the matrix form Ax = b. D = |A|. When the number of variables equals the number of equations, a singular problem can be identified by computing Cramer’s determinant D. If the determinant D is zero, the equations are singular because D appears in the denominator of the solutions. 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 5
  • 6. Cramer’s rule Cramer’s Determinant and Singular Problems For the set 3x - 4y = 5 6x - 8y = 3 Cramer’s determinant is D = 3(8) – (-4)(6) = 0 Because D = 0, the equation set is singular. 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 6
  • 7. Cramer’s rule In general, for a set of homogeneous linear algebraic equations that contains the same number of equations as unknowns, ● a nonzero solution exists only if the set is singular; that is, if Cramer’s determinant is zero; ● furthermore, the solution is not unique. If Cramer’s determinant is not zero, the homogeneous set has a zero solution; that is, all the unknowns are zero. 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 7
  • 8. Cramer’s rule You can use determinants to solve a system of linear equations. You use the coefficient matrix of the linear system. Linear System Coeff Matrix ax+by=e cx+dy=f If then the system has exactly one solution:       dc ba det 0A  A df be x det  A fc ea y det  4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 8
  • 9. Example 1 Solve the system: 8x+5y=2 2x-4y=-10 The coefficient matrix is:        42 58 42)10()32( 42 58   42 410 52   x 42 102 28   y 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 9
  • 11. Example 2 Solve the system: 2x+y=1 3x-2y=-23 The solution is: (x, y)=(-3,7) !!! 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 11
  • 12. Example 3 Solve the system: x+3y-z=1 -2x-6y+z=-3 3x+5y-2z=4 1 4 4 253 162 131 453 362 131         z Let’s solve for Z The answer is: (-2,0,1)!!! Z=1 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 12
  • 13. Slide ends here for chapter 5 Dr. Mohammed Danish, Malaysian Institute of Chemical and Bioengineering Technology, UNIKL, Alor gajah 7800 Melaka, Malaysia 4/5/2016 DR. MOHAMMED DANISH/UNIKL-MICET 13