Chapter 23

Algorithmic Thinking and Applied Mathematical Modeling

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

  1. Read the situation carefully. Understand what is happening.
  2. Identify the goal. Decide what you need to find.
  3. Pick out the important quantities. Look for numbers or amounts that affect the result.
  4. Ignore unnecessary details. Remove background information that does not change the maths.
  5. Define variables clearly. Choose letters to represent the important quantities.
  6. 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.

Iterative Heuristics and Problem Solving

Iterative Heuristics and Problem Solving means using smart strategies to solve problems step by step, especially when the answer is not obvious at first.

In maths, some problems can be solved by using a formula right away. But many real problems are more complex. In those cases, we use heuristics. A heuristic is a helpful problem-solving strategy or approach. It is not a guaranteed shortcut, but it helps us make progress.

Iterative means repeating a process, improving our thinking each time. So, iterative heuristics means trying a strategy, checking what happened, and then adjusting our next step.

This lesson focuses on three useful heuristics:

  • Working backward
  • Breaking a problem into smaller parts
  • Testing simpler cases

These strategies are powerful because they help us organize our thinking and avoid feeling stuck.

1. Working Backward

Sometimes a problem gives the final result and asks about the beginning. In that case, it can be easier to start from the end and reverse each step.

When working backward, ask:

  • What happened last?
  • What operation can undo that step?
  • Can I keep reversing the process until I reach the start?

To reverse operations:

  • Undo addition with subtraction
  • Undo subtraction with addition
  • Undo multiplication with division
  • Undo division with multiplication

Worked Example 1: Working Backward

A number is multiplied by 4, then 7 is added. The result is 31. What was the original number?

Step 1: Start from the result. We know the final answer is 31.

Step 2: Undo the last step. The last step was adding 7, so subtract 7:

\(31 - 7 = 24\)

Step 3: Undo the earlier step. The number was multiplied by 4, so divide by 4:

\(24 \div 4 = 6\)

Answer: The original number was \(6\).

Check:

$$6 \times 4 + 7 = 24 + 7 = 31$$

The answer is correct.

2. Breaking a Problem into Sub-Problems

Some problems look too big to solve all at once. A helpful strategy is to split the problem into smaller, easier parts. Each smaller part is called a sub-problem.

This works well when:

  • There are several steps in the problem
  • Different pieces of information must be connected
  • The whole problem feels confusing at first

When breaking into sub-problems, you might ask:

  • What information do I already know?
  • What do I need to find first?
  • Can I solve one small part before the next?

Worked Example 2: Breaking into Smaller Parts

A school is buying notebooks for students. Each pack contains 6 notebooks. The school needs 84 notebooks. How many packs should it buy?

This problem can be broken into a small question:

Sub-problem: How many groups of 6 make 84?

So we calculate:

$$84 \div 6 = 14$$

Answer: The school should buy \(14\) packs.

Why this is a heuristic: Instead of thinking about the whole story at once, we turned it into a simpler division question.

Now let us try a slightly more involved example.

Worked Example 3: Multi-Step Sub-Problems

A rectangle has a length of 12 cm and a width of 5 cm. A frame is placed all around the outside edge. What is the total distance around the rectangle?

This asks for the perimeter. We can break it into parts.

  1. Find the two lengths: \(12 + 12 = 24\)
  2. Find the two widths: \(5 + 5 = 10\)
  3. Add them together: \(24 + 10 = 34\)

So the perimeter is:

$$34 \text{ cm}$$

We could also use the perimeter rule:

$$P = 2l + 2w$$

Substitute the values:

$$P = 2(12) + 2(5) = 24 + 10 = 34$$

Answer: \(34\) cm.

Breaking the problem into smaller parts helps us see what to do first, second, and third.

3. Testing Simpler Cases

When a problem seems hard, try a smaller or easier version first. This can help you notice a pattern, make a guess, or understand what the problem is really asking.

This strategy is especially useful when:

  • You are looking for a pattern
  • The numbers are large or messy
  • You do not know where to begin

Testing simpler cases does not mean avoiding the real problem. It means using easier examples to guide your thinking.

Worked Example 4: Testing Simpler Cases

A pattern is made with square tiles.

  • Figure 1 has 3 tiles
  • Figure 2 has 5 tiles
  • Figure 3 has 7 tiles

How many tiles will Figure 6 have?

Step 1: Look at the pattern.

The number of tiles goes:

\(3, 5, 7, ...\)

Each time, the number increases by 2.

Step 2: Continue the pattern.

  • Figure 4: \(7 + 2 = 9\)
  • Figure 5: \(9 + 2 = 11\)
  • Figure 6: \(11 + 2 = 13\)

Answer: Figure 6 has \(13\) tiles.

Why this works: Instead of guessing Figure 6 right away, we studied the simpler early cases and used the pattern.

Using More Than One Heuristic

Many problems are solved best by combining strategies. For example, you might test a simple case first, then break the full problem into smaller parts. Or you might break the problem apart and then work backward in one section.

Good problem solvers are flexible. If one idea does not help, they try another.

A General Problem-Solving Process

When facing a difficult problem, follow these steps:

  1. Understand the problem. Read carefully. Identify what is known and what must be found.
  2. Choose a heuristic. Decide whether to work backward, split into smaller parts, or test a simpler case.
  3. Try a solution. Show your steps clearly.
  4. Check your result. Does the answer make sense? Can you test it?
  5. Revise if needed. If your first approach does not work, adjust and try again.

This repeating process is what makes the strategy iterative.

How to Know Which Heuristic to Use

  • Use working backward when the final result is known but the starting value is missing.
  • Use breaking into sub-problems when the problem has several smaller steps.
  • Use testing simpler cases when you need to find a pattern or make the problem easier to understand.

Common Mistakes to Avoid

  • Forgetting to undo operations in the correct reverse order when working backward
  • Trying to do everything at once instead of separating the problem into steps
  • Testing simple cases but not connecting them back to the original problem
  • Not checking whether the final answer makes sense

Quick Practice Ideas

Try asking yourself these questions when solving problems:

  • Can I start from the end?
  • Can I split this into smaller questions?
  • Can I try easier numbers first?
  • Did I check my answer?

Summary

Iterative heuristics are strategies that help us solve difficult problems step by step. Instead of expecting an answer instantly, we try an approach, learn from it, and improve our next step.

The three key strategies in this lesson are:

  • Working backward to undo steps from the end
  • Breaking into sub-problems to manage a large problem in smaller parts
  • Testing simpler cases to find patterns and build understanding

These methods make problem solving more organized, logical, and less overwhelming. With practice, you will get better at choosing the right strategy and using it confidently.

Put what you read to the test

You've worked through Iterative Heuristics and Problem Solving. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Constraint Identification and Feasibility

Constraint Identification and Feasibility is about figuring out what rules or limits a real-world problem must follow, and then checking whether a possible answer actually fits those limits.

In maths, a solution is not just something that makes a calculation work. It must also make sense in the situation. For example, if a problem is about the number of buses, the answer cannot be negative, and it usually must be a whole number.

This idea is very important in mathematical modeling. A model turns a real situation into maths, but the model only works well if we include the real-world restrictions. These restrictions are called constraints.

In this lesson, you will learn how to identify constraints, write them using maths, and decide whether a solution is feasible, which means possible in the real world.

1. What is a constraint?

A constraint is a condition that limits what values are allowed in a problem.

Constraints often come from the real world. Here are some common types:

  • Non-negative values: Time, distance, money, and number of items usually cannot be less than 0.
  • Whole-number values: People, cars, books, and tickets are usually counted in whole numbers, not decimals.
  • Maximum or minimum limits: A bag can hold at most 10 kg, or a budget may be no more than $50.
  • Combination limits: Two or more quantities together must stay within a rule, such as seats filled on a bus.

For example, if a student buys notebooks for \(\$3\) each and has \(\$20\), the number of notebooks \(n\) must satisfy:

$$3n \le 20$$

But that is not the only constraint. Since notebooks are counted, \(n\) must also be a whole number, and it cannot be negative:

$$n \ge 0, \quad n \text{ is a whole number}$$

2. What does feasible mean?

A value is feasible if it satisfies all the constraints in the problem.

A value is not feasible if it breaks even one constraint.

For instance, suppose a school trip needs vans, and each van holds 8 students. If 30 students are going, then 3 vans are not feasible because:

$$3 \times 8 = 24$$

That is not enough seats. But 4 vans are feasible because:

$$4 \times 8 = 32$$

There are enough seats, and the number of vans is a whole number greater than 0.

3. How to identify constraints

When reading a word problem, look for words and phrases that show limits.

Ask yourself these questions:

  1. What does the variable represent?
  2. Can it be negative?
  3. Does it need to be a whole number?
  4. Is there a maximum or minimum amount?
  5. Do quantities need to add up to, stay below, or stay above a certain value?

Words in the problem often help:

  • At most means \(\le\)
  • At least means \(\ge\)
  • No more than means \(\le\)
  • No fewer than means \(\ge\)
  • Exactly means \(=\)

For example, if a water tank holds at most 200 liters and already has 50 liters, and \(x\) more liters are added, then:

$$50 + x \le 200$$

Also, added water cannot be negative:

$$x \ge 0$$

4. Writing constraints mathematically

To model a problem well, we translate the situation into inequalities or equations.

Here are some common examples:

  • Non-negative amount: \(x \ge 0\)
  • Whole-number count: \(x\) is a whole number
  • Maximum cost of 40 dollars: \(c \le 40\)
  • Minimum age of 12: \(a \ge 12\)
  • Total of two quantities no more than 15: \(x + y \le 15\)

Sometimes one variable has more than one constraint. For example, the number of games a student can play might satisfy:

$$0 \le g \le 5$$

This means the student can play at least 0 games and at most 5 games.

5. Checking feasibility step by step

Once you have constraints, you can test possible answers.

Use this process:

  1. Write down all the constraints.
  2. Substitute the possible value into each one.
  3. Check whether every constraint is true.
  4. If all are true, the value is feasible.
  5. If even one is false, the value is not feasible.

This is important because a value might fit one rule but fail another.

Worked Example 1: Buying pencils

Problem: Pencils cost \(\$2\) each. Maya has \(\$11\). How many pencils can she buy?

Step 1: Choose a variable.

Let \(p\) be the number of pencils.

Step 2: Identify the constraints.

  • Each pencil costs \(\$2\), and Maya has at most \(\$11\):

$$2p \le 11$$

  • The number of pencils cannot be negative:

$$p \ge 0$$

  • Pencils are counted in whole numbers:

$$p \text{ is a whole number}$$

Step 3: Find possible values.

From \(2p \le 11\), divide by 2:

$$p \le 5.5$$

Since \(p\) must be a whole number, the possible values are:

$$0,1,2,3,4,5$$

Answer: Maya can buy at most 5 pencils. These values are feasible because they meet all constraints.

Worked Example 2: Seats on a bus

Problem: A bus has 40 seats. There are already 27 students on the bus. How many more students \(s\) can get on?

Step 1: Write the capacity constraint.

$$27 + s \le 40$$

Step 2: Write the other constraints.

The number of students cannot be negative, and it must be a whole number:

$$s \ge 0, \quad s \text{ is a whole number}$$

Step 3: Solve.

Subtract 27 from both sides:

$$s \le 13$$

Step 4: Decide feasibility.

The feasible values are:

$$0,1,2,3,\dots,13$$

Answer: Up to 13 more students can get on the bus.

Worked Example 3: Making gift bags

Problem: A class is making gift bags. Each bag needs 3 stickers and 2 candies. The class has 20 stickers and 15 candies. How many full gift bags can they make?

Step 1: Choose a variable.

Let \(g\) be the number of gift bags.

Step 2: Write the constraints.

Sticker limit:

$$3g \le 20$$

Candy limit:

$$2g \le 15$$

Also:

$$g \ge 0, \quad g \text{ is a whole number}$$

Step 3: Find the limits from each resource.

From stickers:

$$g \le \frac{20}{3} \approx 6.67$$

So, using only stickers, the most would be 6 whole bags.

From candies:

$$g \le 7.5$$

So, using only candies, the most would be 7 whole bags.

Step 4: Use both constraints together.

A feasible answer must satisfy both rules, so we choose the smaller limit.

Answer: The class can make 6 full gift bags.

Check:

$$3(6)=18 \le 20$$

$$2(6)=12 \le 15$$

But 7 bags would not be feasible because:

$$3(7)=21 > 20$$

There are not enough stickers.

Worked Example 4: Testing possible solutions

Problem: A small concert sells student tickets for \(\$4\) and adult tickets for \(\$7\). The goal is to collect at least \(\$40\). Suppose \(s\) is the number of student tickets and \(a\) is the number of adult tickets.

The money constraint is:

$$4s + 7a \ge 40$$

Also:

$$s \ge 0, \quad a \ge 0$$

and both must be whole numbers.

Check whether each pair is feasible.

Option 1: \((s,a)=(5,2)\)

Money raised:

$$4(5)+7(2)=20+14=34$$

Since \(34 < 40\), this option is not feasible.

Option 2: \((s,a)=(3,4)\)

Money raised:

$$4(3)+7(4)=12+28=40$$

This meets the goal exactly, so it is feasible.

Option 3: \((s,a)=(-1,7)\)

Even if the money might work, \(s=-1\) is impossible because tickets sold cannot be negative.

So this option is not feasible.

This example shows an important idea: a solution must satisfy every constraint, not just one.

6. Why constraints matter in modeling

Without constraints, maths answers can be unrealistic.

For example, if a calculation says a factory should make \(12.4\) bicycles, that may be useful in algebra, but in real life the factory can only make a whole number of bicycles. So the model must include the constraint that the number of bicycles is a whole number.

Constraints help us:

  • remove impossible answers,
  • make models match real life,
  • choose sensible solutions,
  • check whether a plan can actually work.

7. Common mistakes to avoid

  • Forgetting non-negative values: A negative number of people or hours usually makes no sense.
  • Forgetting whole numbers: You cannot usually have 3.6 buses or 2.5 students.
  • Using only one constraint: Some problems have several limits, and all of them matter.
  • Mixing up inequality signs: Remember that “at most” means \(\le\), while “at least” means \(\ge\).
  • Stopping after solving the equation: Always ask, “Does this answer make sense in the real world?”

8. Quick strategy for any problem

When you see a real-world maths problem, use this checklist:

  1. Decide what the variable means.
  2. Find all real-world limits.
  3. Write them as equations or inequalities.
  4. Include whether values must be non-negative or whole numbers.
  5. Test or solve for values that satisfy all constraints.
  6. State the feasible answer clearly in words.

Summary

Constraint identification means finding the limits in a problem, such as maximum amounts, minimum amounts, non-negative values, and whole-number requirements.

Feasibility means checking whether a value or solution satisfies all those limits.

In real-world modelling, the best answer is not just mathematically correct. It must also be possible in the situation. That is why identifying constraints is such an important part of solving problems well.

Put what you read to the test

You've worked through Constraint Identification and Feasibility. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Validating and Revising Models

Validating and Revising Models means checking whether a mathematical model actually matches real data, and then improving the model if it does not.

In 9th Grade Maths, a model is usually an equation, rule, table, graph, or pattern that represents a real situation. For example, a model might predict how far a car travels in a certain time, how much money is earned, or how a plant grows.

Making a model is only the first step. A model is useful only if it gives results that are close to what really happens. That is why we must validate the model and sometimes revise it.

Validate means to test whether the model agrees with the data. Revise means to change the model so it works better.

This skill is important because real-world situations are often messy. A rule that looks correct at first may miss an important detail. Good mathematicians do not just create models—they test and improve them.

1. What is a mathematical model?

A mathematical model is a way to describe a situation using mathematics. Models can be:

  • an equation, such as \(y = 2x + 3\)
  • a table of values
  • a graph
  • a pattern or rule
  • a step-by-step method or algorithm

For example, if a taxi charges a starting fee of R20 and then R5 per kilometre, the total cost \(C\) after \(k\) kilometres can be modeled by

$$C = 20 + 5k$$

This equation is a model of the taxi cost.

2. Why models need validation

A model may seem reasonable, but it might still be wrong or incomplete. There are several reasons why this can happen:

  • the data may not follow a perfect pattern
  • important information may have been left out
  • the wrong type of equation may have been chosen
  • there may be calculation mistakes
  • the model may work only for some values, not all values

Validation helps us answer questions like:

  • Does the model fit the data closely?
  • Do the predictions make sense?
  • Is the pattern really linear, or is it something else?
  • Are there values that the model gets badly wrong?

3. How to validate a model

There is a simple process you can follow.

  1. Write the model clearly.
  2. Substitute input values from the data into the model.
  3. Compare the predicted outputs with the actual outputs.
  4. Look for errors or patterns in the differences.
  5. Decide whether the model is good enough or needs revision.

The difference between an actual value and a predicted value is often called the error.

You can find the error using

$$\text{error} = \text{actual value} - \text{predicted value}$$

If the errors are small, the model may be acceptable. If the errors are large or show a pattern, the model probably needs to be revised.

4. What to look for when checking a model

  • Exact match: The model gives the same values as the data.
  • Close match: The values are not exact, but they are reasonably close.
  • Systematic error: The model is always too high or always too low.
  • Changing error: The model fits small values but fails for larger values.
  • Impossible results: The model predicts negative distance, negative time, or another unrealistic value.

5. Revising a model

If a model does not fit well, we revise it. Revising does not mean starting from nothing every time. Often, we change one part of the model.

Common ways to revise a model include:

  • changing the starting value
  • changing the rate of change
  • using a different kind of pattern
  • checking whether the relationship is linear or not
  • removing a calculation mistake

For a linear model \(y = mx + b\):

  • \(m\) is the rate of change, or slope
  • \(b\) is the starting value, or intercept

If the model is consistently too high or too low, the intercept \(b\) may need to change. If the model gets more wrong as \(x\) increases, the slope \(m\) may need to change.

Worked Example 1: Checking a simple linear model

A student says that the cost \(C\) of buying notebooks is modeled by

$$C = 4n$$

where \(n\) is the number of notebooks.

The actual data is:

  • 1 notebook costs R4
  • 2 notebooks cost R8
  • 3 notebooks cost R12
  • 4 notebooks cost R16

Step 1: Test the model.

For \(n=1\):

Predicted cost: \(C = 4(1) = 4\)

Actual cost: R4

For \(n=2\):

Predicted cost: \(C = 4(2) = 8\)

Actual cost: R8

For \(n=3\):

Predicted cost: \(C = 4(3) = 12\)

Actual cost: R12

For \(n=4\):

Predicted cost: \(C = 4(4) = 16\)

Actual cost: R16

Step 2: Compare.

Every predicted value matches the actual value exactly.

Conclusion: The model is valid for this data. No revision is needed.

Worked Example 2: Finding and fixing a wrong starting value

A gym charges a joining fee and a monthly fee. A student models the total cost \(T\) after \(m\) months as

$$T = 25m$$

But the actual data is:

  • 1 month: R40
  • 2 months: R65
  • 3 months: R90

Step 1: Test the model.

For \(m=1\):

Predicted: \(T = 25(1) = 25\)

Actual: 40

Error: \(40 - 25 = 15\)

For \(m=2\):

Predicted: \(T = 25(2) = 50\)

Actual: 65

Error: \(65 - 50 = 15\)

For \(m=3\):

Predicted: \(T = 25(3) = 75\)

Actual: 90

Error: \(90 - 75 = 15\)

Step 2: Look for a pattern.

The model is always R15 too low. That means the monthly rate of R25 seems correct, but there is also a starting fee of R15 missing.

Step 3: Revise the model.

$$T = 25m + 15$$

Step 4: Check the revised model.

For \(m=1\): \(25(1)+15=40\)

For \(m=2\): \(25(2)+15=65\)

For \(m=3\): \(25(3)+15=90\)

Conclusion: The revised model fits the data exactly.

Worked Example 3: Revising the rate of change

A student models the distance \(d\) a cyclist travels in \(t\) hours as

$$d = 12t$$

The actual data is:

  • 1 hour: 10 km
  • 2 hours: 20 km
  • 3 hours: 30 km
  • 4 hours: 40 km

Step 1: Test the model.

For \(t=1\): predicted \(12\), actual \(10\), error \(10-12=-2\)

For \(t=2\): predicted \(24\), actual \(20\), error \(20-24=-4\)

For \(t=3\): predicted \(36\), actual \(30\), error \(30-36=-6\)

For \(t=4\): predicted \(48\), actual \(40\), error \(40-48=-8\)

Step 2: Look for a pattern.

The model gets more wrong as time increases. This suggests the starting value is fine, but the rate of change is too large. The actual distance increases by 10 km each hour, not 12 km.

Step 3: Revise the model.

$$d = 10t$$

Step 4: Check the revised model.

For \(t=1\), \(d=10\)

For \(t=2\), \(d=20\)

For \(t=3\), \(d=30\)

For \(t=4\), \(d=40\)

Conclusion: The original model had the wrong rate of change. The revised model is correct.

Worked Example 4: When a linear model may not be the best choice

A plant’s height \(h\) is measured over several weeks.

  • Week 1: 2 cm
  • Week 2: 4 cm
  • Week 3: 8 cm
  • Week 4: 16 cm

A student suggests the linear model

$$h = 2w$$

where \(w\) is the week number.

Step 1: Test the model.

For \(w=1\): predicted \(2\), actual \(2\)

For \(w=2\): predicted \(4\), actual \(4\)

For \(w=3\): predicted \(6\), actual \(8\)

For \(w=4\): predicted \(8\), actual \(16\)

Step 2: Analyze.

The model works at first, but then the actual values grow much faster. The height is doubling each week, so the pattern is not linear.

Conclusion: The model should be revised because the type of model is wrong. A linear rule does not describe this data well.

At this level, the key idea is to notice that not every situation can be modeled by a straight-line pattern.

6. Questions to ask when validating a model

  • Does the model match the data exactly or closely?
  • Are the errors small or large?
  • Are the errors random, or do they follow a pattern?
  • Is the starting value correct?
  • Is the rate of change correct?
  • Is this even the right kind of model?
  • Do the predictions make sense in the real situation?

7. Common mistakes students make

  • Checking only one data point. A model might fit one point but fail on others.
  • Ignoring the starting value. Many real situations have a fixed fee or initial amount.
  • Using the wrong slope. The change between values must be checked carefully.
  • Assuming every pattern is linear. Some situations increase faster or slower over time.
  • Not thinking about meaning. Even if the numbers look close, the result must make sense in real life.

8. A simple strategy you can always use

When you are given a model and data, use this checklist:

  1. Substitute each input value into the model.
  2. Write down the predicted output.
  3. Compare it with the actual output.
  4. Find the error if needed.
  5. Decide what is wrong: the start, the rate, or the type of model.
  6. Revise the equation.
  7. Test the new equation again.

9. Why this matters

In real life, models are used in science, business, transport, sport, and many other areas. If a model is not checked, people may make poor decisions based on wrong predictions.

That is why mathematical modeling is not just about writing an equation. It is about building, testing, and improving the equation so it represents reality as well as possible.

Summary

Validating a model means testing it against actual data. Revising a model means changing it when it does not fit well.

To validate a model, compare predicted values with real values and look at the errors. If the model is always too high or too low, you may need to change the starting value. If the error gets larger over time, you may need to change the rate of change. If the pattern itself is different, you may need a different kind of model.

A strong mathematician does not stop after creating a model. They check it, question it, and improve it.

Put what you read to the test

You've worked through Validating and Revising Models. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Error Diagnosis and Propagation

Lesson: Error Diagnosis and Propagation

In maths, getting a wrong answer is not the end of the problem. It is actually a chance to learn where the mistake happened and how that mistake affected everything that came after it.

This is called error diagnosis and propagation.

  • Error diagnosis means finding the exact step where a mistake happened.
  • Error propagation means understanding how one mistake can cause later answers to also be wrong, even if those later steps were done correctly.

This skill is very important in algebra, geometry, graphs, and word problems. If you can identify the first wrong step, you can often fix the whole solution.

Why this matters

Sometimes a student makes a small arithmetic mistake, such as writing \(6 \times 4 = 20\). Other times, the student uses a rule incorrectly, such as saying \((a+b)^2 = a^2+b^2\). These are different kinds of errors, and they should be treated differently.

If the mistake is just a calculation slip, the student may understand the idea but need to be more careful. If the mistake is due to wrong logic or a wrong rule, then the student needs to correct their understanding of the concept.

Two main types of errors

When checking work, it helps to sort mistakes into two categories.

  1. Calculation errors

These happen when the method is correct, but the arithmetic or algebraic computation is wrong.

  • Adding, subtracting, multiplying, or dividing incorrectly
  • Copying a number wrong
  • Sign errors, such as changing \(-3\) into \(+3\)

Example: Solving \(2x+5=15\)

Correct method:

$$2x+5=15$$ $$2x=10$$ $$x=5$$

If someone writes \(2x=9\), that is a calculation error because subtracting 5 from 15 was done incorrectly.

  1. Logic or rule errors

These happen when the student uses an incorrect method, formula, or mathematical rule.

  • Using the distributive property incorrectly
  • Cancelling terms that should not be cancelled
  • Applying a formula in the wrong situation

Example: Saying

$$\frac{a+b}{b}=a$$

This is a logic error. You cannot cancel the \(b\) from only part of the numerator.

How to diagnose an error

To diagnose an error, do not just look at the final answer. Start from the beginning and compare each step with the rule that should have been used.

You can use this step-by-step method:

  1. Read the original problem carefully.
  2. Check each line in order.
  3. Ask, “What rule was used here?”
  4. Decide whether that rule was used correctly.
  5. Mark the first incorrect step.
  6. Decide whether it was a calculation error or a logic error.
  7. See how that mistake affected the later steps.

The first wrong step is the most important one. Later steps may be wrong only because they are based on that earlier mistake.

What propagation means

Once a mistake happens, it can spread through the rest of the work. This is called propagation.

For example, if a student solves for \(x\) incorrectly and then uses that value of \(x\) to find \(y\), both answers may be wrong. The second answer is not an independent mistake. It is wrong because the earlier error was carried forward.

This means that when you grade or check work, you should not treat every wrong line as a brand-new error. Many wrong lines may come from one original mistake.

Important question to ask

When checking a step, ask:

  • Was the method correct?
  • If the method was correct, was the calculation correct?

This helps you separate understanding problems from careless slips.

Worked Example 1: Finding a calculation error

A student solves:

$$3x-7=11$$ $$3x=17$$ $$x=6$$

Step 1: Check each move

From \(3x-7=11\) to \(3x=17\), the student added 7 to both sides. That is correct.

From \(3x=17\) to \(x=6\), the student divided by 3. The method is correct, but the calculation is wrong because

$$\frac{17}{3} \ne 6$$

The correct answer is

$$x=\frac{17}{3}$$

or \(x=5\frac{2}{3}\).

Diagnosis: calculation error.

Propagation: If the student used \(x=6\) in later work, those later answers would also be wrong because of this mistake.

Worked Example 2: Finding a logic error

A student expands:

$$4(2x+3)=8x+3$$

Check the rule used

The student is trying to use the distributive property. The correct rule is that the 4 must multiply every term inside the parentheses.

So the correct expansion is

$$4(2x+3)=4\cdot 2x+4\cdot 3=8x+12$$

The student only multiplied the first term correctly and left the 3 unchanged.

Diagnosis: logic or rule error.

Propagation: Any later equation using \(8x+3\) instead of \(8x+12\) will continue to be wrong, even if the student solves carefully after that.

Worked Example 3: Tracing the first wrong step

A student solves the equation below:

$$2(x+5)=18$$ $$2x+5=18$$ $$2x=13$$ $$x=6.5$$

At first, the final answer may look reasonable, but we need to check each step.

From

$$2(x+5)=18$$

the correct use of distribution is

$$2x+10=18$$

The student wrote \(2x+5=18\), so the first wrong step is the expansion.

After that, the student subtracted 5 and divided by 2 correctly based on their incorrect line. So the later steps are consequences of the first mistake.

Diagnosis: logic error in distributing.

Correct solution:

$$2(x+5)=18$$ $$2x+10=18$$ $$2x=8$$ $$x=4$$

Worked Example 4: Error propagation in a word problem

A rectangle has length \(x+3\) and width \(x-1\). A student tries to write an expression for the area:

$$A=(x+3)(x-1)$$ $$A=x^2+3x-1$$

Check the multiplication

To multiply two binomials, each term in the first bracket must multiply each term in the second bracket.

The correct expansion is

$$A=(x+3)(x-1)$$ $$A=x^2-x+3x-3$$ $$A=x^2+2x-3$$

The student missed some products and wrote an incomplete expression.

Now suppose the student uses their wrong area expression to find the area when \(x=4\):

$$A=4^2+3(4)-1=16+12-1=27$$

That calculation is correct for the wrong expression, but the true area is

$$A=4^2+2(4)-3=16+8-3=21$$

This is a good example of propagation. The substitution step was fine, but the result was wrong because the expression was wrong earlier.

How to tell whether a student understands the idea

Sometimes a student gets a wrong final answer but still shows good understanding. For example, if every algebra step is correct except one arithmetic slip, then the student probably understands the method.

But if the student repeatedly uses a wrong rule, such as

$$ (a+b)^2=a^2+b^2 $$

then the problem is deeper. The student needs to relearn the rule, not just work more carefully.

Common errors to watch for

  • Sign mistakes: forgetting a negative sign or changing signs incorrectly
  • Distribution mistakes: not multiplying every term inside parentheses
  • Combining unlike terms: for example, saying \(3x+2=5x\)
  • Incorrect cancelling: cancelling across addition instead of across multiplication
  • Order of operations mistakes: doing addition before multiplication when parentheses do not change the order
  • Formula misuse: using the wrong formula for area, perimeter, or other quantities

Strategies for checking your own work

You can become better at error diagnosis by building good checking habits.

  • Work one step at a time. Do not skip too many steps.
  • Write clearly. Messy work makes mistakes harder to find.
  • Check each operation. Ask what changed and why.
  • Substitute your answer back in. If solving an equation, test whether the answer makes the original equation true.
  • Estimate first. If your exact answer is far from what you expected, recheck your work.
  • Circle the first mistake. This helps separate the original error from the later propagated ones.

Quick check: method or calculation?

Classify each mistake.

  1. \(5(2x-1)=10x-1\)
  2. From \(x+8=14\), a student writes \(x=5\)
  3. \(3a+2b=5ab\)
  4. From \(4x=20\), a student writes \(x=4\)

Answers:

  1. Logic error, because distribution was not completed correctly.
  2. Calculation error, because \(14-8=6\), not 5.
  3. Logic error, because unlike terms cannot be combined that way.
  4. Calculation error, because \(20 \div 4=5\).

A useful habit in multi-step problems

In long problems, label your steps mentally like this:

  • Setup: Did I write the correct equation or expression?
  • Method: Did I choose the correct rule?
  • Calculation: Did I compute correctly?
  • Result: Does the answer make sense?

If something is wrong, this habit helps you find the exact place where the mistake began.

Summary

Error diagnosis means finding the first incorrect step in a solution. Error propagation means seeing how that first mistake affects the rest of the work.

In maths, it is important to tell the difference between a calculation error and a logic error. A calculation error means the method was right but the arithmetic was wrong. A logic error means the student used the wrong rule or idea.

When checking work, always look for the first wrong step, identify the type of error, and then decide which later mistakes came from it. This helps you learn more effectively and become a stronger problem solver.

Put what you read to the test

You've worked through Error Diagnosis and Propagation. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.

Constructing Logical Arguments

Constructing Logical Arguments means explaining why each step in your math work is valid. In 9th Grade Maths, it is not enough to only get the correct answer. You also need to show that your reasoning makes sense and follows mathematical rules.

When you construct a logical argument, you connect ideas step by step. Each statement should come from a definition, a property, a theorem, or information given in the problem. This makes your work clear, convincing, and easy to check.

This skill is important in algebra, geometry, and problem solving. For example, if you solve an equation, you should explain why you are allowed to add the same number to both sides. If you claim two angles are equal, you should name the rule that proves it.

Logical arguments answer the question: “How do you know?”

Parts of a logical argument

  • Given information: facts stated in the problem.
  • Claim: what you are trying to prove or show.
  • Steps of reasoning: statements connected in a sensible order.
  • Justification: the rule, definition, or property that supports each step.
  • Conclusion: the final statement that answers the problem.

A good logical argument is:

  • Clear — the steps are easy to follow.
  • Correct — each step uses a true math rule.
  • Complete — no important reasoning is skipped.
  • Organized — the work moves from the given facts to the claim.

Common sources of justification

In math, we often justify steps using familiar rules. Here are some of the most useful ones in 9th Grade.

  • Definition: explains the meaning of a term.
    Example: An even number is a number that can be written as \(2n\) for some integer \(n\).
  • Properties of equality: if two expressions are equal, you may do the same operation to both sides.
    Examples: add the same number to both sides, subtract the same number, multiply both sides by the same nonzero number.
  • Distributive property: \(a(b+c)=ab+ac\).
  • Combining like terms: terms with the same variable part can be added or subtracted.
  • Angle and line facts: vertical angles are equal, supplementary angles add to \(180^\circ\), and so on.
  • If-then reasoning: if a condition is true, then a result follows from a known rule.

How to build a logical argument

  1. Read the problem carefully and identify the given and the goal.
  2. Ask yourself, “What rule connects the given information to what I need to show?”
  3. Write one small step at a time.
  4. After each step, name the reason if needed.
  5. Check that every step follows from the one before it.
  6. End with a clear conclusion.

A useful sentence pattern

  • “Since ..., ...”
  • “Because ..., we can conclude ...”
  • “By the distributive property, ...”
  • “Using the definition of ..., ...”
  • “Therefore, ...”

Example 1: Justifying steps when solving an equation

Solve \(3x + 5 = 20\) and justify each step.

Step 1: Start with the given equation.

\(3x + 5 = 20\)

Step 2: Subtract \(5\) from both sides.

\(3x + 5 - 5 = 20 - 5\)

\(3x = 15\)

Justification: Subtraction property of equality. If two expressions are equal, subtracting the same number from both keeps them equal.

Step 3: Divide both sides by \(3\).

$$\frac{3x}{3}=\frac{15}{3}$$

\(x = 5\)

Justification: Division property of equality.

Conclusion: \(x=5\).

Why this is a logical argument: Each transformation is explained. We do not jump from the first line to the answer without saying why the steps are allowed.

Example 2: Using properties to simplify an expression

Simplify \(4(2x+3)-5x\) and justify the steps.

Step 1: Apply the distributive property.

\(4(2x+3)-5x = 8x+12-5x\)

Justification: \(4\) multiplies both \(2x\) and \(3\).

Step 2: Combine like terms.

\(8x+12-5x = 3x+12\)

Justification: \(8x\) and \(-5x\) are like terms because both have \(x\).

Conclusion: The simplified expression is \(3x+12\).

Important idea: When you say “combine like terms,” you are giving a reason. This is part of constructing a logical argument.

Example 3: A geometry argument

Two angles form a straight line. One angle measures \(112^\circ\). Find the other angle and explain why.

Step 1: Angles on a straight line are supplementary.

Justification: Supplementary angles add to \(180^\circ\).

Step 2: Let the unknown angle be \(x\). Then

$$x + 112 = 180$$

Step 3: Subtract \(112\) from both sides.

$$x = 180 - 112$$

$$x = 68$$

Conclusion: The other angle is \(68^\circ\).

Why the argument works: We used a geometry fact first, then solved the equation using a valid algebra rule.

Example 4: A simple proof with even numbers

Show that the sum of two even numbers is even.

This is a proof, which is a very careful logical argument.

Step 1: Use the definition of an even number.

If a number is even, it can be written as \(2n\), where \(n\) is an integer.

Let the two even numbers be \(2a\) and \(2b\).

Step 2: Add them.

$$2a + 2b$$

Step 3: Factor out \(2\).

$$2a + 2b = 2(a+b)$$

Justification: Distributive property in reverse.

Step 4: Since \(a+b\) is an integer, \(2(a+b)\) has the form \(2 \times \text{integer}\).

Conclusion: The sum of two even numbers is even.

Why this proof is logical: It starts with a definition, uses algebra correctly, and ends by matching the definition of even again.

How to decide what reason to use

Sometimes students know what step to do, but they are not sure how to justify it. Here are some helpful questions to ask yourself:

  • Did I add, subtract, multiply, or divide both sides of an equation?
    Use a property of equality.
  • Did I expand parentheses?
    Use the distributive property.
  • Did I put terms together because they had the same variable?
    Use combining like terms.
  • Did I use what a math word means, such as even, square, supplementary, or parallel?
    Use a definition.
  • Did I use a fact from geometry or algebra that is always true?
    Use a known theorem or property.

Common mistakes to avoid

  • Skipping steps: If too much happens at once, your reasoning is hard to follow.
  • No justification: A correct answer with no reason is not a strong logical argument.
  • Using the wrong rule: Make sure the rule really applies in that situation.
  • Assuming the answer: Do not start by saying the claim is true. You must show it.
  • Messy organization: Put steps in an order that makes sense.

Turning weak reasoning into strong reasoning

Weak: “\(x=7\) because I moved the 4.”

Better: “From \(x+4=11\), subtract \(4\) from both sides to get \(x=7\). This uses the subtraction property of equality.”

Weak: “The other angle is \(45^\circ\) because that is what is left.”

Better: “The angles are supplementary, so their measures add to \(180^\circ\). Therefore the unknown angle is \(180^\circ - 135^\circ = 45^\circ\).”

A simple checklist for your own work

  • Did I state what is given?
  • Did I make the goal clear?
  • Did I show one step at a time?
  • Did I explain why each step is valid?
  • Did I end with a conclusion?

Summary

Constructing logical arguments means showing that every part of your math work follows from a rule, definition, property, or given fact. Good arguments are clear, organized, and complete. Whether you are solving equations, simplifying expressions, working with angles, or writing a proof, you should always be ready to explain why each step is true.

Put what you read to the test

You've worked through Constructing Logical Arguments. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.