# Writing Math equations in MSE. [duplicate]

How do I write the mathematical equations in a question, here on stack exchange?

When I try to write a question which involves equations, I get stuck as I don't know how to input those equations...

• If you basic LaTeX/amsmath, it is usually the same code (equations numbering is not automatic: you have to use \tag{some number/symbol}). – Bernard Jul 12 '20 at 13:19
• If you want to know how a particular equation is formatted (i.e. to help you learn), you can press "improve this question/answer" to see how it was written, or you can right-click on a particular formatted block (you should see a pop-up menu) and press Show Math As $\to$ TeX Commands to see the code used. Put this code between $ signs for inline maths (e.g.$a + b^2 = 10$) or $$ signs for equations that take their own line, e.g.$$\int_{-\infty}^\infty e^{-x^2} \, \mathrm{d}x = \sqrt{\pi}.$\$ – user804886 Jul 12 '20 at 14:58
• Yes that's good! – Harrison Wells Jul 12 '20 at 21:25