\cancel{5}

The LaTeX command \cancel{5} is used to draw a diagonal line through the number 5, indicating that it is being canceled or negated. This is often used in mathematical annotations to show that a term is being removed or simplified in an equation or expression.

Examples

Canceling the 5 in the numerator and denominator of a fraction.

\frac{\cancel{5}x}{5} = x

Canceling out the number 5 with its additive inverse.

\cancel{5} + 5 = 0

Indicating that the number 5 is being canceled in a multiplication operation.

\cancel{5} \times 2 = 10