How to write this equation please
xs'e^x + xse^x + s^2e^{2x} − xse^x = e^{2x},
\documentclass{article}
\usepackage{cancel}
\begin{document}
\[
xs'e^x + \cancel{xse^x} + s^2e^{2x} − \cancel{xse^x} = e^{2x},
\]
\end{document}
When you load the cancel package as suggested by Christian, you do the following:
xs'e^{x} + \cancel{cse^{x}} + s^2 e^{2x} - \cancel{xse^{x}} = e^{2x}
Notice the \cancel{} command.
cancelhelps ;-) There might be other packages as well – Jun 26 '17 at 20:43