Beta function in LaTeX (B(x, y))

B(x,y)B(x, y)
LaTeX command
B(x, y)
Package
No package needed: built into LaTeX
Mode
Text and math mode

Where it is used

Beta function B(x, y), an integral over [0, 1] closely tied to the gamma function.

The beta function is B(x, y) = \int_0^1 t^{x-1}(1-t)^{y-1}\,dt = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}, and it normalizes the beta distribution in Bayesian statistics. Strictly the symbol is a capital Greek beta, but LaTeX has no \Beta command because it looks identical to Latin B, so B is correct; some authors write \mathrm{B} to mark it as a function. It is symmetric, B(x, y) = B(y, x). The incomplete version is B(z; a, b) and the regularized form I_z(a, b). Avoid clashing with Bell or Bernoulli numbers B_n.

Minimal compilable example

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

B(x,y)=Γ(x)Γ(y)Γ(x+y)=B(y,x)B(x, y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)} = B(y, x)
\documentclass{article}
\begin{document}
Beta function: $B(x, y)$

\[ B(x, y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)} = B(y, x) \]
\end{document}

Related symbols

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

Frequently asked questions

How do I write Beta function in LaTeX?
Type B(x, y) in math mode, for example $B(x, y) = \frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)} = B(y, x)$. It works in plain LaTeX without loading any package.
Which package do I need for B(x, y)?
None. B(x, y) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use B(x, y) in text mode, or only in math mode?
Both. B(x, y) compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

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

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

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