SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
Some Matrix Applications
This page is a brief introduction to two applications of matrices - the solution of multiple
equations, and eigenvalue/eigenvector problems (don't worry if you haven't heard of the
latter). Before reading this you should feel comfortable with basic matrix operations. If
you are confident in your ability with this material, feel free to skip it.
Note that there is no description of how the operations are done -- it is assumed that you
are using a calculator that can handle matrices, or a program like MatLab. Also, this
page typically only deals with the most general cases, there are likely to be special cases
that aren't covered at all.
Solution of Linear Systems of Algebraic Equations
Consider a linear system of algebraic equations with n equations and n
unknowns:
In these equations, a
ij
and b
i
are constants, and the unknowns are x
i
. We can
rewrite the equations as:
where
We can find all the unknowns in the vector x by doing a few simple matrix
manipulations. If we premultiply both sides of the matrix equation by the
inverse of the A matrix we get:
Page 1 of 5Eigenvalues and Eigenvectors
which gives us our solution.
Note: This discussion has assumed that all the equations are independent, i.e. that you can't
form one of the equations from combinations of other equations.
An Example
Consider the system of 3 equations and 3 unknowns:
Clearly,
Using MatLab
» A=[2 3 1;-1 2 3;0 1 2]
A =
2 3 1
-1 2 3
0 1 2
» b=[-1 9 5]'
b =
-1
9
5
» x=inv(A)*b
x =
Page 2 of 5Eigenvalues and Eigenvectors
-1.5714
-0.1429
2.5714
Eigenvalues and Eigenvectors
Many problems present themselves in terms of an eigenvalue problem:
In this equation A is an n-by-n matrix, v is a non-zero n-by-1 vector and λ is a
scalar (which may be either real or complex). Any value of λ for which this
equation has a solution is known as an eigenvalue of the matrix A. It is
sometimes also called the characteristic value. The vector, v, which
corresponds to this value is called an eigenvector. The eigenvalue problem can
be rewritten as
If v is non-zero, this equation will only have a solution if
This equation is called the characteristic equation of A, and is an n
th
order
polynomial in λ with n roots. These roots are called the eigenvalues of A. We
will only deal with the case of n distinct roots, though they may in fact be
repeated. For each eigenvalue there will be an eigenvector for which the
eigenvalue equation is true.
Example
If
then the characteristic equation is
Page 3 of 5Eigenvalues and Eigenvectors
and the two eigenvalues are
All that's left is to find the two eigenvectors. Let's find the
eigenvector, v
1
, associated with the eigenvector, λ
1
, first.
so clearly
and the first eigenvector is any 2 element column vector in which the
two elements have equal magnitude and opposite sign.
where k
1
is an arbitrary constant. Note that we didn't have to use +1
and -1, we could have used any two quantities of equal magnitude and
opposite sign.
Going through the same procedure for the second eigenvalue:
Page 4 of 5Eigenvalues and Eigenvectors
Using MatLab
» A=[0 1;-2 -3]
A =
0 1
-2 -3
» [v,d]=eig(A)
v =
0.7071 -0.4472
-0.7071 0.8944
d =
-1 0
0 -2
The eigenvalues are the diagonal of the "d" matrix; λ
1
=-1,
λ
2
=-2. The eigenvectors are the columns of the "v" matrix.
Note that MatLab chose different values for v
1,1
, etc..., but
that the ratio of v
1,1
to v
1,2
and the ratio of v
2,1
to v
2,2
are
the same as our solution. (MatLab chooses the values such
that the sum of the squares of the elements of the eigenvector
equals unity).
Page 5 of 5Eigenvalues and Eigenvectors

Más contenido relacionado

La actualidad más candente

IB Maths SL Matrices
IB Maths SL Matrices IB Maths SL Matrices
IB Maths SL Matrices estelav
 
Computational electromagnetics
Computational electromagneticsComputational electromagnetics
Computational electromagneticsAwaab Fakih
 
Notes of Matrices and Determinants
Notes of Matrices and DeterminantsNotes of Matrices and Determinants
Notes of Matrices and DeterminantsKarunaGupta1982
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMohammad Imran
 
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
 
4.4 Identity and Inverse Matrices
4.4 Identity and Inverse Matrices4.4 Identity and Inverse Matrices
4.4 Identity and Inverse Matriceshisema01
 
Eigenvalues and Eigenvector
Eigenvalues and EigenvectorEigenvalues and Eigenvector
Eigenvalues and EigenvectorMuhammad Hamza
 
Matrix and it's application
Matrix and it's application Matrix and it's application
Matrix and it's application MOHAMMAD AKASH
 
Matrices
MatricesMatrices
Matriceskja29
 
Linear Equation in Two Variables
Linear Equation in Two VariablesLinear Equation in Two Variables
Linear Equation in Two Variablesipracticemath
 
mathematical model
mathematical modelmathematical model
mathematical modelKt Silva
 
Chapter 3 linear systems
Chapter 3 linear systemsChapter 3 linear systems
Chapter 3 linear systemsleblance
 
Linear Algebra Applications
Linear Algebra ApplicationsLinear Algebra Applications
Linear Algebra ApplicationsRamesh Shashank
 
Matlab ch1 (1)
Matlab ch1 (1)Matlab ch1 (1)
Matlab ch1 (1)mohsinggg
 
Basics mathematical modeling
Basics mathematical modelingBasics mathematical modeling
Basics mathematical modelingcyndy
 

La actualidad más candente (19)

IB Maths SL Matrices
IB Maths SL Matrices IB Maths SL Matrices
IB Maths SL Matrices
 
Computational electromagnetics
Computational electromagneticsComputational electromagnetics
Computational electromagnetics
 
Notes of Matrices and Determinants
Notes of Matrices and DeterminantsNotes of Matrices and Determinants
Notes of Matrices and Determinants
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imran
 
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
 
4.4 Identity and Inverse Matrices
4.4 Identity and Inverse Matrices4.4 Identity and Inverse Matrices
4.4 Identity and Inverse Matrices
 
Eigenvalues and Eigenvector
Eigenvalues and EigenvectorEigenvalues and Eigenvector
Eigenvalues and Eigenvector
 
Matrix and it's application
Matrix and it's application Matrix and it's application
Matrix and it's application
 
Matrices
MatricesMatrices
Matrices
 
Linear Equation in Two Variables
Linear Equation in Two VariablesLinear Equation in Two Variables
Linear Equation in Two Variables
 
Pertemuan 1 2
Pertemuan 1  2Pertemuan 1  2
Pertemuan 1 2
 
Linear algebra
Linear algebraLinear algebra
Linear algebra
 
mathematical model
mathematical modelmathematical model
mathematical model
 
Chapter 3 linear systems
Chapter 3 linear systemsChapter 3 linear systems
Chapter 3 linear systems
 
Linear Algebra Applications
Linear Algebra ApplicationsLinear Algebra Applications
Linear Algebra Applications
 
Matlab ch1 (1)
Matlab ch1 (1)Matlab ch1 (1)
Matlab ch1 (1)
 
Basics mathematical modeling
Basics mathematical modelingBasics mathematical modeling
Basics mathematical modeling
 
Matlab operators
Matlab operatorsMatlab operators
Matlab operators
 

Similar a Matlab eig

Eigen values and Eigen vectors ppt world
Eigen values and Eigen vectors ppt worldEigen values and Eigen vectors ppt world
Eigen values and Eigen vectors ppt worldraykoustav145
 
Setting linear algebra problems
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problemsJB Online
 
Numerical solution of eigenvalues and applications 2
Numerical solution of eigenvalues and applications 2Numerical solution of eigenvalues and applications 2
Numerical solution of eigenvalues and applications 2SamsonAjibola
 
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...Ceni Babaoglu, PhD
 
Eigen-Decomposition: Eigenvalues and Eigenvectors.pdf
Eigen-Decomposition: Eigenvalues and Eigenvectors.pdfEigen-Decomposition: Eigenvalues and Eigenvectors.pdf
Eigen-Decomposition: Eigenvalues and Eigenvectors.pdfNehaVerma933923
 
Tutorial on EM algorithm – Part 1
Tutorial on EM algorithm – Part 1Tutorial on EM algorithm – Part 1
Tutorial on EM algorithm – Part 1Loc Nguyen
 
Aplicaciones y subespacios y subespacios vectoriales en la
Aplicaciones y subespacios y subespacios vectoriales en laAplicaciones y subespacios y subespacios vectoriales en la
Aplicaciones y subespacios y subespacios vectoriales en laemojose107
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationChristopher Gratton
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and EigenvectorsVinod Srivastava
 
Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsLizeth Paola Barrero
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsLizeth Paola Barrero
 

Similar a Matlab eig (20)

Eigen values and Eigen vectors ppt world
Eigen values and Eigen vectors ppt worldEigen values and Eigen vectors ppt world
Eigen values and Eigen vectors ppt world
 
Setting linear algebra problems
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problems
 
Power method
Power methodPower method
Power method
 
Numerical solution of eigenvalues and applications 2
Numerical solution of eigenvalues and applications 2Numerical solution of eigenvalues and applications 2
Numerical solution of eigenvalues and applications 2
 
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
4. Linear Algebra for Machine Learning: Eigenvalues, Eigenvectors and Diagona...
 
Eigen-Decomposition: Eigenvalues and Eigenvectors.pdf
Eigen-Decomposition: Eigenvalues and Eigenvectors.pdfEigen-Decomposition: Eigenvalues and Eigenvectors.pdf
Eigen-Decomposition: Eigenvalues and Eigenvectors.pdf
 
151522-161226185046.pdf
151522-161226185046.pdf151522-161226185046.pdf
151522-161226185046.pdf
 
Chapter 4.pptx
Chapter 4.pptxChapter 4.pptx
Chapter 4.pptx
 
Tutorial on EM algorithm – Part 1
Tutorial on EM algorithm – Part 1Tutorial on EM algorithm – Part 1
Tutorial on EM algorithm – Part 1
 
Aplicaciones y subespacios y subespacios vectoriales en la
Aplicaciones y subespacios y subespacios vectoriales en laAplicaciones y subespacios y subespacios vectoriales en la
Aplicaciones y subespacios y subespacios vectoriales en la
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to Diagonalisation
 
PROJECT
PROJECTPROJECT
PROJECT
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and Eigenvectors
 
Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal Equations
 
Direct methods
Direct methodsDirect methods
Direct methods
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
 
Direct methods
Direct methodsDirect methods
Direct methods
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
Unger
UngerUnger
Unger
 
project report(1)
project report(1)project report(1)
project report(1)
 

Más de Ahmed Chegrani

3 longitudinal static stability 6
3 longitudinal static stability 63 longitudinal static stability 6
3 longitudinal static stability 6Ahmed Chegrani
 
3 estimating aerodynamic properties 9
3 estimating aerodynamic properties 93 estimating aerodynamic properties 9
3 estimating aerodynamic properties 9Ahmed Chegrani
 
2 aoe 3134 complete aircraft equations
2 aoe 3134 complete aircraft equations2 aoe 3134 complete aircraft equations
2 aoe 3134 complete aircraft equationsAhmed Chegrani
 
1 aoe 3134 stability and control
1 aoe 3134 stability and control1 aoe 3134 stability and control
1 aoe 3134 stability and controlAhmed Chegrani
 
1 aoe 3134 stability and control 1
1 aoe 3134 stability and control 11 aoe 3134 stability and control 1
1 aoe 3134 stability and control 1Ahmed Chegrani
 
Lateral directional stability effect horiz tail
Lateral directional stability effect horiz tailLateral directional stability effect horiz tail
Lateral directional stability effect horiz tailAhmed Chegrani
 
1 nelson flight stability_automatic_control
1 nelson flight stability_automatic_control1 nelson flight stability_automatic_control
1 nelson flight stability_automatic_controlAhmed Chegrani
 

Más de Ahmed Chegrani (10)

4 basic concepts4
4 basic concepts44 basic concepts4
4 basic concepts4
 
3 longitudinal static stability 6
3 longitudinal static stability 63 longitudinal static stability 6
3 longitudinal static stability 6
 
3 estimating aerodynamic properties 9
3 estimating aerodynamic properties 93 estimating aerodynamic properties 9
3 estimating aerodynamic properties 9
 
2 aoe 3134 complete aircraft equations
2 aoe 3134 complete aircraft equations2 aoe 3134 complete aircraft equations
2 aoe 3134 complete aircraft equations
 
1 aoe 3134 stability and control
1 aoe 3134 stability and control1 aoe 3134 stability and control
1 aoe 3134 stability and control
 
1 aoe 3134 stability and control 1
1 aoe 3134 stability and control 11 aoe 3134 stability and control 1
1 aoe 3134 stability and control 1
 
Mae331 lecture1
Mae331 lecture1Mae331 lecture1
Mae331 lecture1
 
Lateral directional stability effect horiz tail
Lateral directional stability effect horiz tailLateral directional stability effect horiz tail
Lateral directional stability effect horiz tail
 
L'organigrame
L'organigrameL'organigrame
L'organigrame
 
1 nelson flight stability_automatic_control
1 nelson flight stability_automatic_control1 nelson flight stability_automatic_control
1 nelson flight stability_automatic_control
 

Último

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 

Último (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

Matlab eig

  • 1. Some Matrix Applications This page is a brief introduction to two applications of matrices - the solution of multiple equations, and eigenvalue/eigenvector problems (don't worry if you haven't heard of the latter). Before reading this you should feel comfortable with basic matrix operations. If you are confident in your ability with this material, feel free to skip it. Note that there is no description of how the operations are done -- it is assumed that you are using a calculator that can handle matrices, or a program like MatLab. Also, this page typically only deals with the most general cases, there are likely to be special cases that aren't covered at all. Solution of Linear Systems of Algebraic Equations Consider a linear system of algebraic equations with n equations and n unknowns: In these equations, a ij and b i are constants, and the unknowns are x i . We can rewrite the equations as: where We can find all the unknowns in the vector x by doing a few simple matrix manipulations. If we premultiply both sides of the matrix equation by the inverse of the A matrix we get: Page 1 of 5Eigenvalues and Eigenvectors
  • 2. which gives us our solution. Note: This discussion has assumed that all the equations are independent, i.e. that you can't form one of the equations from combinations of other equations. An Example Consider the system of 3 equations and 3 unknowns: Clearly, Using MatLab » A=[2 3 1;-1 2 3;0 1 2] A = 2 3 1 -1 2 3 0 1 2 » b=[-1 9 5]' b = -1 9 5 » x=inv(A)*b x = Page 2 of 5Eigenvalues and Eigenvectors
  • 3. -1.5714 -0.1429 2.5714 Eigenvalues and Eigenvectors Many problems present themselves in terms of an eigenvalue problem: In this equation A is an n-by-n matrix, v is a non-zero n-by-1 vector and λ is a scalar (which may be either real or complex). Any value of λ for which this equation has a solution is known as an eigenvalue of the matrix A. It is sometimes also called the characteristic value. The vector, v, which corresponds to this value is called an eigenvector. The eigenvalue problem can be rewritten as If v is non-zero, this equation will only have a solution if This equation is called the characteristic equation of A, and is an n th order polynomial in λ with n roots. These roots are called the eigenvalues of A. We will only deal with the case of n distinct roots, though they may in fact be repeated. For each eigenvalue there will be an eigenvector for which the eigenvalue equation is true. Example If then the characteristic equation is Page 3 of 5Eigenvalues and Eigenvectors
  • 4. and the two eigenvalues are All that's left is to find the two eigenvectors. Let's find the eigenvector, v 1 , associated with the eigenvector, λ 1 , first. so clearly and the first eigenvector is any 2 element column vector in which the two elements have equal magnitude and opposite sign. where k 1 is an arbitrary constant. Note that we didn't have to use +1 and -1, we could have used any two quantities of equal magnitude and opposite sign. Going through the same procedure for the second eigenvalue: Page 4 of 5Eigenvalues and Eigenvectors
  • 5. Using MatLab » A=[0 1;-2 -3] A = 0 1 -2 -3 » [v,d]=eig(A) v = 0.7071 -0.4472 -0.7071 0.8944 d = -1 0 0 -2 The eigenvalues are the diagonal of the "d" matrix; λ 1 =-1, λ 2 =-2. The eigenvectors are the columns of the "v" matrix. Note that MatLab chose different values for v 1,1 , etc..., but that the ratio of v 1,1 to v 1,2 and the ratio of v 2,1 to v 2,2 are the same as our solution. (MatLab chooses the values such that the sum of the squares of the elements of the eigenvector equals unity). Page 5 of 5Eigenvalues and Eigenvectors