[Tex/LaTex] Why is the \bf command applied to more than I asked

bmmath-mode

MWE:

\documentclass{article}

\usepackage{bm}

\begin{document}
$$x(t), \bf{x}(t), \bf{x(t)}$$
\end{document}

Result:

enter image description here

Question:

Why are the second and third x(t) typeset the same? In the second expression, it was asked to apply \bf to only x.

EDIT:

I had not payed attention to it when asking the question, but I would like to have a bold and italic x.

Best Answer

Use \bm instead of \bf. And \[...\] instead of $$...$$.

enter image description here

\documentclass{article}
\usepackage{bm}
\begin{document}
\[x(t), \bm{x}(t), \bm{x(t)}\]
\end{document}