I found the perfect solution to my problem but it's using something other than Tikz. Does anyone know how to change it to tikz.
Here is the code used:
\documentclass[svgnames]{article}
\usepackage{mathtools}
\usepackage{pst-node, auto-pst-pdf}
\begin{document}
\begin{postscript}
\begin{gather}
x^2-\Rnode{8}{8x} + 16 \[2.5ex]
x^2-\Rnode{4-4}{ 4x -4x} + 16
\end{gather}
\psset{linewidth=0.6pt, linecolor=LightSteelBlue,linejoin=1, arrows=->, arrowinset=0.12, nodesepA=2pt, angleA=-90, nodesepB=1pt, angleB=90}
\ncangle[offsetB=1.2em]{8}{4-4}
\ncangle[offsetB=-1.2em]{8}{4-4}
\end{postscript}
\end{document}
And the link to the original source. Showing Factorising via Tikz


auto-pst-pdf,\begin{postscript}and\end{postscript}. With pdflatex, its more complicated, you need shell-escape. – Manuel Cart Mar 13 '24 at 09:05