Beta function in LaTeX (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.
\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
- Riemann zeta function
\zeta(s) - Gamma function
\Gamma(z) - Error Function
\text{erf}(x) - Complementary Error
\text{erfc}(x) - Bessel J
J_n(x) - Bessel Y
Y_n(x)
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.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers