You need to use the \pm command to get the latex plus-minus symbol. And you do not need to pass any argument in this command. So, take a look at this syntax below
Properties | Value |
Symbol | Plus Minus |
Argument | No |
Command | \pm |
Example |
\pm → ![]() |
For example, when you determine the square root of a number, you have to use the plus-minus sign.
\documentclass{article}
\begin{document}
$p=\sqrt{a^{2}}=\pm a$
\end{document}
Output :
If you look at the program above, you can see that the\sqrt{} command is used for the square root and a² is passed as an argument.
Minus-Plus symbol in latex
Mathematically, when a character with a plus-minus sign(±) is multiplied by a minus sign(-), the plus-minus sign before that character becomes a minus-plus sign.
Properties | Value |
Symbol | Minus Plus |
Argument | No |
Command | \mp |
Example |
\mp → ![]() |
In the same way, to get the minus-plus symbol, you need to use the\mp command instead of the \pm command.
For example, you notice that when a plus-minus character is moved to the opposite side of a mathematically equal, it becomes a minus-plus symbol. So, look at this LaTeX program below
\documentclass{article}
\begin{document}
$a\pm b=0$
$\therefore a=\mp b$
\end{document}
Output :
Hopefully, you understand how to use the plus-minus or minus plus symbol with the help of latex. And no document has been created in this tutorial, only the equation is presented in front of you with a dollar sign on both sides. Thanks.