Legendre Q in LaTeX (Q_n(x))
- LaTeX command
Q_n(x)- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Legendre function of the second kind, the second solution of Legendre's equation, singular at x = 1 and -1.
Q_n solves the same equation as P_n, (1 - x^2) y'' - 2x y' + n(n+1) y = 0, but it is not a polynomial: for instance Q_0(x) = \frac{1}{2}\ln\frac{1+x}{1-x} and Q_1(x) = x Q_0(x) - 1. Because of the logarithmic singularities at \pm 1, it is usually discarded in problems on the full sphere and kept only when the domain excludes the poles, such as a cone or region outside a prolate spheroid. Associated versions are Q_n^m(x). Use \ln with \frac for the logarithm, and \left( \right) if the argument grows tall.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Legendre Q: $Q_n(x)$
\[ Q_0(x) = \frac{1}{2} \ln \frac{1+x}{1-x}, \quad |x| < 1 \]
\end{document}Related symbols
- Hermite Polynomial
H_n(x) - Legendre P
P_n(x) - Laguerre Polynomial
L_n(x) - Modified Bessel K
K_n(x) - Chebyshev T
T_n(x) - Modified Bessel I
I_n(x)
Frequently asked questions
- How do I write Legendre Q in LaTeX?
- Type Q_n(x) in math mode, for example $Q_0(x) = \frac{1}{2} \ln \frac{1+x}{1-x}, \quad |x| < 1$. It works in plain LaTeX without loading any package.
- Which package do I need for Q_n(x)?
- None. Q_n(x) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use Q_n(x) in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $Q_n(x)$ in running text.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan