Linear Second-Order Equations with Solutions Involving Special Functions
DSolve can find solutions for most of the standard linear second-order ODEs that occur in applied mathematics.
Here is the solution for
Airy's equation.
| Out[1]= |  |
Here is a plot that shows the oscillatory behavior of the Airy functions for large negative values of

.
| Out[2]= |  |
The solution to this equation is given in terms of the derivatives of the Airy functions,
AiryAiPrime and
AiryBiPrime.
| Out[3]= |  |
Here is the solution for
Bessel's equation with

. Note that the solution is given in terms of Bessel functions of the first kind,
BesselJ, as well as those of the second kind,
BesselY.
| Out[4]= |  |
Here is a plot of the
BesselJ functions for specific values of

.
| Out[5]= |  |
Here is the general solution for
Legendre's equation with

.
| Out[6]= |  |
These special functions can be expressed in terms of elementary functions for certain values of their parameters. Mathematica performs this conversion automatically wherever it is possible.
These are some of these expressions that are automatically converted.
| Out[7]= |  |
As a result of these conversions, the solutions of certain ODEs can be partially expressed in terms of elementary functions. Hermite's equation is one such ODE.
Here is the solution for Hermite's equation with arbitrary

.
| Out[8]= |  |
With

set to 5, the solution is given in terms of polynomials, exponentials, and
Erfi.
| Out[9]= |  |