How can I plot the vector field of a differential equation on the real line?

188 Views Asked by At

I´m trying to plot:

enter image description here

for the differential equation $x'=4x^2-16$ in matlab. I have tried so many things but I can´t come to a solution. I appreciate the help!

1

There are 1 best solutions below

1
On

I don't know how to do it in matlab, but I drew the graph of the function in geogebra and it looks like this:

enter image description here

For $x<-2$ you have $x'>0$, so the arrow goes to the left.

For $-2<x<2$ you have $x'>0$, so the arrow goes to the right.

For $x>2$ you have $x'>0$, so the arrow goes to the left.