Plotting vector fields in MATLAB or Maple

Click For Summary
SUMMARY

The discussion focuses on plotting vector fields in MATLAB or Maple, specifically for the linear system defined by x' = (-2 1; 1 -2)x. The user has derived two linearly independent solutions, x1 = (1;1)e^(-t) and x2 = (1;-1)e^(-3t), and seeks an efficient method to visualize these solutions as a vector field. Recommendations include utilizing MATLAB's built-in plotting functions, as well as referencing online tutorials for guidance on vector field plotting.

PREREQUISITES
  • Understanding of linear differential equations
  • Familiarity with MATLAB or Maple programming environments
  • Knowledge of vector field concepts
  • Basic skills in plotting functions in MATLAB or Maple
NEXT STEPS
  • Explore MATLAB's quiver function for vector field visualization
  • Learn about Maple's plots package for vector fields
  • Research tutorials on MATLAB plotting techniques specific to differential equations
  • Investigate the use of eigenvalues and eigenvectors in system solutions
USEFUL FOR

Students and educators in mathematics or engineering, particularly those working with differential equations and seeking to visualize solutions using MATLAB or Maple.

JefeNorte
Messages
9
Reaction score
0

Homework Statement



The original problem was x'=(-2 1; 1 -2)*x and I needed to find two linearly independent solutions.

Homework Equations


The Attempt at a Solution



I found that x1=(1;1)e^(-t) and x2=(1;-1)e^(-3t). Now I am trying to plot a vector field of this. Is there an easy way to do this using MATLAB or Maple or do i need to do each point by hand? I would like to avoid unnecessary headaches if possible.

Thanks
 
Physics news on Phys.org
There are many good tutorials on Matlab plotting on YouTube. Here is one related to vector field plotting.

 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K