Lab 04 · Grades 8–10 · Free, no login
Translations and the Distance Formula Lab
Quick answer: A translation slides every point of a figure the same distance in the same direction, so size and shape never change. Moving x across and y down covers a straight-line distance of √(x² + y²), which is the Pythagorean theorem. In this lab students move a square with transform: translate(x, y) and check the distance the lab measures.
Find your coordinates.
Translate a square on the grid. Connect a CSS movement to a right triangle.
Make a change
CSS screen coordinates: positive x goes right, positive y goes down. Each grid square is 20 px.
The shortest way from A to B.
Move 60 px right and 80 px down. What is the straight-line distance between the starting and ending centers?
Predict first, then use the lab to investigate.
Challenge a friend
Set the controls to a secret shape, then send the link. Your friend sees a striped target and has to write the CSS that lands on it. No accounts, nothing saved.
Key ideas
What is a translation in geometry?
A translation slides every point of a figure the same distance in the same direction: (x, y) → (x + a, y + b). It is a rigid motion, so lengths, angles and area are unchanged (8.G.A.1).
How do you find the distance between two points?
Use the Pythagorean theorem on the horizontal and vertical change: d = √((x₂ − x₁)² + (y₂ − y₁)²) (8.G.B.8). Moving 60 px right and 80 px down covers √(60² + 80²) = 100 px.
Why does positive y go down in CSS?
Screen coordinates start at the top-left corner and count downward, so translate(0, 40px) moves a shape down. To move up 40 px, as in a math-class graph, CSS needs translate(0, -40px).
Does a translation change the area?
No. Every point moves by the same amount, so the square keeps its 60 px sides and its 3,600 px² area.
The CSS students change
transform: translate(60px, 80px); The first number moves right (negative moves left). The second moves down: on screens positive y points down, so use a negative y to move up.
Free teacher kit
Everything below is free to print and share. No login, no student accounts, no data collected from students.
15-minute lesson outline
- 3 minPredict. Show translate(60px, 80px). Ask: which way will the square move, and how far will its center travel in a straight line?
- 5 minTest. Try (30, 40), (−60, 80), (80, −60) and (40, 40). Record the distance the lab shows and sketch the right triangle each movement makes.
- 4 minExplain. The horizontal and vertical moves are the legs of a right triangle; the straight-line move is the hypotenuse, so d = √(x² + y²). Point out that CSS y points down, the opposite of a math-class graph.
- 3 minExit ticket. A point is translated by (−30, −40). How far did it move? Show the Pythagorean theorem step.
Standards this lab supports
| 8.G.A.1 | Verify experimentally the properties of rotations, reflections, and translations: lines are taken to lines, and line segments to line segments of the same length; angles are taken to angles of the same measure; parallel lines are taken to parallel lines. |
|---|---|
| 8.G.A.3 | Describe the effect of dilations, translations, rotations, and reflections on two-dimensional figures using coordinates. |
| 8.G.B.8 | Apply the Pythagorean Theorem to find the distance between two points in a coordinate system. |
| HSG-GPE.B.7 Also builds on | Use coordinates to compute perimeters of polygons and areas of triangles and rectangles, e.g., using the distance formula. |
These are connections to selected Common Core State Standards, not a claim of certified alignment. One short lab introduces a standard; it does not cover it. Check your district’s scope and sequence. Standards text © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers.