Bias Vector in LaTeX (\mathbf{b})

b\mathbf{b}
LaTeX command
\mathbf{b}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Bold lowercase b, the usual notation for a bias vector added after a linear transformation.

The bias shifts each neuron's pre-activation, as in \mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, and per-layer versions are written \mathbf{b}^{(l)}. Bold lowercase signals a column vector by convention. \mathbf gives upright bold; if you want bold italic vectors, as some physics journals do, use \boldsymbol{b} or \bm{b} instead. Be consistent about indexing: the i-th bias entry is b_i in plain italic, not bold, since it is a scalar. In linear models, the intercept is often written as b or w_0 rather than a bold vector.

Minimal compilable example

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

z=Wx+b, b∈Rm\mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, \ \mathbf{b} \in \mathbb{R}^m
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Bias Vector: $\mathbf{b}$

\[ \mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, \ \mathbf{b} \in \mathbb{R}^m \]
\end{document}

Related symbols

All Machine Learning & AI →

Frequently asked questions

How do I write Bias Vector in LaTeX?
Type \mathbf{b} in math mode, for example $\mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, \ \mathbf{b} \in \mathbb{R}^m$. It works in plain LaTeX without loading any package.
Which package do I need for \mathbf{b}?
None. \mathbf{b} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \mathbf{b} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathbf{b}$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen