Type the following syntax to show the above equation:
[b]$[/b]\frac{1}{p}+\frac{1}{q}=\frac{1}{f}[b]$[/b]

Please check out http://en.wikipedia.org/wiki/Math_markup.
However, you need to add $ sign before and after the equation.