Lesson Title: The Pythagorean Wobbledog: A Theorem of Code and Creatures
Materials Needed:
- Computer with internet access
- Access to Desmos Graphing Calculator (www.desmos.com/calculator)
- Access to Wobbledogs (game installed)
- LEGO Education SPIKE Prime Set
- Art of Problem Solving (AoPS) Pre-Algebra or Introduction to Algebra textbook (for reference)
- Notebook and pencil/pen
Learning Objectives:
By the end of this lesson, the student will be able to:
- Apply the Pythagorean theorem to calculate the straight-line distance between two points on a 2D coordinate plane using Desmos.
- Construct a physical, programmable model of a right triangle using the LEGO SPIKE Prime set that calculates and displays the length of its hypotenuse.
- Develop a creative analogy to explain how the Pythagorean theorem can be used as a metaphor for understanding "distance" between traits in Wobbledogs.
Alignment with Standards:
- CCSS.MATH.CONTENT.8.G.B.7: Apply the Pythagorean Theorem to determine unknown side lengths in right triangles in real-world and mathematical problems in two and three dimensions.
- Connection to AoPS Philosophy: This lesson emphasizes the AoPS approach of applying core concepts to novel, multi-step problems and building deep, conceptual understanding rather than rote memorization.
Lesson Procedure:
Part 1: Warm-Up & Digital Exploration (15 minutes)
- Review: Open the AoPS textbook to the chapter on the Pythagorean Theorem. Briefly review the formula a² + b² = c² and discuss what 'a', 'b', and 'c' represent. The key is that 'c' is always the hypotenuse, the side opposite the right angle.
- The Challenge Question: "The Pythagorean theorem is great for triangles, but how can we find the direct, straight-line distance between any two points on a map or a screen? For example, how far is the food bowl from the dog bed in your Wobbledogs pen?"
- Desmos Discovery:
- Open the Desmos Graphing Calculator.
- Plot two points, for example, Point A at (2, 3) and Point B at (7, 9).
- Ask the student: "How can we use the Pythagorean theorem to find the distance between A and B?" Guide them to see that the horizontal distance and the vertical distance between the points can form the legs of a right triangle.
- Calculate the horizontal distance (the 'a' leg): 7 - 2 = 5 units.
- Calculate the vertical distance (the 'b' leg): 9 - 3 = 6 units.
- Use the theorem: 5² + 6² = c². So, 25 + 36 = c², which means c² = 61. The distance 'c' is √61, or approximately 7.81 units.
- Have the student practice with two more sets of points of their own choosing.
Part 2: Physical Construction & Coding (30-40 minutes)
- The LEGO Task: "Let's build a machine that does the math for us. We're going to build an adjustable right triangle using the LEGO SPIKE Prime kit."
- Build:
- Use LEGO beams to create two "legs" of a right triangle connected by an angle piece to ensure a 90-degree angle. Good lengths for the legs could be 8 LEGO units and 11 LEGO units (these don't form a perfect Pythagorean triple, which is good for this exercise).
- Connect the SPIKE Prime Hub to the vertex of the right angle.
- Code:
- Open the LEGO SPIKE Prime app and connect to the Hub.
- Create a new project using Word Blocks or Python (student's choice).
- Guide the student to create a program that:
- Creates two variables, `leg_a` and `leg_b`.
- Assigns the lengths of their built LEGO legs to these variables (e.g., `leg_a = 8`, `leg_b = 11`).
- Calculates `a_squared` (leg_a * leg_a) and `b_squared` (leg_b * leg_b).
- Adds them together to get `c_squared`.
- Calculates the hypotenuse `c` by taking the square root of `c_squared`.
- Uses the "write" or "display" block to show the final calculated length of the hypotenuse on the Hub's light matrix.
- Run the program. Does the number on the screen make sense? Use a ruler or another LEGO beam to physically measure the hypotenuse of the built triangle. It should be very close to the calculated value!
Part 3: Creative Application & Synthesis (15-20 minutes)
- The Wobbledog Connection: Open Wobbledogs. Look at two different dogs in the pen. Notice their different traits (e.g., number of legs, body color, tail length, wing presence).
- Brainstorming Prompt: "Imagine each major genetic trait is a different 'dimension' or 'axis'. For example, let's say 'Leg Count' is the x-axis and 'Body Length' is the y-axis. If Dog A has 4 legs and is 6 units long, its 'genetic coordinate' is (4, 6). If Dog B has 8 legs and is 3 units long, its coordinate is (8, 3)."
- The Creative Task: "Using the idea of the Pythagorean theorem, explain how you could measure the 'genetic distance' between these two dogs. You don't need to do exact math. Describe the concept. How is finding the difference between Dog A and Dog B like finding the hypotenuse of a triangle? What would the 'legs' of this triangle represent?"
- Student Response: The student should articulate that the 'legs' of the triangle would be the *difference* in each trait.
- Leg 'a' = Difference in Leg Count (8 - 4 = 4)
- Leg 'b' = Difference in Body Length (6 - 3 = 3)
- The direct 'genetic distance' would be like the hypotenuse: √(4² + 3²) = √(16 + 9) = √25 = 5. So, their 'genetic distance' is 5 units.
Wrap-Up & Reflection (5 minutes)
- Discuss the three activities. Which was most challenging? Which was most fun?
- Ask: "In what other scenarios, real or fictional, could you use the Pythagorean theorem to find a 'distance' that isn't just a physical length?" (Examples: difference in skill levels in a game, comparing stats on two different characters, etc.)
Assessment:
- Formative (Observation):
- Was the student able to correctly apply the theorem in Desmos?
- Was the student able to successfully build and code the LEGO model to produce a correct result?
- Summative (Creative Explanation):
- Assess the student's verbal or written explanation of the Wobbledogs "genetic distance" concept.
- Excellent: The student clearly and correctly identifies the differences in traits as the "legs" (a and b) and the overall "genetic distance" as the "hypotenuse" (c), demonstrating a deep, metaphorical understanding of the theorem's application.
- Proficient: The student explains the connection but may need a small prompt to clarify what the "legs" represent. The core concept is understood.
- Developing: The student struggles to make the connection between the mathematical formula and the abstract concept of genetic traits.
Extension / Challenge Activity:
If time permits or for future exploration:
- Three-Dimensional Distance: Add a third trait to the Wobbledog analysis (e.g., 'Tail Length' as a z-axis). How would the Pythagorean theorem extend to 3D? Guide the student to discover the 3D distance formula: d² = x² + y² + z², where x, y, and z are the differences along each axis.
- Pythagorean Triples: Challenge the student to adjust the LEGO build so the legs and hypotenuse are all whole numbers (a Pythagorean Triple, like 3-4-5 or 5-12-13). Can they write a program that *finds* triples instead of just calculating a hypotenuse?