Fix LaTeX code in forward_backward.md

Fix LaTeX code in forward_backward.md by adding double $ to each
mathematical expression.