Function Repository Resource:

EigenvectorPlot

Source Notebook

Visualize the Eigenvectors of a 2 x 2 or 3 x 3 matrix

Contributed by: Jon McLoone

ResourceFunction["EigenvectorPlot"][m]

visualizes the Eigenvectors of 2 x 2 or 3 x 3 matrix m.

Details and Options

For 2 x 2 matrices all options of VectorPlot are supported
For 3 x 3 matrices all options of VectorPlot3D are supported

Examples

Basic Examples (2) 

For 2 x 2 matrices, the vector field generated by left-multiplying by the matrix is displayed on the unit circle, together with dashed lines indicating the Eigenvectors. It can be observed that the vectors are perpendicular to the unit circle only at the Eigenvector lines:

In[1]:=
ResourceFunction["EigenvectorPlot"][{{1, 2}, {2, 0}}]
Out[1]=

For 3 x 3 matrices, the vector field is plotted on the unit sphere:

In[2]:=
ResourceFunction["EigenvectorPlot"][{{1, 2, 3}, {2, 2, 2}, {1, 2, 2}}]
Out[2]=

Options (2) 

The relevant options for VectorPlot and VectorPlot3D can be used:

In[3]:=
ResourceFunction["EigenvectorPlot"][{{1, 2}, {2, 0}}, VectorMarkers -> "Drop", VectorSizes -> 2]
Out[3]=

The VectorPoints option can only take the values Automatic, Coarse, Fine or an integer:

In[4]:=
ResourceFunction["EigenvectorPlot"][{{1, 2}, {2, 0}}, VectorPoints -> Fine]
Out[4]=
In[5]:=
ResourceFunction["EigenvectorPlot"][{{1, 2, 3}, {2, 2, 2}, {1, 2, 2}},
  VectorPoints -> 200]
Out[5]=

Publisher

Jon McLoone

Version History

  • 1.0.0 – 25 March 2020

License Information