\ bold mathematics
$f(x)=x^2+2x+ 1$
\unboldmath
The mathematical black body obtained in this way is beautiful in appearance and correct in style. Just using the \mathbf command can only get positive bold, but not oblique bold, so be sure to pay attention.