Which numerical procedure to use

  • Context: Graduate 
  • Thread starter Thread starter aaaa202
  • Start date Start date
  • Tags Tags
    Numerical Procedure
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
aaaa202
Messages
1,144
Reaction score
2
I have a system of linear differential equations with known boundary conditions. First of all what is the general solution to such a system? I know it is exponentials with the eigenvalues, but I couldn't find any place where the exact full solution was stated.
Second of all, I want to write a program in MATLAB that solves this set of linear differential equations. In general how am I better off:
- Simulate the solutions numerically starting from scratch i.e. dy1 dy2, dt and everything are numerical quantities
- Find eigenvalues to the coefficient matrix numerically, plug into the analytical solution (which is the one I am not completely sure off, but I think you can write up a general formula) and solve for the unknown constants by applying boundary conditions.
 
Physics news on Phys.org
aaaa202 said:
I have a system of linear differential equations with known boundary conditions. First of all what is the general solution to such a system? I know it is exponentials with the eigenvalues, but I couldn't find any place where the exact full solution was stated.
That's because the description is too general for there to be a systematic way of finding the solution.
i.e. the system may not have a solution.

http://tutorial.math.lamar.edu/Classes/DE/SolutionsToSystems.aspx
... this sort of thing is the closest you'll get to a general approach to a solution.

To do this in matlab, you'd construct the matrix A (see link) and then use Matlab's matrix tools to analyse it. i.e. eigs() will find the eigenvalues and vectors.
 
But as far as I can see from the link you provided isn't the most general solution simply:

x(vector) = c1 * eigenvector_1 * exp(eigenvalue_1 * t) + c2 * eigenvector_2 * exp(eigenvalue_2 * t) + ...

So it is all about fitting that solution to the boundary conditions? Or am I wrong?