LegendreQ

LegendreQ[nx]
returns the Legendre function of the second kind Q_n(x).
LegendreQ[nmx]
returns the associated Legendre function of the second Q^m_n(x).