LogoLogo
Terminal
  • Attic Lab
  • Getting Started
  • Crest Gold
  • Crest Silver
  • Videos on Computation
  • PI PICO (CIRCUITPYTHON)
    • Getting Started
    • Pin Out Diagram
    • Breadboards
    • 1. Led Blink
    • 2. RGB
    • 3. OLED
    • 4. Sensors
    • 5. Wifi
    • 6. Servos
  • Arduino
    • Getting Started
    • Pin Out Diagrams
      • Mega2560 R3
    • Programming
      • Arduino C - Cheat Sheet
    • Buttons
      • Momentary Switches
    • Display
      • LEDs
      • 7 Segment Displays
      • LCD Displays (GPIO)
      • LCD Displays (SPI)
      • OLEDs
    • Communication
      • Antenna Theory
      • Lora
      • Wifi
        • Boards
    • Project Ideas
    • Motion
      • DC Motors
      • Servo Motors
      • Stepper Motors
  • Microsoft Office
    • Word
    • Powerpoint
    • Excel
  • The Terminal
    • Basics
    • Cheat Sheet
    • Games
      • Level 1 - Bashcrawl
      • Level 2 - Bandit
  • TinkerCad
    • Gallery
    • Getting Started
    • Basic Operations
    • Basic Skills
    • Projects
      • Locking Container
  • Python
    • Hello World
    • Turtle Graphics
      • Strings in Turtle Graphics
      • Cheat Sheet
    • Variables
    • Loops
    • If Statements
    • Functions
    • Games
      • Pong
  • Raspberry Pi
    • Setup
      • Changing The Hostname
      • Headless Setup
      • Kiosk Mode
    • Remote Connections
    • Displays
      • Memory
        • External HD
      • HyperPixel 4.0
  • Ultimaker 3D Printing
    • The Thingiverse
    • Preparing the File
    • Printing
    • Calibration Prints
    • Print Set
  • Fusion 360
    • Getting Started
    • Design Tutorials
      • Tweezers
      • Mars Rover Wheel
    • Surface Modeling
  • Electronics
    • References
    • Antenna Theory
    • LoRa
  • PCB Milling
    • FlatCam
    • Candle
    • PCB Milling
  • Projects
  • Projects
    • Star Map Necklace
    • Ideas Respository
  • Latex
    • What is LaTeX?
    • Getting Started
    • Structure
    • Page Size & Margins
    • Styling
    • Images
    • Lists
    • Tables
    • Mathematics
      • Superscript and Subscripts
      • List of Symbols
      • Fractions and Binomials
      • Integrals, Sums & Limits
    • Colors
  • Web Development
    • The Internet
    • Intro to HTML
    • Basic Elements
    • Basic Styling
Powered by GitBook
On this page
  • Cheat Sheet
  • Inline Mathematics
  • Display Mathematics
  • Aligned Mathematics
  • Symbols
  • Powers
  • Roots
  • Fractions
  • Inequalities
  • Limits
  • Sums
  • Calculus
  • Sets

Was this helpful?

  1. Latex

Mathematics

The great power of LaTeX lies in it's ability to easily render mathematics. There are two types of mathematics. Inline and display.

PreviousTablesNextSuperscript and Subscripts

Last updated 3 years ago

Was this helpful?

Cheat Sheet

Many useful mathematical features require the American Mathematical Society package. Include \usepackage{amsmath} in your preamble

Inline Mathematics

Inline mathematics form part of a sentence and start and end with a single $. Eg.

To differentiate $x^n$ we multiply by the power and decrease it by 1 to get $nx^{n-1}$.

Display Mathematics

Display mathematics has it's own line and starts and end with a double $$. You can choose to make your code neater by putting in on it's own line but this is not required. Eg.

To differentiate $x^n$ we multiple by the power and decrease it by 1 to get \[nx^{n-1}\].

Aligned Mathematics

Sometimes we want to align the equals sign on multiple mathematical steps. To do this we need to use the amsmath package by including the line

\usepackage{amsmath} 

at the top of our document.

We can then use the align environment with a & sign before the symbol we want aligned to and \\ to signify the end of a line. For example:

\begin{align}
    (x+2)(x-2) &= x^2 + 2x - 2x -4 \\
    &= x^2 -4
\end{align}

If we don't want our equations to be numbers, we can use the align* environment:

\begin{align*}
    (x+2)(x-2) &= x^2 + 2x - 2x -4 \\
    &= x^2 -4
\end{align*}

Symbols

Powers

Roots

Fractions

Inequalities

The basic less than / more than inequalities are just represented by < and >. We can use \leq for less than or equal to and \geq for greater than or equal to

\begin{align*}
    3 &> 2 \\
    2 &< 3 \\
    x &\leq 2 \\
    x &\geq 2
\end{align*}

Limits

Sums

Calculus

Sets