Entering math expressions in course discussions is different from entering math expressions in a math problem or in the calculator. In course discussions, you use MathJax to format the text that you type.
For tips on entering mathematical expressions in the forums, refer to Adding Math Expressions to Course Discussion Posts in the DemoX course wiki.
(You'll need to be registered with edX.org and enroll in the DemoX course.)