# Setting Up the Problem

The first argument given to DSolve is the differential equation, the second argument is the unknown function, and the last argument identifies the independent variable.

In[1]:= |

Out[1]= |

The output of DSolve is a list of solutions for the differential equation. The extra list is required since some equations have multiple solutions. Here, since the equation is of order 1 and is linear, there is only one solution: y[x]->+^{-5 x} C[1]. The solution has an undetermined constant C[1] because no initial condition was specified. The solution can be extracted from the list of solutions using a part specification.

In[2]:= |

Out[2]= |

This form of the solution is useful for finding itself, but not for finding derivatives of or the value of at a point.

In[3]:= |

Out[3]= |

In[4]:= |

Out[4]= |

In[5]:= |

Out[5]= |

If the solution will be used in further work, it is best to specify the unknown function using rather than . This gives the solution using pure functions of the type Function[x, expr].

In[6]:= |

Out[6]= |

When the solution is in the form of pure functions, expressions can be found for derivatives of and for the values of at specific points.

In[7]:= |

Out[7]= |

In[8]:= |

Out[8]= |

In[9]:= |

Out[9]= |

In[10]:= |

Out[10]= |

When a problem has multiple solutions, you can pick out individual solutions from the solution list or you can work directly with the list.

In[11]:= |

Out[11]= |

In[12]:= |

Out[12]= |

In[13]:= |

Out[13]= |

In[14]:= |

Out[14]= |

To solve a system of equations, the first argument to DSolve must be a list of the equations and the second argument must be a list of the unknown functions.

In[15]:= |

Out[15]= |

Each solution to the system is a list of replacement rules for the unknown functions. The expressions for the unknown functions can be extracted as in previous examples.

In[16]:= |

Out[16]= |

If initial conditions are prescribed for the problem, some or all of the undetermined constants can be eliminated.

In[17]:= |

Out[17]= |

In[18]:= |

Out[18]= |

For a partial differential equation, the third argument to DSolve is a list of the independent variables for the equation.

In[19]:= |

Out[19]= |

A differential-algebraic equation is specified in the same way as a system of ordinary differential equations.

In[20]:= |

Out[20]= |

Note that it is not always possible to give the solutions for a problem in explicit form. In this case, the solution is given using an unevaluated Solve object or using InverseFunction.

In[21]:= |

Out[21]= |

In[22]:= |

Out[22]= |

In[23]:= |

Out[23]= |

In[24]:= |

Out[24]= |

In[25]:= |

Out[25]= |