SlideShare a Scribd company logo
computing discrete
approximation of solution
of linear simultaneous
equation
JMHM Jayamaha
Content
 Linear Equations
 What is Linear Equations
 Method for solving the system of linear equations
 Direct Method
 Gauss Elimination method
 LU Decomposition
 Iterative method
 Jacobi's method
 Gauss Seidal method
Linear Equations
What is Linear Equations
 A linear equation is an algebraic equation in which each term is either
a constant or the product of a constant and (the first power of) a
single variable.
Two methods for solving the system of linear
equations
 Direct Method
 Solutions are obtained through a finite number of arithmetic operations
 Gauss Elimination method
 LU Decomposition
 Iterative Method:
 Solutions are obtained through a sequence of successive approximations
which converges to the required solution
 Jacobi's method
 Gauss Seidal method
GAUSS – ELIMINATION METHOD
GAUSS – ELIMINATION METHOD
Consider a system of 3 – equations with 3 – unknowns
)1(
3333232131
2323222121
1313212111








bxaxaxa
bxaxaxa
bxaxaxa
Form the augmented matrix from the given equations as










3333231
2232221
1131211
baaa
baaa
baaa



1
11
21
22operationrowtheUse R
a
a
RR 
1
11
31
33operationrowtheUse R
a
a
RR 
If a11  0
New augmented matrix will be










'''0
'''0
33332
22322
1131211
baa
baa
baaa



2
22
32
33
'
'
operationrowtheUse R
a
a
RR 
New augmented matrix will be










''''00
'''0
333
22322
1131211
ba
baa
baaa



If a22’  0
From the last matrix, the equations can be written as
''''
'''
3333
2323222
1313212111
bxa
bxaxa
bxaxaxa



Use back substitution to get the solution as
11
3132121
1
22
3232
2
33
3
3
,
'
''
,
''
''
a
xaxab
x
a
xab
x
a
b
x





Gauss Elimination method Matlab Implementation
function x = Gauss(A,b);
n = length(b); x = zeros(n,1);
for k=1:n-1 % forward elimination
for i=k+1:n
xmult = A(i,k)/A(k,k);
for j=k+1:n
A(i,j) = A(i,j)-xmult*A(k,j);
end
b(i) = b(i)-xmult*b(k);
end
end
% back substitution
x(n) = b(n)/A(n,n);
for i=n-1:-1:1
sum = b(i);
for j=i+1:n
sum = sum-A(i,j)*x(j);
end
x(i) = sum/A(i,i);
end
LU Decomposition
 Matrix A is decomposed into a product of a lower triangular
matrix L and an upper triangular matrix U, that is A = LU or































100
10
1
0
00
23
1312
333231
2221
11
333231
232221
131211
u
uu
lll
ll
l
aaa
aaa
aaa
Matrices L and U can be obtained by the following rule
1. Step 1: Obtain l11 = a11, l21 = a21, l31 = a31
11
13
13
11
12
12 ,Obtain:2Step.2
a
a
u
a
a
u 
3. Step 3: Obtain l22 = a22 – l21u12
 132123
22
23
1
Obtain:4Step.4 ula
l
u 
5. Step 5: Obtain l32 = a32 – l31u12
6. Step 6: Obtain l33 = a33 – l31u13 – l32u23
Once lower and upper triangular matrices are obtained the
solution of Ax = b can be obtained using the procedure
Ax = b  LUx = b
Let Ux = y
then
LUx = b  Ly = b
Steps to get the solution of linear equations
































3
2
1
3
2
1
333231
2221
11
0
00
b
b
b
y
y
y
lll
ll
l
bLy
 
 2321313
33
3
1212
22
2
11
1
1
1
and
1
,where
ylylb
l
y
ylb
l
y
l
b
y


By Forward substitution
































3
2
1
3
2
1
23
1312
100
10
1
Now
b
b
b
x
x
x
u
uu
bUx
31321211
3232233 ,where
xuxuyx
xuyxyx


By Backward substitution
Matlab Implementation for LU Decomposition
Iterative methods
The Jacobi Method
The Jacobi Method
 This method makes two assumptions
1. that the system given by has a unique solution
2. the coefficient matrix A has no zeros on its main diagonal
 To begin the Jacobi method, solve the first equation for x1 the second
equation for x2 and so on, as follows.
 Then make an initial approximation of the solution,
Algorithm
 Example
 To begin, write the system in the form
 Because you do not know the actual solution, choose
 as a convenient initial approximation. So, the first approximation is
 Continuing this procedure, you obtain the sequence of approximations shown
in Table
 Because the last two columns in Table are identical, you can conclude that to
three significant digits the solution is
Matlab Implementation for jacobi method
Iterative methods
The Gauss-Seidel Method
 Gauss-Seidel iteration is similar to Jacobi iteration, except that new
values for xi are used on the right-hand side of the equations as soon
as they become available.
 It improves upon the Jacobi method in two respects
 Convergence is quicker, since you benefit from the newer, more accurate
xi values earlier.
 Memory requirements are reduced by 50%, since you only need to keep
track of one set of xi values, not two sets.
Algorithm
 Example

 Step 1: reformat the equations, solving the first one for x1, the second for x2,
and the third for x3
 Step 2a: Substitute the initial guesses for xi into the right-hand side of the
first equation
 Step 2b: Substitute the new x1 value with the initial guess for x3 into the
second equation
 Step 2c: Substitute the new x1 and x2 values into the third equation
 Step 3, 4, · · · : Repeat step 2 and watch for the xi values to converge to an
exact solution.
Matlab Implementation of Gauss-Seidel Method
Summary
 Solution of linear simultaneous are discussed.
 Two methods
 Direct
 Gauss Elimination method
 LU Decomposition
 Iterative
 Jacobi's method
 Gauss Seidal method
References
 https://en.wikipedia.org/wiki/Linear_equation(2016-06-15)
 http://homel.vsb.cz/~dom033/predmety/parisLA/02_direct_methods.pdf
 Numerical computational methods by P.B Patill , U.P Verma
 http://college.cengage.com/mathematics/larson/elementary_linear/5e/stud
ents/ch08-10/chap_10_2.pdf
 http://ocw.usu.edu/Civil_and_Environmental_Engineering/Numerical_Method
s_in_Civil_Engineering/NonLinearEquationsMatlab.pdf
 http://people.whitman.edu/~hundledr/courses/M467/GaussSeidel.pdf

More Related Content

What's hot

The remainder theorem powerpoint
The remainder theorem powerpointThe remainder theorem powerpoint
The remainder theorem powerpoint
Juwileene Soriano
 
Systems of linear equations
Systems of linear equationsSystems of linear equations
Systems of linear equations
gandhinagar
 
Cartesian coordinate plane
Cartesian coordinate planeCartesian coordinate plane
Cartesian coordinate plane
Elvie Hernandez
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
arunsmm
 
Graphing Linear Inequalities
Graphing Linear InequalitiesGraphing Linear Inequalities
Graphing Linear Inequalities
inderjyot
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equations
reach2arkaELECTRICAL
 
Graphing Quadratics
Graphing QuadraticsGraphing Quadratics
Graphing Quadraticsswartzje
 
Slope Intercept Form
Slope Intercept FormSlope Intercept Form
Slope Intercept Form
guest9c5e6b
 
Cramers rule
Cramers ruleCramers rule
Cramers rulemstf mstf
 
Introduction to slope presentation
Introduction to slope presentationIntroduction to slope presentation
Introduction to slope presentationskellyreyes
 
Solving inequalities
Solving inequalitiesSolving inequalities
Solving inequalities
Ita Rodriguez
 
9.1 Systems of Linear Equations
9.1 Systems of Linear Equations9.1 Systems of Linear Equations
9.1 Systems of Linear Equations
smiller5
 
Solving System of Equations by Substitution
Solving System of Equations by SubstitutionSolving System of Equations by Substitution
Solving System of Equations by SubstitutionTwinkiebear7
 
Linear Equation In One Variable
Linear Equation In One VariableLinear Equation In One Variable
Linear Equation In One Variable
Pooja M
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
MalathiNagarajan20
 
Rational expressions ppt
Rational expressions pptRational expressions ppt
Rational expressions ppt
Doreen Mhizha
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.ppsindu psthakur
 
Polynomial and thier graphs
Polynomial and thier graphsPolynomial and thier graphs
Polynomial and thier graphsJessica Garcia
 

What's hot (20)

The remainder theorem powerpoint
The remainder theorem powerpointThe remainder theorem powerpoint
The remainder theorem powerpoint
 
Systems of linear equations
Systems of linear equationsSystems of linear equations
Systems of linear equations
 
Binomial expansion
Binomial expansionBinomial expansion
Binomial expansion
 
Cartesian coordinate plane
Cartesian coordinate planeCartesian coordinate plane
Cartesian coordinate plane
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
Graphing Linear Inequalities
Graphing Linear InequalitiesGraphing Linear Inequalities
Graphing Linear Inequalities
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equations
 
Graphing Quadratics
Graphing QuadraticsGraphing Quadratics
Graphing Quadratics
 
Slope Intercept Form
Slope Intercept FormSlope Intercept Form
Slope Intercept Form
 
Cramers rule
Cramers ruleCramers rule
Cramers rule
 
Introduction to slope presentation
Introduction to slope presentationIntroduction to slope presentation
Introduction to slope presentation
 
Solving inequalities
Solving inequalitiesSolving inequalities
Solving inequalities
 
9.1 Systems of Linear Equations
9.1 Systems of Linear Equations9.1 Systems of Linear Equations
9.1 Systems of Linear Equations
 
Division Of Polynomials
Division Of PolynomialsDivision Of Polynomials
Division Of Polynomials
 
Solving System of Equations by Substitution
Solving System of Equations by SubstitutionSolving System of Equations by Substitution
Solving System of Equations by Substitution
 
Linear Equation In One Variable
Linear Equation In One VariableLinear Equation In One Variable
Linear Equation In One Variable
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
 
Rational expressions ppt
Rational expressions pptRational expressions ppt
Rational expressions ppt
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
 
Polynomial and thier graphs
Polynomial and thier graphsPolynomial and thier graphs
Polynomial and thier graphs
 

Viewers also liked

Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
Rifat Rahamatullah
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
Linear and non linear expressions
Linear and non linear expressionsLinear and non linear expressions
Linear and non linear expressions
julienorman80065
 
Factorization from Gaussian Elimination
  Factorization from Gaussian Elimination  Factorization from Gaussian Elimination
Factorization from Gaussian Elimination
Mudassir Parvi
 
Lecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsLecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equations
Hazel Joy Chong
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
fenil patel
 
Linear Equations Ppt
Linear Equations PptLinear Equations Ppt
Linear Equations PptScott R
 
linear equation
linear equationlinear equation
linear equation
kanishkaanandkv
 
Linear non linear
Linear non linearLinear non linear
Linear non linear
VARANASI RAMA RAO
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
Asad Ali
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
Asad Ali
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
Mohammad Tawfik
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
Tarun Gehlot
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
rfant
 

Viewers also liked (17)

Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
Linear and non linear expressions
Linear and non linear expressionsLinear and non linear expressions
Linear and non linear expressions
 
Factorization from Gaussian Elimination
  Factorization from Gaussian Elimination  Factorization from Gaussian Elimination
Factorization from Gaussian Elimination
 
Lecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsLecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equations
 
metode iterasi Gauss seidel
metode iterasi Gauss seidelmetode iterasi Gauss seidel
metode iterasi Gauss seidel
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
 
bisection method
bisection methodbisection method
bisection method
 
Linear Equations Ppt
Linear Equations PptLinear Equations Ppt
Linear Equations Ppt
 
linear equation
linear equationlinear equation
linear equation
 
Linear non linear
Linear non linearLinear non linear
Linear non linear
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
 

Similar to Linear and non linear equation

CHAPTER 3 numer.pdf
CHAPTER 3 numer.pdfCHAPTER 3 numer.pdf
CHAPTER 3 numer.pdf
kefiyalewkunta1
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos MethodsJeannie
 
Iterativos methods
Iterativos methodsIterativos methods
Iterativos methodsJeannie
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Sparsh Singh
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)
Sparsh Singh
 
Gaussian
GaussianGaussian
Gaussian
Eng Ansam Hadi
 
Pair of linear equations in two variables for classX
Pair of linear equations in two variables for classXPair of linear equations in two variables for classX
Pair of linear equations in two variables for classX
swastik999
 
Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsMaria Fernanda
 
algebra
algebraalgebra
algebra
Asyraf Ghani
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Janki Shah
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Directs Methods
Directs MethodsDirects Methods
Directs MethodsUIS
 
Linear equations
Linear equationsLinear equations
Linear equations
Nisarg Amin
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
ER Publication.org
 
Gauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxGauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptx
AHSANMEHBOOB12
 

Similar to Linear and non linear equation (20)

CHAPTER 3 numer.pdf
CHAPTER 3 numer.pdfCHAPTER 3 numer.pdf
CHAPTER 3 numer.pdf
 
Aman
AmanAman
Aman
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos Methods
 
Iterativos methods
Iterativos methodsIterativos methods
Iterativos methods
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)
 
Gaussian
GaussianGaussian
Gaussian
 
Pair of linear equations in two variables for classX
Pair of linear equations in two variables for classXPair of linear equations in two variables for classX
Pair of linear equations in two variables for classX
 
Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic Equations
 
algebra
algebraalgebra
algebra
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Directs Methods
Directs MethodsDirects Methods
Directs Methods
 
Linear equations
Linear equationsLinear equations
Linear equations
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Gauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxGauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptx
 

More from Harshana Madusanka Jayamaha

Handwritten character recognition using artificial neural network
Handwritten character recognition using artificial neural networkHandwritten character recognition using artificial neural network
Handwritten character recognition using artificial neural network
Harshana Madusanka Jayamaha
 
Clipping ( Cohen-Sutherland Algorithm )
Clipping ( Cohen-Sutherland Algorithm )Clipping ( Cohen-Sutherland Algorithm )
Clipping ( Cohen-Sutherland Algorithm )
Harshana Madusanka Jayamaha
 
Advance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithmAdvance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithm
Harshana Madusanka Jayamaha
 
Artificial Neural Network Topology
Artificial Neural Network TopologyArtificial Neural Network Topology
Artificial Neural Network Topology
Harshana Madusanka Jayamaha
 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
Harshana Madusanka Jayamaha
 
Organizational structure
Organizational structureOrganizational structure
Organizational structure
Harshana Madusanka Jayamaha
 
Operating system critical section
Operating system   critical sectionOperating system   critical section
Operating system critical section
Harshana Madusanka Jayamaha
 
Distributed System - Security
Distributed System - SecurityDistributed System - Security
Distributed System - Security
Harshana Madusanka Jayamaha
 

More from Harshana Madusanka Jayamaha (8)

Handwritten character recognition using artificial neural network
Handwritten character recognition using artificial neural networkHandwritten character recognition using artificial neural network
Handwritten character recognition using artificial neural network
 
Clipping ( Cohen-Sutherland Algorithm )
Clipping ( Cohen-Sutherland Algorithm )Clipping ( Cohen-Sutherland Algorithm )
Clipping ( Cohen-Sutherland Algorithm )
 
Advance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithmAdvance operator and technique in genetic algorithm
Advance operator and technique in genetic algorithm
 
Artificial Neural Network Topology
Artificial Neural Network TopologyArtificial Neural Network Topology
Artificial Neural Network Topology
 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
 
Organizational structure
Organizational structureOrganizational structure
Organizational structure
 
Operating system critical section
Operating system   critical sectionOperating system   critical section
Operating system critical section
 
Distributed System - Security
Distributed System - SecurityDistributed System - Security
Distributed System - Security
 

Recently uploaded

Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 

Recently uploaded (20)

Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 

Linear and non linear equation

  • 1. computing discrete approximation of solution of linear simultaneous equation JMHM Jayamaha
  • 2. Content  Linear Equations  What is Linear Equations  Method for solving the system of linear equations  Direct Method  Gauss Elimination method  LU Decomposition  Iterative method  Jacobi's method  Gauss Seidal method
  • 4. What is Linear Equations  A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and (the first power of) a single variable.
  • 5. Two methods for solving the system of linear equations  Direct Method  Solutions are obtained through a finite number of arithmetic operations  Gauss Elimination method  LU Decomposition  Iterative Method:  Solutions are obtained through a sequence of successive approximations which converges to the required solution  Jacobi's method  Gauss Seidal method
  • 7. GAUSS – ELIMINATION METHOD Consider a system of 3 – equations with 3 – unknowns )1( 3333232131 2323222121 1313212111         bxaxaxa bxaxaxa bxaxaxa
  • 8. Form the augmented matrix from the given equations as           3333231 2232221 1131211 baaa baaa baaa    1 11 21 22operationrowtheUse R a a RR  1 11 31 33operationrowtheUse R a a RR  If a11  0
  • 9. New augmented matrix will be           '''0 '''0 33332 22322 1131211 baa baa baaa   
  • 10. 2 22 32 33 ' ' operationrowtheUse R a a RR  New augmented matrix will be           ''''00 '''0 333 22322 1131211 ba baa baaa    If a22’  0
  • 11. From the last matrix, the equations can be written as '''' ''' 3333 2323222 1313212111 bxa bxaxa bxaxaxa   
  • 12. Use back substitution to get the solution as 11 3132121 1 22 3232 2 33 3 3 , ' '' , '' '' a xaxab x a xab x a b x     
  • 13. Gauss Elimination method Matlab Implementation function x = Gauss(A,b); n = length(b); x = zeros(n,1); for k=1:n-1 % forward elimination for i=k+1:n xmult = A(i,k)/A(k,k); for j=k+1:n A(i,j) = A(i,j)-xmult*A(k,j); end b(i) = b(i)-xmult*b(k); end end % back substitution x(n) = b(n)/A(n,n); for i=n-1:-1:1 sum = b(i); for j=i+1:n sum = sum-A(i,j)*x(j); end x(i) = sum/A(i,i); end
  • 15.  Matrix A is decomposed into a product of a lower triangular matrix L and an upper triangular matrix U, that is A = LU or                                100 10 1 0 00 23 1312 333231 2221 11 333231 232221 131211 u uu lll ll l aaa aaa aaa
  • 16. Matrices L and U can be obtained by the following rule 1. Step 1: Obtain l11 = a11, l21 = a21, l31 = a31 11 13 13 11 12 12 ,Obtain:2Step.2 a a u a a u  3. Step 3: Obtain l22 = a22 – l21u12  132123 22 23 1 Obtain:4Step.4 ula l u  5. Step 5: Obtain l32 = a32 – l31u12 6. Step 6: Obtain l33 = a33 – l31u13 – l32u23
  • 17. Once lower and upper triangular matrices are obtained the solution of Ax = b can be obtained using the procedure Ax = b  LUx = b Let Ux = y then LUx = b  Ly = b
  • 18. Steps to get the solution of linear equations                                 3 2 1 3 2 1 333231 2221 11 0 00 b b b y y y lll ll l bLy    2321313 33 3 1212 22 2 11 1 1 1 and 1 ,where ylylb l y ylb l y l b y   By Forward substitution
  • 20. Matlab Implementation for LU Decomposition
  • 22. The Jacobi Method  This method makes two assumptions 1. that the system given by has a unique solution 2. the coefficient matrix A has no zeros on its main diagonal
  • 23.  To begin the Jacobi method, solve the first equation for x1 the second equation for x2 and so on, as follows.  Then make an initial approximation of the solution,
  • 26.  To begin, write the system in the form  Because you do not know the actual solution, choose
  • 27.  as a convenient initial approximation. So, the first approximation is  Continuing this procedure, you obtain the sequence of approximations shown in Table
  • 28.  Because the last two columns in Table are identical, you can conclude that to three significant digits the solution is
  • 29. Matlab Implementation for jacobi method
  • 31.  Gauss-Seidel iteration is similar to Jacobi iteration, except that new values for xi are used on the right-hand side of the equations as soon as they become available.  It improves upon the Jacobi method in two respects  Convergence is quicker, since you benefit from the newer, more accurate xi values earlier.  Memory requirements are reduced by 50%, since you only need to keep track of one set of xi values, not two sets.
  • 34.  Step 1: reformat the equations, solving the first one for x1, the second for x2, and the third for x3
  • 35.  Step 2a: Substitute the initial guesses for xi into the right-hand side of the first equation  Step 2b: Substitute the new x1 value with the initial guess for x3 into the second equation  Step 2c: Substitute the new x1 and x2 values into the third equation
  • 36.  Step 3, 4, · · · : Repeat step 2 and watch for the xi values to converge to an exact solution.
  • 37. Matlab Implementation of Gauss-Seidel Method
  • 38. Summary  Solution of linear simultaneous are discussed.  Two methods  Direct  Gauss Elimination method  LU Decomposition  Iterative  Jacobi's method  Gauss Seidal method
  • 39. References  https://en.wikipedia.org/wiki/Linear_equation(2016-06-15)  http://homel.vsb.cz/~dom033/predmety/parisLA/02_direct_methods.pdf  Numerical computational methods by P.B Patill , U.P Verma  http://college.cengage.com/mathematics/larson/elementary_linear/5e/stud ents/ch08-10/chap_10_2.pdf  http://ocw.usu.edu/Civil_and_Environmental_Engineering/Numerical_Method s_in_Civil_Engineering/NonLinearEquationsMatlab.pdf  http://people.whitman.edu/~hundledr/courses/M467/GaussSeidel.pdf

Editor's Notes

  1. A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and (the first power of) a single variable
  2. It is a direct method for finding the solution of a system of linear equations and is based on the principle of elimination. where aij(1)’s (i, j = 1, 2, 3) are the coefficient of unknowns and bi(1)’s (i = 1, 2, 3) are prescribed constants
  3. If any of the diagonal entries a11, a22, . . . , ann are zero, then rows or columns must be interchanged to obtain a coefficient matrix that has nonzero entries on the main diagonal.
  4. To begin the Jacobi method, solve the first equation for x1 the second equation for x2 and so on, as follows. Initial Approximation and substitute these values of xi into the right-hand side of the rewritten equations to obtain the first approximation. After this procedure has been completed, one iteration has been performed.
  5. In the same way, the second approximation is formed by substituting the first approximation’s x-values into the right-hand side of the rewritten equations. By repeated iterations, you will form a sequence of approximations that often converges to the actual solution.
  6. Iterative methods provide an alternative approach that an iterative methods starts with an approximate solution , and uses it by means of a recrurrence fomula to provie another approximate solution ; by repeatedly applying the formula, a sequence of solution is abtained with ( under suitable conditions)( converges to the exact solution . Iterative methods have the advantages of simplicity of operation and ease of implementation of computers. And they are realativelyi insensitive to propagation of errors; they would be used in preference to direct methods for solving lenear systems involving several handred variables. Particularly , if many of the coefficients were zero . Systems of over 100000 variable have more variables are difficult or impossible to solve by direct methods.