Solving for constant in a linear combination of vectors

Click For Summary
SUMMARY

The discussion focuses on solving for constants in a linear combination of vectors represented by the equation P = c1*V1 + c2*V2, where P, V1, and V2 are equal-sized matrices. The user is attempting to find the steady state of a Markov matrix using MATLAB, specifically by calculating eigenvectors and constants. The solution involves taking the inner product of P with the eigenvectors to create a system of equations for the constants c1 and c2, which can be solved using matrix inversion, provided the eigenvectors are distinct and orthonormal.

PREREQUISITES
  • Understanding of linear algebra concepts, particularly eigenvectors and inner products.
  • Familiarity with MATLAB for matrix operations and solving equations.
  • Knowledge of Markov matrices and their steady-state properties.
  • Experience with matrix inversion techniques and conditions for invertibility.
NEXT STEPS
  • Learn how to implement eigenvalue decomposition in MATLAB.
  • Study the properties of orthonormal vectors and their applications in linear combinations.
  • Explore MATLAB functions for matrix inversion and solving linear systems.
  • Investigate the implications of linear dependence among eigenvectors in Markov processes.
USEFUL FOR

Students and professionals in mathematics, data science, and engineering who are working with linear algebra, particularly in the context of Markov processes and matrix computations in MATLAB.

robbondo
Messages
90
Reaction score
0

Homework Statement


P = c1*V1 + c2*V2
Where P, V1, and V2, are equal sized matrices


Homework Equations





The Attempt at a Solution



So what this problem amounts to is me trying to find the steady state of Markov matrix. So I solved for the eigen vectors, and as is my understanding I should be able to solve for my initial condition matrix P as a linear combination of some constant and the eigen vectors. I'm doing this all in MATLAB and I can't seem to figure out how to plug that equation into MATLAB. I know that it should be possible to solve for these constants(C1,C2) by hand, but I'd like to be able to do this for large matrices. Any suggestions?
 
Physics news on Phys.org
Is this matrix P a probability-matrix?
 
yeah... So I figured out that i can make the vectors and the constants into matrices and then use the inverse to solve for C1, etc. but it's not working for some reason. I'm still working on it.
 
One way you can think about it is that your matrices P, V_1 and V_2 are all vectors in \mathbb{R}^{n}.

So we have the equation,

P = c_1 V_1 + c_2 V_2

Taking the inner product of P with the V_i you get a system of equations for the c_{i}.

\langle P,V_1 \rangle = c_1 \langle V_1,V_1 \rangle + c_2 \langle V_2,V_1 \rangle
\langle P,V_2 \rangle = c_1 \langle V_1,V_2 \rangle + c_2 \langle V_2,V_2 \rangle

Further, if your V_i are orthonormal, then the above reduces to,

\langle P,V_i \rangle = c_i

You should be able to solve the above system (A x=b) by left-multiplying both sides by A^{-1} since the only time A would be non-invertible is if \langle V_1,V_1 \rangle \langle V_2,V_2 \rangle = {\langle V_1,V_2 \rangle}^2;that is, if V_1 and V_2 are linearly dependent. However, this is impossible because they are distinct eigenvectors of a matrix.
 

Similar threads

Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K