In mathematics, the Lommel differential equation, named after Eugen von Lommel, is an inhomogeneous form of the Bessel differential equation

Its solutions are given by the Lommel functions
and
:

![{\displaystyle S_{\mu ,\nu }(z)=s_{\mu ,\nu }(z)+2^{\mu -1}\Gamma \left({\frac {\mu +\nu +1}{2}}\right)\Gamma \left({\frac {\mu -\nu +1}{2}}\right)\left(\sin \left[(\mu -\nu ){\frac {\pi }{2}}\right]J_{\nu }(z)-\cos \left[(\mu -\nu ){\frac {\pi }{2}}\right]Y_{\nu }(z)\right),}](./_assets_/eb734a37dd21ce173a46342d1cc64c92/1fbc47a009afefe3352df4095aab80828bf60c17.svg)
where
is a Bessel function of the first kind and
a Bessel function of the second kind.
The function
can also be written as

where
is a generalized hypergeometric function.