# 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 Wolfram Language graphics functions follow.

Here is the general solution to a linear first-order equation.
 In[1]:=
 Out[1]=
The solution can be plotted for specific values of the constant C[1] using Plot. The use of Evaluate reduces the time taken by Plot and can also help in cases where the solution has discontinuities.
 In[2]:=
 Out[2]=
Here is the plot for a linear second-order ODE with initial values prescribed at 0.
 In[3]:=
 Out[3]=
 In[4]:=
 Out[4]=
This nonlinear equation has two solutions that can be plotted on the same graph.
 In[5]:=
 Out[5]=
 In[6]:=
 Out[6]=
The solution to this Abel ODE is given in implicit form.
 In[7]:=
 Out[7]=
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[8]:=
 Out[8]=
 In[9]:=
 Out[9]=
Here is the plot of the solutions to a system of two linear ODEs. The WorkingPrecision option in Plot is required because the solution is fairly complicated.
 In[10]:=
 Out[10]=
 In[11]:=
 Out[11]=
The ParametricPlot function can be used to trace the solution curve {x[t],y[t]} in the plane.
 In[12]:=
 Out[12]=
Here is the plot for the solution to a DAE.
 In[13]:=
 Out[13]=
 In[14]:=
 Out[14]=
Here is the general solution to a linear PDE.
 In[15]:=
 Out[15]=
Here is a plot of the solution surface for a particular choice of the arbitrary function C[1].
 In[16]:=
 Out[16]=