How to write fraction(¼) in LaTeX?

Symbol/Unicode Fraction/U+00BC
Type of symbol Multiplication
Package (requirement) No
Argument Yes, a,b
Latex command \frac{arg1}{arg2}
Example \frac{arg1}{arg2} →

We use fractions in most mathematical equations. The \frac{arg1}{arg2} command is used to print fractions in a latex document and requires an argument along with it.

\documentclass{article}
\begin{document}
$$\frac{a}{b}$$
$$\frac{3\left(\frac{1}{2}\right)}{5}-\frac{\frac{1}{2}}{3}$$
$$\frac{x+1}{5y+10}$$
\end{document}

Output :