Rearranging for a Leg

Introduction

Welcome back to Solving for Unknown Sides! You are now on lesson three of seven, and your skills are building nicely. In the previous lesson, we learned a reliable three-step procedure for finding the hypotenuse: square each leg, add, and take the square root. That works perfectly when both legs are known. But what happens when the hypotenuse is given and one of the legs is missing? That is exactly what we tackle today. Our goal is to rearrange the Pythagorean equation so it isolates a leg, and to understand why this rearrangement looks different from what we did before.

A Different Situation

So far, every problem we have solved gave us the two legs and asked for the hypotenuse. In those problems, we always added the squared leg values. It is tempting to think that the Pythagorean Theorem is always about adding, but that is only half the story.

Consider this scenario: a ladder leans against a wall. You know how long the ladder is (the hypotenuse) and how far the base sits from the wall (one leg). You need the height the ladder reaches up the wall (the other leg). The unknown side is no longer the hypotenuse — it is a leg. This changes the algebra we need to do, and understanding why it changes is the key insight of this lesson.

Thinking in Squares

Rearranging the Equation

Why Subtraction and Not Addition

A Quick Numerical Check

Common Mistake to Watch For

Conclusion and Next Steps

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal