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),}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1fbc47a009afefe3352df4095aab80828bf60c17)
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.