This is LaTeX code:
[latex]
p(1-p)+(1-p)p = 2p(1-p)
[/latex]