Equation with canceled terms using an arrow

arrowsequations

I know this question is already asked. I wanted to use an arrow as the canceling arrow with a zero near the arrow head as follows.

enter image description here

Best Answer

The package cancel also provides a command \cancelto{<value>}{<expression>} that adds an arrow over <expression>, pointing to <value>.

\documentclass{article}
\usepackage{amsmath}
\usepackage{cancel}
\begin{document}
\[
\cancelto{0}{\frac{\partial T}{\partial t}} = \kappa \frac{\partial^2 T}{\partial z^2} + v_z \frac{\partial T}{\partial z}
\]
\end{document}
Related Question