Kahibaro
Discord Login Register

Variables and constants

In mathematical language, we use letters and other symbols to stand for numbers and other fixed values. Two of the most important ideas are variables and constants.

This chapter explains what they are, how they are written, and how to read simple expressions that use them. More complicated uses (such as in equations and functions) will be covered in later chapters.

What is a variable?

A variable is a symbol, usually a letter, that can represent different values at different times or in different situations.

Examples of variables in use:

A variable does not have to “change over time” to be called a variable. It is simply a placeholder for a value that is not fixed in advance.

Types of roles variables can play

Even at a beginner level, it is helpful to notice that variables can play different roles:

These different uses are still based on the same basic idea: a variable is a symbol that can stand for a number (or more generally, a value) that is not fixed once and for all.

What is a constant?

A constant is a value that does not change within the situation we are considering.

There are two common kinds of constants:

  1. Named constants: numbers that are always the same in all contexts.
    • For example, the number $5$ is always $5$; it never changes.
    • Important named numbers like $\pi$ (pi) and $e$ (Euler’s number) are also constants:
      • $\pi \approx 3.14159$ is always the same value.
      • $e \approx 2.71828$ is always the same value.
  2. Problem-specific constants: values that are fixed in a particular problem or formula, even if we don’t know their numerical value.
    • In the formula $C = 3n + 2$, the numbers $3$ and $2$ are constants. They do not change as $n$ changes.
    • In $A = kx$, if $k$ is described as “a fixed constant,” then $k$ is a constant for that situation, even if we don’t know its number yet.

So, while a variable can take different values, a constant has one fixed value in the context we are working in.

Telling variables and constants apart in expressions

In written mathematics, we often mix variables and constants in the same expression. It is important to be able to recognize which is which from the context.

Consider the expression:
$$
2x + 5
$$

Another example:
$$
A = \pi r^2
$$

Context tells you which symbols are variables and which are constants. If a symbol is described as “fixed,” “given,” or “constant,” then it is a constant in that situation. If it is described as something that can “vary,” “change,” or be “any number,” then it is a variable.

Notation for variables and constants

Variables and constants are both written with symbols, but there are some common habits:

The same letter may represent different things in different problems. You must always read the description in the current context.

For example:

It is the surrounding text and definitions that tell you what a symbol means in that particular situation.

Reading expressions with variables and constants

To become comfortable with variables and constants, it helps to practice reading expressions in words.

Examples:

  1. Expression: $x + 3$
    • $x$ is a variable, $3$ is a constant.
    • Read as: “$x$ plus three.”
  2. Expression: $5y - 2$
    • $y$ is a variable, $5$ and $2$ are constants.
    • Read as: “five times $y$ minus two.”
  3. Expression: $A = lw$
    • $A$ is a variable (area), $l$ is length, $w$ is width; all are variables that can change from one rectangle to another.
    • Read as: “$A$ equals $l$ times $w$.”
  4. Expression: $y = 2x + 1$
    • $x$ and $y$ are variables.
    • $2$ and $1$ are constants.
    • Read as: “$y$ equals two times $x$ plus one.”

Being able to say in words what each symbol stands for, and whether it is variable or constant in that context, is a key skill.

Choosing letters for variables and constants

The choice of letters is mostly a matter of convenience and habit. Some common patterns:

Although these patterns are common, they are not rules. The author or teacher can choose any symbols, as long as the meaning is clearly explained.

Why use variables at all?

From the point of view of mathematical language, variables allow us to:

Constants provide the fixed “background” numbers in these rules and relationships.

Changing and fixed within a problem

It is important to see that “variable” and “constant” are relative to the situation:

Example:

At this level, it is enough to remember:

Summary

Later chapters will use these ideas in equations, functions, and more advanced topics, but the basic language of variables and constants is the same throughout mathematics.

Views: 13

Comments

Please login to add a comment.

Don't have an account? Register now!