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
  • More detailed examples
  • Operators using subscripts and superscripts

Was this helpful?

  1. Latex
  2. Mathematics

Superscript and Subscripts

PreviousMathematicsNextList of Symbols

Last updated 3 years ago

Was this helpful?

The use of superscripts and subscripts is very common in mathematical expressions involving exponents, indexes, and in some special operators. This article explains how to write superscripts and subscripts in simple expressions, integrals, summations and so forth.

Definite integrals are some of the most common mathematical expressions, so let's see an example:

\[ \int\limits_0^1 x^2 + y^2 \ dx \]

This LaTeX code produces:

By convention, superscripts and subscripts in LATEX are created using the characters ^ and _ respectively; for example, the exponents applied to xx and yy in the code fragment above. Those characters can also be used with mathematical symbols, such as the integral (\int) included in the example above where _ is used to set the lower limit and the ^ for the upper limit.

The command \limits changes the way the limits are displayed in the integral, if not present the limits would be next to the integral symbol instead of being on top and bottom:

\[ \int_0^1 x^2 + y^2 \ dx \]

This LaTeX code produces:

More detailed examples

The symbols _ and ^ can also be combined in the same expression, for example:

\[ a_1^2 + a_2^2 = a_3^2 \]

This LaTeX code produces:

If the expression contains long superscripts or subscripts, these need to be collected in braces, as LATEX normally applies the mathematical commands ^ and _ only to the following character:

\[ x^{2 \alpha} - 1 = y_{ij} + y_{ij}  \]

This LaTeX code produces:

Subscripts and superscripts can be nested and combined in various ways. When nesting subscripts/superscripts, however, remember that each command must refer to a single element; this can be a single letter or number, as in the examples above, or a more complex mathematical expression collected in braces or brackets. For example:

\[ (a^n)^{r+s} = a^{nr+ns}  \]

This LaTeX code produces:

Operators using subscripts and superscripts

\[ \sum_{i=1}^{\infty} \frac{1}{n^s} 
= \prod_p \frac{1}{1 - p^{-s}} \]

This LaTeX code produces:

Some mathematical operators may require subscripts and superscripts. The most frequent cases are those of the integral \int (check the ) and the summation (\sum) operators, whose bounds are typeset precisely with subscripts and superscripts.

introduction