## Math Equations in Wordpress

This tutorial is for absolute beginners. If you want to see how fancy the end result can be, try Terry Tao’s blog.

To post equations in WordPress you should start your equation with $latex and end it with a $.

For example,

gives the equation

$x=2$

For all future equations in my tutorials, I am presuming that the $latex and the $ are in place.

Anything using +, -, (, ), or = acts like you might expect:

4-2x+3=2-(x+4) turns into $4-2x+3=2-(x+4)$

Putting a ^ mark gets an exponent:

x^2+3 turns into $x^2+3$

If you want to put more than just one number or variable into an exponent, surround the relevant part with { } marks.

x^{2+x} turns into $x^{2+x}$

If you want to write a fraction, use a \frac followed by the numerator and denominator of the equation in curly brackets { }. This one’s a little more confusing, so three examples:

\frac{x}{y} turns into $\frac{x}{y}$
\frac{x+3}{x^5} turns into $\frac{x+3}{x^5}$
\frac{x^2}{x^2y^3z^4} turns into $\frac{x^2}{x^2y^3z^4}$

Finally, just to show off how flexible this system is:

\frac{x}{2+\frac{x}{2-\frac{x}{3}}} turns into $\frac{x}{2+\frac{x}{2-\frac{x}{3}}}$

Feel free to use the comments space of this post to practice a little; I’ll houseclean the comments away later.

### 54 Responses

1. latex$tanx=1320/35$

2. $latextanX=1320/35$

3. Almost. You need a space between $latex and tan. You should also put one between tan and x. 4. $x^2$ 5. $x^2$ 6. $+$ 7. $+$ 8. $+=$ 9. V1= 2600 $cos120, sin120$ 10. V1= 2600$latex$11. V1= $2600*cos120,sin120$ 12. $-1300,2251+21,21$ 13. $^1/2(1279)^2+(2272)^2$ 14. $$\int^{x^2}_x{1+{sin \left(a\right)\ }}$$ 15.$latex$\int^{x^2}_x{1+{sin \left(a\right)\ }}$16. $x=7$ 17. ty so much it helap me a lot.. i wonder is there a guide to a complete latex strings 18. […] * লাটেক্সের একটি বড় টিউটোরিয়াল * Math Equations in WordPress […] 19. Since this post is more about latex than wordpress latex quirks, a pointer to basic latex math info may be helpful: ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf (Then you can do a followup post on the wordpress latex quirks like requiring that everything be in one line, and use of aligned instead of align, …) . 20. $\frac{My Outcomes}{My Inputs}$ vs $\frac{Other's Outcomes}{Other's Inputs}$ 21. $x^{x+1}-x$ 22. I have tried using the latex commands but I do not get the nice MathType format that you have. Is there anything else I need to do? Is it because I am using a Mac? 23. $x=2$ 24. Martin M. Only the WordPress.com blogs currently support LaTeX processing in the comments. 25. $tan X=1320/35$ 26. Anonymous did you forget the “\” before “tan”: latex \tan X = 1320/35$to get $\tan X = 1320/35$ 27. $tanX=5$ 28.$latex \frac{a}{b}

29. $\frac{a}{b}$

30. $S = \sum\limits_{i = 1}^n {{A_{ij}} - {A_{ji}}}$ … yay for Mathtype

31. $!works$

32. do you need some plugins?
$LaTeX$

33. $x^2+3$

34. $latexE=\frac{LIFE}{GIFT}$

• $E=\frac{LIFE}{GIFT}$

35. $x=2$

36. Thank you so much!
I was having a hard time trying to embed equations in a blog entry. Just a question: is it possible to change the font for the equations? this of course is not so relevant, but it would be great to be able to display the equation in a more “friendly” font than the preformated one.

Thanks again for this blog post, it was really helpful.

37. $e=m/c$

38. which plugin do you use?

39. $A_{trapezoid} = {frac\{b_{1} + b_{2}}{2}}*{(a)}$

40. $A_{trapezoid} = frac\{b_{1} + b_{2}}{2}*a$

41. Apparently the tilde (~) is the symbol you use to add a space.

42. Thanks! http://mat.or.id/?=latex

43. The four quadrants start from the top right
Counter-clockwise from the positive x and y
You go around, hit the II and then III
Bottom left, negative, remember that please
Now if you’ve got a single point on the x-y grid
There’s a single pair of values telling you where it is
The x coordinate goes side to side
The y follows the comma to define the point’s height

A straight line between two points is a relation
You can represent it with a linear equation
y = m times x + b
If you wanna know the variables listen to me

44. Thankx dude 🙂

45. $\frac{x+1}{x+2}$

46. $\frac{x+3}{x^5}$

47. 3$latex\frac{1}{2}$

48. $\frac{1}{2}$

49. 3 $\frac{1}{2}$

50. $3\frac{1}{2}$

51. how to make equation number in equations. For eg if there are 5 equation then to show each equation with some equation number how does it happen