Modified Bessel K in LaTeX (K_n(x))

Kn(x)K_n(x)
LaTeX command
K_n(x)
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Modified Bessel function of the second kind, the decaying solution of the modified Bessel equation.

K_n, sometimes called the Macdonald function, decays like \sqrt{\pi/(2x)}\,e^{-x} for large x and blows up at the origin. It pairs with I_n as the two independent solutions of the modified Bessel equation. It appears in the Matern covariance kernel used in Gaussian processes, in the Yukawa potential in two dimensions, and in the normalizing constants of generalized inverse Gaussian distributions. Be careful: K(k) also denotes the complete elliptic integral and K_n the complete graph, so specify which K you mean when fields overlap.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

Kn(x)∼π2x e−x,x→∞K_n(x) \sim \sqrt{\frac{\pi}{2x}}\, e^{-x}, \quad x \to \infty
\documentclass{article}
\begin{document}
Modified Bessel K: $K_n(x)$

\[ K_n(x) \sim \sqrt{\frac{\pi}{2x}}\, e^{-x}, \quad x \to \infty \]
\end{document}

Related symbols

All الدوال الخاصة →

Frequently asked questions

How do I write Modified Bessel K in LaTeX?
Type K_n(x) in math mode, for example $K_n(x) \sim \sqrt{\frac{\pi}{2x}}\, e^{-x}, \quad x \to \infty$. It works in plain LaTeX without loading any package.
Which package do I need for K_n(x)?
None. K_n(x) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use K_n(x) in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $K_n(x)$ in running text.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث