← Year 9 Space

Refine it and explain the change

Fix the failed tests with a smaller change, retest, and say what changed and why. Then extend the algorithm to say whether the triangle has a right, acute or obtuse angle.

The tests found two faults. What is the smallest change that fixes both?

The tests showed the S >= L check fails when S equals L and when a length is zero. A refinement fixes the fault with the smallest change, then retests. Once the check is right, it can do more: using Pythagoras, compare L² with the sum of the squares of the other two to say whether the largest angle is right, acute or obtuse. Have a guess how L² compares with the others when the triangle is acute, and we'll come back to the machine at the end.

How this lesson works: Predict, Try, Investigate, Modify, Practise, Make
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.

The smallest fix

The check "S >= L" lets 3, 4, 7 through. Which small change fixes that case?

TryTry it on the board and compare the result with your prediction.

Retest

With the new check "S > L" and "all lengths greater than 0", what does the machine say for 3, 4 and 7?

InvestigateWork out why it happens, one step at a time.

Explain and extend

Worked exampleBefore each step, say what you think comes next.
  1. S>L and all lengths>0S > L \text{ and all lengths} > 0Refined triangle check.
Build up to it
If L² is smaller than the sum of the other squares, is the largest angle acute or obtuse?

Right, acute or obtuse? For 4, 5 and 6, L² is 36 and the squares of the others sum to 16 + 25 = 41. What is L² minus that sum?

For 2, 3 and 4: L² is 16 and the squares of the others sum to 4 + 9 = 13. What is L² minus that sum?

Mia adds the right-angle test. Click the step that is wrong.

ModifyChange the problem on purpose and see what happens.

Apply the refined version

For 5, 12 and 13: L² is 169 and the others' squares sum to 25 + 144 = 169. What is the difference?

Which sentence best explains the refinement?

After the refinement, 3, 4, 7 gives "no triangle" and 3, 4, 5 gives "triangle". What should you do next?

PractiseA few on your own, to check you have it.

Classify by sides

Strips 6, 8 and 11. L² is 121 and the others' squares sum to 36 + 64 = 100. What is L² minus that sum?

So 6, 8 and 11 make which kind of triangle?

Review: which test case is a boundary for "S > L"?

MakeMake your own problem using what you have learned. Expect a few tries; that is normal.

The machine's final check

Write the final algorithm as numbered steps and mark each decision.

Also used in

Run the refined algorithm on 6, 8 and 11. First check it is a triangle, then compare L² with the sum of the other two squares. What is L² minus that sum? (The lengths are made up for the task.)

Work it out on paper first, one step per line. Then type your answer.

Now you can
Practise this skillNew questions, new numbers each timeGet 3 right in a row to mark it practised.Finished the year?Go over it: Year 9 maths recapEvery idea in one place, to check you've got it.You reached the endBack to Year 9 Space
For teachers

Fix the failed tests with a smaller change, retest, and say what changed and why. Then extend the algorithm to say whether the triangle has a right, acute or obtuse angle. About 40 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

Before class

Students need the last two lessons and Pythagoras (Year 8).

The one idea: fix with a small change, retest everything, and explain. The right/acute/obtuse test is the converse of Pythagoras and its extension. Lengths are made up.

Running the lesson

  1. Predict: show of hands before the check.
  2. Make: the working is done on paper first.

The hard part (on purpose)

Changing everything at once. Ask: what is the smallest change that fixes the failed case?

When students get stuck

Stretch and support

Stretch: Write the algorithm in pseudocode with a loop that tests a list of strip sets and prints a verdict for each.

Support: A printed copy of the situation and a blank table to fill in.

Where it leads

Completes AC9M9SP03 node 3.

Where it leads: Year 10 proof and trigonometry.

What each step is for