Jump To Content
LearnHub Support

LearnHub Support


Tex and Equation Examples

Composing your own equations using Tex is as easy as 1-2-3!

You can loads of cool stuff with it, so why not give it a shot?

Basic math!

Type in an equation, any equation. Like this one: 5x ^ 4 + 7x ^ 3 – 21x ^ 2 – 2x ^ 2 + x + 45. Now want to make it look cool and professional? insert < math > and </ math > at both ends (without the spaces) and you get: 5x ^ 4+7x ^ 3-21x ^ 2-2x ^ 2+x+45.
Note that you do need to make one fix up in some cases- always leave a space before any * or ^ symbols, or else you’ll get something like 3x&lt;sup&gt;7&lt;strong&gt;5y&lt;/sup&gt;2&lt;/strong&gt;6 instead of 3x ^7 * 5y ^2 * 6.

Fractions

Sick and tired of writing 1/2? Well, here’s your solution! Use the math brackets with the expression \frac{1}{2}. This gives \frac{1}{2}, which looks that much better. You can make your fractions as big as you want, just put the entire numerator in the first set of curly brackets and the entire denominator at the bottom. You can even make multiple fractions: \frac{3x+\frac{5}{6}}{2x ^2}.

More exponents and roots

To raise something to an exponent of more than one figure, put it all in {} after the ^. Like so: 2 ^{5x+6} translates to 2 ^{5x+6}. How cool is that?

For roots, use the \sqrt command. You can input \sqrt{2} for \sqrt{2}, and even \sqrt[ 3 ]{8} (note the spaces besides the 3) for \sqrt[ 3 ]{8}.

Want more?

Check out LeChuck’s comprehensive Equation Editor lesson for a quick and useful cheat sheet.

Want more awesome examples?

\frac{\sqrt{x ^2-y ^2} +4}{\frac{x}{y} +|x ^3y ^2|} translates to:
\frac{\sqrt{x ^2-y ^2} +4}{\frac{x}{y} +|x ^3y ^2|}

\left(\sqrt[ 3 ]{2x ^3+\frac{x ^2}{2}-\frac{3x}{4}-1}\right) translates to:
\left(\sqrt[ 3 ]{2x ^3+\frac{x ^2}{2}-\frac{3x}{4}-1}\right)

And \pi-\frac{2\pi}{3}=\sqrt{\frac{\pi ^2}{9} will give you:
\pi-\frac{2\pi}{3} = |\sqrt{\frac{\pi ^2}{9}}|.

Common reasons why your equations aren’t working

-Forgetting to put < math> and < /math> before and afer
-Spacing issues before and after signs like ^
-Not closing your {} and [] brackets
-Misplacing your brackets or signs

Still not working? Can’t see any equations? Upgrade your browser!

Hope this makes you the new Equation Tex Master! Enjoy!

  • Your comment will be modifiable for 10 minutes after posted.

Page Author

Avatar
oLahav
Name
oLahav

From Here You Can…

Information

Most Recent Related Content

This work is public domain.