Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Plotting the Solution

A plot of the solution given by DSolve can give useful information about the nature of the solution, for instance, whether it is oscillatory in nature. It can also serve as a means of solution verification if the shape of the graph is known from theory or from plotting the vector field associated with the differential equation. A few examples that use different Mathematica graphics functions follow.

Here is the general solution to a linear first-order equation.

In[478]:= 

Out[478]=

The solution can be plotted for specific values of the constant C[1] using Plot.

In[479]:= 

Here is the plot for a linear second-order ODE with initial values prescribed at 0.

In[480]:= 

Out[480]=

In[481]:= 

This nonlinear equation has two solutions that can be plotted on the same graph.

In[482]:= 

Out[482]=

In[483]:= 

The solution to this Abel ODE is given in implicit form.

In[484]:= 

Out[484]=

A contour plot can be used to study the nature of the solution. Each contour line corresponds to a solution to the ODE for a fixed value of C[1].

In[485]:= 

Out[485]=

In[486]:= 

Here is the plot of the solutions to a system of two linear ODEs.

In[487]:= 

Out[487]=

In[488]:= 

The ParametricPlot function can be used to trace the solution curve {x[t], y[t]} in the plane.

In[489]:= 

Here is the plot for the solution to a DAE.

In[490]:= 

Out[490]=

In[491]:= 

Here is the general solution to a linear PDE.

In[492]:= 

Out[492]=

Here is a plot of the solution surface for a particular choice of the arbitrary function C[1].

In[493]:= 


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: