# equation with canceled terms

How to write this equation please

xs'e^x + xse^x + s^2e^{2x} − xse^x = e^{2x},

• Welcome to TeX.SE. Package cancel helps ;-) There might be other packages as well – user31729 Jun 26 '17 at 20:43
• Also, please edit your question title to something a little more meaningful. – TheIncredibleZ1 Jun 26 '17 at 20:43

\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.