How do I incorporate mathematical symbols into my solutions / explanations ?

1 Answer
Jan 1, 2016

Cue hashtags!


Socratic uses a very cool formatting technology called ASCIIMathML for adding math equations and symbols into answers.

Basically, all you have to do in order to get your math equations and symbols to format as math text is to use hashtags, #, before and after calculation lines.

So, for example, you can write

  • without the hashtags

2 + 2

  • with the hashtags


The added hashtags will tell the editor that whatever text is placed between the hashtags is to be interpreted as math code.

You can use ^ and _ to add superscripts and subscripts

  • without the hashtags

x_1^2 + x_2^2 = 0

  • with the hashtags

#x_1^2 + x_2^2 = 0#

You can use various operators like sqrt() for square roots

  • without the hashtags

sqrt(x/2 + x/4)

  • *with the hashtags

#sqrt(x/2 + x/4)#

You can even add color and strikeouts to your equations

  • without the hashtags

cancel(x) + 3 - cancel(x) = color(green)(3)

  • with the hashtags

#cancel(x) + 3 - cancel(x) = color(green)(3)#

The full guide to adding math formatting can be found here

You can find all kinds of awesome math features, like how to write matrices or use the graphing tool, in the answers written here