LaTeX is a professional-grade general typesetting system that centers around very pleasing mathematical presentation. Mathematical expressions are written in a markup style somewhat similar to HTML.

You may include LaTeX graphics in any post here on IBmaths4u.com

To include a LaTeX graphic, simply include your LaTeX code within the tags [ tex][ /tex]. without spaces.

Or by using the rightmost button in editing bar as shown in the following image.

Basic Guidelines

Lines and Text. \\ starts a new line, \ includes a space, \mbox{...} includes text

Sub- and Superscripts.

- Code: Select all
`[tex]x^3[/tex]`

- Code: Select all
`[tex]x_{2n}[/tex]`

Here is another example:

- Code: Select all
`[tex]\log_{5} 125=3[/tex]`

Fractions. Use \frac to display fractions.

Example:

- Code: Select all
`[tex]\frac{\pi^2}{6}[/tex]`

Roots. Use \sqrt. For instance,

- Code: Select all
`[tex]\sqrt{a^3+b^4}[/tex]`

You can also get “other” roots:

- Code: Select all
`[tex]\sqrt[4]{5}[/tex]`

Various examples

Code:

- Code: Select all
`[tex] \frac{1}{2^n} \rightarrow 0[/tex]`

produces the graphic

Code:

- Code: Select all
`[tex] \int_a^b f(x) dx = 2 [/tex]`

produces the graphic

Code:

- Code: Select all
`[tex] \sum_{n=0}^{\infty} \frac{1}{n!} = e [/tex]`

produces the graphic

Plus or minus

- Code: Select all
`[tex]\pm[/tex]`

produces the graphic

multiplication or dot product

- Code: Select all
`[tex]a\cdot b[/tex]`

produces the graphic

Equals sign and inequalities

To get an equals sign, you simply use the ordinary = sign.

- Code: Select all
`[tex]2+3=5[/tex]`

produces the graphic

For 'not equal to', use \not=

- Code: Select all
`[tex]2^4\not=2[/tex]`

produces the graphic

For less than signs, we use <, and for greater than signs, we use >

For 'less than or equal to' signs, we use \leq, and for 'greater than or equal to' signs we use \geq

- Code: Select all
`[tex]x^2 \geq 0[/tex]`

produces the graphic

For spaces, use "\ ".

Sigma notation

To write sums, we use the \sum command.

- Code: Select all
`[tex]\sum_{i=1}^n i^2 = \frac{1}{6}n(n+1)(2n+1) [/tex]`

produces the graphic

Differentiation

We use \frac{}{} to write dy/dx.

- Code: Select all
`[tex]\frac{d}{dx} x^4 = 4x^3[/tex]`

produces the graphic

For f'(x), simply write it out normally within TeX tags.

- Code: Select all
`[tex]f'(x)[/tex]`

produces the graphic

Integration

For the integral sign, use the \int command.

- Code: Select all
`[tex]\int 3x^2\ dx = x^3 + C[/tex]`

produces the graphic

For definite integrals, use the commands for subscripts and superscripts.

- Code: Select all
`[tex]\int^1_0 x\ dx =0.5[/tex]`

produces the graphic

Modulus sign or absolute value

Use | for the modulus sign.

- Code: Select all
`[tex]\sqrt{x^2} = |x|[/tex]`

produces the graphic

Factorial

Use the exclamation mark like normal.

- Code: Select all
`[tex]3! = 6[/tex]`

produces the graphic

n choose r

- Code: Select all
`[tex]^n\mathrm{C}_r[/tex]`

produces the graphic

Greek Letters

Write \x where x is the written form of the Greek letter (i.e. alpha, beta, gamma, ... , omega).

- Code: Select all
`[tex]\pi[/tex]`

produces the graphic

- Code: Select all
`[tex]\theta[/tex]`

produces the graphic

Infinity

To insert the infinity symbol, use \infty.

- Code: Select all
`[tex]\infty[/tex]`

produces the graphic

Trigonometry

- Code: Select all
`[tex]\cos \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\sin \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\tan \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\sec \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathrm{cosec} \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\csc \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\cot \theta[/tex]`

produces the graphic

- Code: Select all
`[tex]\sin^2 \theta + \cos^2 \theta=1[/tex]`

produces the graphic

To write 'degrees', you could use the \circ command.

- Code: Select all
`[tex]\cos 60^{\circ} = \frac{1}{2}[/tex]`

produces the graphic

Logarithms

- Code: Select all
`[tex]\ln x^5 = 5 \ln x[/tex]`

produces the graphic

- Code: Select all
`[tex]\log_{10} x^2 = 2 \log_{10} x[/tex]`

produces the graphic

Matrices

- Code: Select all
`[tex]\begin{pmatrix} -2 & 6 & 7 \\2 & -5 & 1 \\1 & 2 & 3 \end{pmatrix}[/tex]`

produces the graphic

Determinants

- Code: Select all
`[tex]\begin{vmatrix} -2 & 6 & 7 \\2 & -5 & 1 \\1 & 2 & 3 \end{vmatrix}[/tex]`

produces the graphic

vectors, simply write a matrix with only one column:

- Code: Select all
`[tex]\begin{pmatrix} x \\ y \\ z \end{pmatrix}[/tex]`

produces the graphic

- Code: Select all
`[tex]\vec{a}[/tex]`

produces the graphic

Limits

- Code: Select all
`[tex]\displaystyle\lim_{x\to 0}[/tex]`

produces the graphic

Sets

- Code: Select all
`[tex]\cup[/tex]`

produces the graphic

- Code: Select all
`[tex]\cap[/tex]`

produces the graphic

- Code: Select all
`[tex]\subset[/tex]`

produces the graphic

- Code: Select all
`[tex]\subseteq[/tex]`

produces the graphic

- Code: Select all
`[tex]\nsubseteq[/tex]`

produces the graphic

- Code: Select all
`[tex]\in[/tex]`

produces the graphic

- Code: Select all
`[tex]\not\in [/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{P}[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{N}[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{Z}[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{I}[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{Q}[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{R}[/tex]`

produces the graphic

- Code: Select all
`[tex]\mathbb{C}[/tex]`

produces the graphic

- Code: Select all
`[tex]\forall[/tex] gives`

produces the graphic

Logic Symbols

- Code: Select all
`[tex]\forall[/tex]`

produces the graphic

- Code: Select all
`[tex]\land[/tex]`

produces the graphic

- Code: Select all
`[tex]\lor[/tex]`

produces the graphic

- Code: Select all
`[tex]\exists[/tex]`

produces the graphic

- Code: Select all
`[tex]\neg[/tex]`

produces the graphic