The equation is autonomous, since the independent variable, let us call it, does not explicitly appear in the equation. To plot the slope field and isocline for this equation, one can use the following code in GNU Octave/MATLABFfun = @(X,Y)(2-Y).*Y; % function f(x,y)=(2-y)y =meshgrid(0:.2:6,-1:.2:3); % choose the plot sizes DY=Ffun(X,Y); DX=ones(size(DY)); % generate the plot values quiver(X,Y,DX,DY); % plot the direction field hold on; contour(X,Y,DY,); %add the isoclines title('Slope field and isoclines for f(x,y)=(2-y)y')
One can observe from the plot that the function is, of course, -invariant, and so it the shape of the solution, i.e. for any shift .
Solving the equation symbolically in MATLAB, by runningy=dsolve('Dy=(2-y)*y','x'); % solve the equation symbolically
we obtain two equilibrium solutions, and, and a third solution involving an unknown constant ,y(3)=-2/(exp(C3 - 2*x) - 1)
Picking up some specific values for the initial condition, we can add the plot of several solutionsy1=dsolve('Dy=(2-y)*y','y(1)=1','x'); % solve the initial value problem symbolically y2=dsolve('Dy=(2-y)*y','y(2)=1','x'); % for different initial conditions y3=dsolve('Dy=(2-y)*y','y(3)=1','x'); y4=dsolve('Dy=(2-y)*y','y(1)=3','x'); y5=dsolve('Dy=(2-y)*y','y(2)=3','x'); y6=dsolve('Dy=(2-y)*y','y(3)=3','x'); ezplot(y1, ); ezplot(y2, ); % plot the solutions ezplot(y3, ); ezplot(y4, ); ezplot(y5, ); ezplot(y6, ); title('Slope field, isoclines and solutions for f(x,y)=(2-y)y')
Read more about this topic: Autonomous System (mathematics)
Other articles related to "example":
... Then the projection on the first component of a distribution's wave front set is nothing else than its classical singular support, i.e ... the complement of the set on which its restriction would be a smooth function ...
4 ... Next we have to scale the structures up by increasing m ...
Example may also refer to:
- Example (musician), a British musician
- Example, Florida rock band For Squirrels' sole major-label album, released in 1995
- example.com, example.net, example.org, example.edu and .example, domain names reserved for use in documentation as examples
- HMS Example (P165), an Archer-class patrol and training vessel of the British Royal Navy
- The Example, a 1634 play by James Shirley
- The Example (comics), a 2009 graphic novel by Tom Taylor and Colin Wilson
Famous quotes containing the word example:
“Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.”
—Marcel Proust (18711922)