Safekipedia
AlgebraCalculusElementary mathematicsMathematical logic

Variable (mathematics)

Adapted from Wikipedia · Discoverer experience

An ancient Egyptian mathematical scroll showing early calculations and problems, a fascinating glimpse into historical learning methods.

In mathematics, a variable is a symbol, often a letter, that stands for something unknown or that can change. Variables help us work with numbers and ideas without needing to know exact values right away. For example, in the equation x + 2 = 5, the letter x is a variable that represents the number we need to find to make the equation true.

Variables are important because they let us create general rules and solve many different problems with the same steps. They can represent numbers, points, shapes, or even whole sets of things. In many cases, variables help us understand patterns and relationships, like how changing one quantity affects another.

The values a variable can take are often numbers, such as the real numbers. Sometimes variables stand for fixed but unknown numbers, called parameters, while other times they represent what we need to find, called an unknown. Variables also appear in functions, where they show how one value depends on another, like y = f(x).

Even common symbols can act as variables. For instance, the Greek letter π usually means the special number about 3.14159, but sometimes it stands for something else entirely. This flexibility makes variables a powerful tool in almost every area of mathematics.

History

Main articles: History of algebra and History of mathematical notation

Rhind Mathematical Papyrus

The idea of using symbols to stand for unknown numbers goes back a very long time. Ancient civilizations, like the Egyptians, solved problems involving unknowns by describing them in stories. For example, they might ask how much of something there was if adding a part of it to another number gave a total.

Later, in ancient Greece, math was often done using shapes and pictures. Letters were sometimes used to name points or shapes. In the Middle East, mathematicians began using special symbols to stand for unknowns in equations. This helped make math more like the way we do it today.

In the 16th and 17th centuries, mathematicians started using letters to represent numbers in equations. One mathematician used vowels for unknowns and consonants for known numbers. Another famous mathematician, René Descartes, suggested using the letters x, y, and z for unknowns, which is still common today.

Specific kinds of variables

Variables can play different roles in math problems. In the cubic equation

a x3 + b x2 + c x + d = 0,

a, b, c, and d are numbers we already know, called parameters or coefficients. The variable x is what we’re trying to find out, called an unknown.

When we talk about functions, the variable is often the input to the function. For example, in a function f where f(x) shows how f changes with x, x is the variable. Sometimes, other numbers stay the same and are called constants.

There are special names for variables depending on their role:

In science, we often have dependent and independent variables. An independent variable is one we can change on our own, like time. A dependent variable changes because of the independent variable, like temperature. Which one is which depends on what we’re studying.

Moduli spaces

When we study constants and variables, we can explore something called moduli spaces. For example, let's look at the equation for a parabola: y = a x2 + b x + c. In this equation, a, b, and c are like fixed numbers that shape the parabola, while x and y change and show the points on the parabola.

But what if a, b, and c could also change? Each different set of values for a, b, and c would give us a new parabola. All these possible parabolas can be thought of as points in a special space called a moduli space of parabolas. This helps us understand how different shapes relate to each other.

This article is a child-friendly adaptation of the Wikipedia article on Variable (mathematics), available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.