Ask Your Question
1

plot a phase portrait

asked 2021-11-13 15:49:32 +0100

green_l gravatar image

updated 2021-11-13 15:54:55 +0100

slelievre gravatar image

How can we plot the phase portait?

I got a system of two differential equations:

$$ du/dt = u(1-u-0.2v) $$

$$ dv/dt = v(1-v-0.5u) $$

For a vector field:

var('u v')
plot_vector_field([u*(1-u-0.2*v),v*(1-v-0.5*u)],[u,0,2],[v,0,2])
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-13 22:09:35 +0100

eric_g gravatar image

updated 2021-11-13 22:10:12 +0100

Use streamline_plot:

streamline_plot([u*(1-u-0.2*v),v*(1-v-0.5*u)], [u,0,2], [v,0,2])
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-11-13 14:42:24 +0100

Seen: 310 times

Last updated: Nov 13 '21