How to Write Math Formulas
Wrap your formula with "$" (dollar signs) to display it.
Example: Writing $1+1=2$ displays as $1+1=2$.
Table of Contents
Basic Arithmetic
Addition
Code:
$3 + 5 = 8$
Display:
$3 + 5 = 8$
Subtraction
Code:
$10 - 4 = 6$
Display:
$10 - 4 = 6$
Multiplication (using ×)
Code:
$6 \times 7 = 42$
Display:
$6 \times 7 = 42$
Multiplication (using ·)
Code:
$8 \cdot 9 = 72$
Display:
$8 \cdot 9 = 72$
Division
Code:
$20 \div 5 = 4$
Display:
$20 \div 5 = 4$
Fractions
One Half
Code:
$\frac{1}{2}$
Display:
$\frac{1}{2}$
Three Quarters
Code:
$\frac{3}{4}$
Display:
$\frac{3}{4}$
Adding Fractions
Code:
$\frac{1}{3} + \frac{2}{3} = 1$
Display:
$\frac{1}{3} + \frac{2}{3} = 1$
Mixed Numbers
Code:
$2\frac{1}{4}$
Display:
$2\frac{1}{4}$
Shape Formulas
Area of Rectangle
Code:
Area = Length $\times$ Width
Display:
Area = Length $\times$ Width
Area of Triangle
Code:
Area = Base $\times$ Height $\div$ 2
Display:
Area = Base $\times$ Height $\div$ 2
Area of Circle
Code:
Area = Radius $\times$ Radius $\times$ 3.14
Display:
Area = Radius $\times$ Radius $\times$ 3.14
Circumference
Code:
Circumference = Diameter $\times$ 3.14
Display:
Circumference = Diameter $\times$ 3.14
Writing Units
Length (Centimeters)
Code:
$15 \text{cm}$
Display:
$15 \text{cm}$
Weight (Grams)
Code:
$500 \text{g}$
Display:
$500 \text{g}$
Area (Square Centimeters)
Code:
$25 \text{cm}^2$
Display:
$25 \text{cm}^2$
Volume (Cubic Centimeters)
Code:
$100 \text{cm}^3$
Display:
$100 \text{cm}^3$
Common Symbols
Equals
Code:
$5 + 5 = 10$
Display:
$5 + 5 = 10$
Greater Than
Code:
$10 > 5$
Display:
$10 > 5$
Less Than
Code:
$3 < 7$
Display:
$3 < 7$
Greater Than or Equal To
Code:
$x \geq 5$
Display:
$x \geq 5$
Less Than or Equal To
Code:
$y \leq 10$
Display:
$y \leq 10$
Decimal Calculations
Adding Decimals
Code:
$0.5 + 0.3 = 0.8$
Display:
$0.5 + 0.3 = 0.8$
Subtracting Decimals
Code:
$1.2 - 0.7 = 0.5$
Display:
$1.2 - 0.7 = 0.5$
Multiplying Decimals
Code:
$2.5 \times 4 = 10$
Display:
$2.5 \times 4 = 10$
Percentages and Averages
Percentage
Code:
$50\% = \frac{1}{2}$
Display:
$50\% = \frac{1}{2}$
25 Percent
Code:
$25\% = \frac{1}{4}$
Display:
$25\% = \frac{1}{4}$
Calculating Average
Code:
$(5 + 7 + 9) \div 3 = 7$
Display:
$(5 + 7 + 9) \div 3 = 7$
Other Shapes and Formulas
Area of Trapezoid
Code:
Area $= ($ Top Base $+$ Bottom Base $) \times$ Height $\div 2$
Display:
Area $= ($ Top Base $+$ Bottom Base $) \times$ Height $\div 2$
Speed Formula
Code:
Speed $=$ Distance $\div$ Time
Display:
Speed $=$ Distance $\div$ Time
Angle Notation
Code:
$90^\circ, 180^\circ, 360^\circ$
Display:
$90^\circ, 180^\circ, 360^\circ$
Ratios
Writing Ratios
Code:
$3 : 5$
Display:
$3 : 5$
Ratio Value
Code:
The ratio value of $3 : 5$ is $\frac{3}{5}$
Display:
The ratio value of $3 : 5$ is $\frac{3}{5}$
Equivalent Ratios
Code:
$2 : 3 = 4 : 6 = 6 : 9$
Display:
$2 : 3 = 4 : 6 = 6 : 9$
Simplifying Ratios
Code:
$12 : 18 = 2 : 3$
Display:
$12 : 18 = 2 : 3$
Proportional Distribution
Code:
Dividing $\$300$ in the ratio $2 : 3$ gives $\$120$ and $\$180$
Display:
Dividing $\$300$ in the ratio $2 : 3$ gives $\$120$ and $\$180$
Usage Examples in Reading Notes
Example 1: Math Problem
Code:
p.45 problem: There are $12$ apples. $\frac{1}{3}$ were eaten. How many remain? Answer: $12 \times \frac{2}{3} = 8$ apples
Display:
p.45 problem: There are $12$ apples. $\frac{1}{3}$ were eaten. How many remain? Answer: $12 \times \frac{2}{3} = 8$ apples
Example 2: Shape Problem
Code:
When the circle's radius is $5 \text{cm}$, the area is $5 \times 5 \times 3.14 = 78.5 \text{cm}^2$
Display:
When the circle's radius is $5 \text{cm}$, the area is $5 \times 5 \times 3.14 = 78.5 \text{cm}^2$
Tips
- Always wrap formulas with $ (dollar signs)
- Special symbols often require \ (backslash) before them
- Example:
\timesdisplays as × - Spacing is adjusted automatically, so don't worry about it