Variables and Expressions

Subscripts and Primes, Naming Many Variables Clearly

What subscripts and prime marks mean, how to read them, and how to use them to keep related quantities straight.

Key takeaways

  • A subscript is part of a variable's name, so x₁ and x₂ are separate variables with independent values.
  • Subscripts differ from exponents: x₂ names a variable, while x² multiplies x by itself.
  • A prime often marks a second or transformed version of a quantity, though in calculus it denotes a derivative.
  • An index such as n in aₙ is a placeholder that selects a particular member of a list.
  • State what each decorated letter means the first time you use it.

A subscript is a small label written low and to the right of a letter, as in x₁ or v₀, and it creates a distinct variable name. A prime is a small mark written high and to the right, as in x′, read "x prime," and it usually names a new or changed version of x.

Both exist because alphabets run short and because related quantities deserve related names. Neither is an operation by itself. x₂ is not x times 2, and it is not x squared.

Reading subscripts

Read x₁ as "x sub one" or simply "x one." Read v₀ as "v naught" or "v sub zero," a common name for a starting velocity.

The two most frequent uses are these.

  • Counting off similar things: s₁, s₂, s₃ for the scores on three tests.
  • Describing a quantity: C_A for the cost of plan A, often printed with the A set low.

In the slope formula, subscripts keep two points straight. For points (x₁, y₁) and (x₂, y₂) with x₂ ≠ x₁, the slope is m = (y₂ - y₁)/(x₂ - x₁).

With the points (1, 3) and (5, 11), you have x₁ = 1, y₁ = 3, x₂ = 5 and y₂ = 11, so m = 8/4 = 2. The subscripts tell you which numbers belong to the same point, a matter treated in calculating slope from two points.

Subscript or exponent?

The position of the small number changes everything.

Written Meaning Value if x = 5, x₂ = 7
x² x times x 25
x₂ a variable named "x sub 2" 7
2x 2 times x 10
x₂² the square of x sub 2 49

Knowing x tells you nothing about x₂ unless a problem gives a relationship between them. Likewise, x₁ + x₂ cannot be simplified to x₃. They are unlike terms, so 3x₁ + 4x₁ = 7x₁, but 3x₁ + 4x₂ stays as written.

In handwriting, make the difference obvious: drop subscripts clearly below the line and raise exponents clearly above it.

Small marks, different meanings
x₂ (subscript) A separate variable name x² (exponent) x multiplied by x x′ (prime) A new or transformed x 2x (coefficient) Two times x x₂ (subscript) A separate variable name x² (exponent) x multiplied by x x′ (prime) A new or transformed x 2x (coefficient) Two times x

Indices and sequences

When a subscript is itself a letter, as in aₙ, it is called an index. The index points to a position in a list. If the list is 4, 7, 10, 13 and so on, then a₁ = 4, a₂ = 7 and a₃ = 10.

A formula in n describes every entry at once. Here aₙ = 3n + 1, for n = 1, 2, 3 and so on. Then a₁₀ = 31.

A rule may also define each entry from the one before it, such as aₙ₊₁ = aₙ + 3, with a₁ = 4. Note the difference between aₙ₊₁, the entry after the nth one, and aₙ + 1, the nth entry increased by one. With n = 2, aₙ₊₁ is a₃ = 10, while aₙ + 1 is 7 + 1 = 8.

Indices also run through sums. The notation ∑ aₙ for n = 1 to 4 means a₁ + a₂ + a₃ + a₄, which here is 4 + 7 + 10 + 13 = 34.

Always check where the indexing starts. Some courses and most programming contexts begin counting at 0.

Double subscripts

Tables of numbers need two labels. In linear algebra, the entry of a matrix in row i and column j is usually written aᵢⱼ. The row comes first.

So a₂₃ means the entry in row 2, column 3, and is read "a two three," not "a twenty-three." When indices can exceed 9, writers insert a comma, as in a with subscript 1,12, to avoid confusion.

A general system of two linear equations might be written like this.

a₁₁x₁ + a₁₂x₂ = b₁
a₂₁x₁ + a₂₂x₂ = b₂

It looks busy at first, but each label carries information: which equation, and which unknown. The pattern extends to hundreds of equations without running out of letters.

What a prime means

A prime marks a relative of the original. In algebra and geometry, if a point (x, y) is shifted, the new point is often named (x′, y′).

Say each point moves 3 units right and 1 unit down. Then x′ = x + 3 and y′ = y - 1. The point (2, 5) goes to (5, 4).

Primes can be repeated: x″ is "x double prime," a third version. After two or three marks, subscripts become easier to read.

In calculus, the same mark has a specific meaning: f′(x) denotes the derivative of f, which describes its rate of change. In an algebra course a prime is ordinarily just a naming device, and in some logic or set contexts a prime can denote a complement. The surrounding text should say which reading applies.

Subscripts in formulas

Science and finance formulas lean heavily on descriptive subscripts.

A savings calculation might use B₀ for the starting balance and B for the balance later. For constant acceleration a, velocity is v = v₀ + at. With v₀ = 5 meters per second, a = 2 meters per second squared and t = 4 seconds, v = 5 + 8 = 13 meters per second.

For two travelers, d₁ = 60t and d₂ = 45t might give their distances in miles after t hours at 60 and 45 miles per hour. The difference d₁ - d₂ = 15t is the gap between them if they start together and head the same way. After 3 hours the gap is 45 miles.

Notice that t carries no subscript, because both share the same clock. If one left an hour later, you could write t₁ and t₂ with t₂ = t₁ - 1.

One special case: a subscript on log, as in log₂ 8 = 3, states the base of the logarithm. There the small number is not just a name.

A worked comparison with subscripts

Here is a problem where decorated letters keep two similar quantities from blurring together.

Plan 1 for a gym costs 40 dollars to join and 25 dollars per month. Plan 2 costs nothing to join and 33 dollars per month. After how many months do the totals match?

Let m be the number of months, C₁ the total cost of plan 1 in dollars, and C₂ the total cost of plan 2.

C₁ = 40 + 25m
C₂ = 33m
40 + 25m = 33m          (set the totals equal)
40 = 8m                 (subtract 25m from both sides)
m = 5                   (divide both sides by 8)

Check: C₁ = 40 + 125 = 165 and C₂ = 33 × 5 = 165. Before month 5, plan 2 has the lower total; after it, plan 1 does.

The month count m has no subscript because it is shared. The costs carry subscripts because there are two of them. The same pattern fits any side-by-side comparison, and is developed further in comparing two plans with linear graphs.

Subscripts for particular solutions

Subscripts also label specific values among many. A quadratic equation often has two solutions, which writers call x₁ and x₂.

Take x² - 7x + 10 = 0. It factors as (x - 2)(x - 5) = 0, so x₁ = 2 and x₂ = 5. You can then state relationships compactly: x₁ + x₂ = 7 and x₁x₂ = 10. These match the coefficients, since for x² + bx + c = 0 the two roots add to -b and multiply to c.

Here the plain letter x is the unknown in the equation, while x₁ and x₂ are particular numbers that satisfy it. Which root you number first is up to you, because swapping them leaves both the sum and the product unchanged.

Choosing good names

A few habits keep decorated letters helpful.

  1. Define each one. "Let p₁ be the price at the first store."
  2. Be consistent. If subscript 1 means the first store for prices, keep it meaning that for quantities.
  3. Prefer meaning over numbering when it helps: P_adult and P_child are clearer than P₁ and P₂.
  4. Do not stack decorations without need. A letter with a subscript, a prime and an exponent is easy to misread.
  5. Use parentheses when raising a primed or subscripted variable to a power in a crowded expression, such as (x′)².

Careful naming at the start saves time later, a theme of defining variables well.

Practice reading the labels

Suppose a sequence is given by aₙ = n² - 1 for n = 1, 2, 3 and so on. Find a₄, a₂ + a₃, and a with subscript 2 + 3.

Answers. First, a₄ = 16 - 1 = 15. Second, a₂ = 3 and a₃ = 8, so their sum is 11. Third, the index 2 + 3 means 5, so the entry is a₅ = 25 - 1 = 24. The second and third answers differ, which shows why it matters whether an addition happens between entries or inside the subscript.

For one more, let x = 4 and let x′ = 2x - 1. Then x′ = 7, and applying the same change again gives x″ = 2(7) - 1 = 13.

Common questions

Can I add subscripts?

You add the values of the variables, not their labels. a₂ + a₃ is the sum of the second and third entries. It is not a₅ unless a particular sequence happens to make it so.

Is x₀ equal to zero?

No. The 0 is a label, often meaning "initial." The value of x₀ can be anything the problem states.

Does subscript order matter in x₁ and x₂?

The labels are arbitrary, but they must be used consistently. In the slope formula you may swap which point is called first, as long as you swap in both the top and the bottom. With the example above, (3 - 11)/(1 - 5) = -8/-4 = 2, the same slope.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 35 articles in Variables and Expressions →

Latest news on this topic