Jump To Content

LearnHub




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^7*5y^2*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{\pi2}{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!

Image Credit : psd


  1. vamsi krishna sai saidThu, 04 Dec 2008 05:48:17 -0000 ( Link )

    This leson helps me writting in easy way

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  2. ashokle4 saidFri, 19 Dec 2008 17:50:23 -0000 ( Link )

    thanks

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

Your Comment
Textile is Enabled (View Reference)