Abstraction and Variable Definition
Abstraction and Variable Definition are important skills in maths because they help us turn real-world situations into clear mathematical models.
In everyday problems, there is often a lot of information. Some details matter for solving the problem, and some do not. Abstraction means focusing only on the important parts of the situation and ignoring extra details that do not change the maths.
Once we know what matters, we use variables to represent the important quantities. A variable is a letter or symbol that stands for a number that can change or is not yet known.
These two skills work together:
- Abstraction helps us decide what information is important.
- Variable definition helps us represent that information clearly.
When we do this well, messy real-life situations become maths problems we can solve step by step.
Why abstraction matters
Real-world situations often include words, objects, and details that can distract us. For example, a problem might mention the color of a car, the name of a student, or the day of the week. If those details do not affect the calculation, we can ignore them.
Abstraction does not mean throwing away important information. It means keeping the parts that affect the answer and removing the parts that do not.
Think of abstraction as asking:
- What am I trying to find?
- What quantities affect the answer?
- What details are just background information?
What is a variable?
A variable is usually shown by a letter such as \(x\), \(y\), \(n\), or \(t\). It can represent:
- an unknown number,
- a quantity that changes, or
- a general value in a rule or formula.
For example:
- If the cost of one notebook is unknown, we might call it \(n\).
- If the number of hours studied changes, we might call it \(h\).
- If the total cost depends on how many items are bought, we can write a rule using a variable.
Good variable definitions are clear and specific. Instead of writing “Let \(x\) be something,” we should write exactly what \(x\) means.
For example:
- Good: “Let \(x\) be the number of tickets sold.”
- Not as good: “Let \(x\) be the answer.”
Steps for abstraction and variable definition
- Read the situation carefully. Understand what is happening.
- Identify the goal. Decide what you need to find.
- Pick out the important quantities. Look for numbers or amounts that affect the result.
- Ignore unnecessary details. Remove background information that does not change the maths.
- Define variables clearly. Choose letters to represent the important quantities.
- Write a mathematical relationship. Turn the words into an equation, expression, table, or rule.
Example of unnecessary detail
Suppose a problem says: “Mia, wearing a red jacket, buys 3 pencils and 2 erasers after school.” If we only need the total cost, Mia’s name, the red jacket, and the time of day probably do not matter. The important details are the number of pencils, the number of erasers, and their prices.
Worked Example 1: Simple shopping problem
A school store sells pens for \(\$2\) each. A student buys some pens. Write an expression for the total cost.
Step 1: Abstract the situation.
The important part is the number of pens and the price per pen. We do not need the student’s name or what color the pens are.
Step 2: Define a variable.
Let \(p\) be the number of pens bought.
Step 3: Write the expression.
Each pen costs \(2\) dollars, so the total cost is:
\(2p\)
Meaning: If \(p\) changes, the total cost changes too.
For example, if \(p = 4\), then the total cost is:
$$2(4) = 8$$
So 4 pens cost \(\$8\).
Worked Example 2: Taxi fare model
A taxi charges a starting fee of \(\$5\) plus \(\$3\) for each mile traveled. Write a rule for the total fare.
Step 1: Abstract the situation.
The important quantities are:
- the starting fee, \(\$5\)
- the cost per mile, \(\$3\)
- the number of miles traveled
Step 2: Define a variable.
Let \(m\) be the number of miles traveled.
Step 3: Write the rule.
The fare is the starting fee plus the cost for miles:
$$5 + 3m$$
Step 4: Test the model.
If the taxi travels \(4\) miles, then:
$$5 + 3(4) = 5 + 12 = 17$$
The fare is \(\$17\).
This is a good example of abstraction because we turned a real-life situation into a simple algebraic rule.
Worked Example 3: Rectangle with changing side length
A rectangle has a length that is 3 cm more than its width. Write an expression for the area.
Step 1: Abstract the situation.
The important quantities are the width, the length, and the area formula for a rectangle:
$$\text{Area} = \text{length} \times \text{width}$$
Step 2: Define a variable.
Let \(w\) be the width in centimeters.
Then the length is \(w + 3\).
Step 3: Write the area expression.
$$A = w(w + 3)$$
We can also expand this:
$$A = w^2 + 3w$$
Check with a value.
If \(w = 5\), then the length is \(8\), and the area is:
$$5 \times 8 = 40$$
Using the expression:
$$5^2 + 3(5) = 25 + 15 = 40$$
The expression works.
Worked Example 4: Choosing the right variables
A class is raising money by selling sandwiches. They spend \(\$40\) on supplies and earn \(\$6\) for each sandwich sold. Write an expression for the profit.
Step 1: Understand the meaning of profit.
Profit is money earned minus money spent.
Step 2: Abstract the situation.
The important information is:
- \(\$6\) earned per sandwich
- \(\$40\) spent on supplies
- the number of sandwiches sold
Step 3: Define a variable.
Let \(s\) be the number of sandwiches sold.
Step 4: Write the expression.
Money earned is \(6s\).
Money spent is \(40\).
So the profit is:
$$6s - 40$$
Check with a value.
If \(s = 10\), then:
$$6(10) - 40 = 60 - 40 = 20$$
The profit is \(\$20\).
How to tell if your abstraction is good
A good mathematical model should:
- include all the important quantities,
- ignore details that do not affect the answer,
- use variables that are clearly defined, and
- match the real situation when you test it with values.
Common mistakes to avoid
- Using a variable without defining it. Always say what the letter means.
- Keeping too many details. Do not include information that does not change the maths.
- Ignoring an important quantity. Make sure all numbers that affect the result are included.
- Choosing confusing variables. Try to use letters that help you remember the quantity, such as \(m\) for miles or \(t\) for time.
- Mixing up quantities. For example, do not use one variable to mean both cost and number of items.
Quick comparison: real-world words to maths
- “a number” \(\rightarrow\) let it be \(x\)
- “3 more than a number” \(\rightarrow\) \(x + 3\)
- “5 less than a number” \(\rightarrow\) \(x - 5\)
- “twice a number” \(\rightarrow\) \(2x\)
- “total cost of \(n\) items at \(4\) dollars each” \(\rightarrow\) \(4n\)
Why this matters in bigger problems
Many difficult problems become easier when you first simplify them. In algorithmic thinking and mathematical modeling, the first step is often to create a clean model from a complicated situation.
For example, if you are studying travel time, you may ignore the color of the vehicle and focus only on distance and speed. If you are studying cost, you may ignore the brand name and focus on price and quantity. This is abstraction in action.
Then, by defining variables, you can write equations and solve the problem logically.
Mini checklist for students
- What am I trying to find?
- What quantities matter?
- What details can I ignore?
- What variable should I use for each important quantity?
- Can I write an expression or equation from the situation?
- Does my model make sense if I test it with a number?
Summary
Abstraction means simplifying a real-world situation by keeping only the important mathematical information. Variable definition means choosing letters to represent those important quantities clearly.
When you use both skills, you can turn words into expressions, equations, and rules. This helps you solve problems in a clear and organized way.
Put what you read to the test
You've worked through Abstraction and Variable Definition. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.