Linear First-Order Equations

The following is a linear first-order ODE because both and occur in it with power 1 and is the highest derivative. Note that the solution contains the imaginary error function Erfi.
In[1]:=
Click for copyable input
Out[1]=
Here is the solution for a more general linear first-order ODE. The variables are used as dummy variables for integration. The Erfi term in the previous example comes from the integral in the second term of the general solution as follows.
In[2]:=
Click for copyable input
Out[2]=
A more traditional form of the solution can be obtained by replacing with a variable such as .
In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »