By using nice threads e.g. this and this we find out how the method could be visible in a text. I did the following MWE to do it again:
\documentclass[a4paper,12pt,twoside]{book}
\usepackage{tikz}
\usepackage{amsmath,amssymb,amsthm,amsfonts}
\usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
\usepackage[computeautoilg=off]{xepersian}
\settextfont[Scale=1.1]{IRXLotus}
\ExplSyntaxOn
\cs_set_eq:NN
\etex_iffontchar:D
\tex_iffontchar:D
\cs_undefine:N \c_one
\int_const:Nn \c_one { 1 }
\ExplSyntaxOff
\setmathfont[Scale=0.85]{Latin Modern Math}
\setmathfont{Cambria Math}[range={\int}, Scale=MatchUppercase ]
\newcommand{\rn}[2]{%% "rn": "remember node"
\tikz[remember picture,baseline=(#1.base)]\node [inner sep=0] (#1){$#2$};}
\begin{document}
\begin{align*}
\int t^2\sin tdt&=~~{\footnotesize\begin{matrix}
\rn{11}{t^2~} & \vrule& \sin tdt&&\\
\hline
\rn{21}{2t~} & \vrule& \rn{23}{~-\cos t~~}&&\rn{24}{~}\\
\hline
\rn{31}{2~} & \vrule& \rn{33}{-\sin t~~}&&\hspace*{-0.2cm}\rn{34}{{\oplus}}\\
\hline
0 & \vrule& \rn{43}{\cos t~}&&\hspace*{-0.2cm}\rn{44}{\ominus}\\
& & &&\hspace*{-0.2cm}\rn{54}{\oplus}
\end{matrix}}\\
&=
t^2(-\cos t)+2t\sin t +\cos t\\
&=-t^2\cos t+2t\sin t +\cos t.
\end{align*}
\begin{tikzpicture}[overlay,remember picture]
\draw [-stealth,line width=4pt, gray!35, opacity=0.6] (21) -- (44) ;
\draw [-stealth,line width=4pt, gray!35, opacity=0.6] (31) -- (54) ;
\draw [-stealth,line width=4pt, gray!35, opacity=0.6] (11) -- (34) ;
\end{tikzpicture}
\end{document}
How to make the functions bring forward so that the arrows will be back of them? Play with 'opacity' did not work as I had expected! Thanks for any help!
nicematrix
which allows to do that very easily.