Introduction

Welcome to Estimating and Comparing Real Numbers, the fourth and final course in our learning path on the real number system! In earlier courses, we built a strong foundation: defining rational and irrational numbers, converting between forms, and placing irrationals between consecutive integers. Now we are going to put all of that knowledge to practical use.

In this first lesson, we will learn a hands-on method called trial squaring. It allows us to approximate irrational square roots to any level of precision we need, whether that is the nearest tenth, hundredth, or beyond. By the end, we will be able to pin down a value like 5\sqrt{5} not just "somewhere between 2 and 3," but to a specific decimal like 2.242.24.

Why Approximations Matter

Irrational square roots show up more often than we might expect. Cutting a diagonal brace for a bookshelf, figuring out a television's screen size from its width and height, or checking a distance on a map can all involve a square root that does not come out to a neat whole number. Since irrational decimals never terminate or repeat, we cannot write them out exactly. What we can do is find a rational decimal that is close enough for the job at hand.

Three everyday scenarios where irrational square roots arise: a diagonal bookshelf brace, a TV screen measurement, and a map distance

The key question is always: how close is close enough? Sometimes rounding to the nearest whole number is fine. Other times we need accuracy to a tenth or a hundredth. Trial squaring gives us a systematic way to reach whatever precision we choose.

Recalling Integer Bounds

As you may recall from the previous course, the first step with any irrational square root is to find the two consecutive perfect squares it sits between. For example, to begin approximating 5\sqrt{5}:

  • We know 22=42^2 = 4 and .
Narrowing to the Nearest Tenth

To get a tenth-precision estimate of 5\sqrt{5}, we test values between 22 and 33 in steps of 0.10.1, squaring each candidate and checking where falls. Rather than testing all ten possibilities, we can be strategic. Since is much closer to than to , let's start near the low end of the interval:

The Midpoint Test

The number 2.252.25 is exactly halfway between 2.22.2 and 2.32.3. If 5\sqrt{5} is less than , it is in the lower half of the interval and therefore closer to . If is greater than , it is in the upper half and closer to .

Pushing to Hundredths Precision

The beautiful thing about trial squaring is that the same process repeats at every decimal place. We now know 5\sqrt{5} lies between 2.22.2 and 2.32.3. To reach hundredths precision, we test values in steps of within that range. Since the midpoint test told us is below , we can focus on the lower portion. A bit of testing reveals:

Complete Walkthrough

Let's apply the full method from scratch on a new number: approximate 30\sqrt{30} to the nearest hundredth.

Flowchart of the trial squaring algorithm: four steps from finding integer bounds through the midpoint test, with a feedback arrow for repeating at finer precision

Step 1 — Integer bounds. We note that 52=255^2 = 25 and , so .

Common Pitfalls

Before we move on to practice, here are a few things to watch for as you use this technique:

  • Squaring errors. When computing something like 5.4725.47^2, take your time. A small arithmetic slip can send the entire process in the wrong direction. One reliable approach is the identity (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2, which breaks the multiplication into simpler pieces.
Conclusion and Next Steps

In this lesson, we learned how to take an irrational square root and systematically zero in on its value using trial squaring. The method follows a simple, repeatable cycle: identify the interval, test candidates by squaring, find the two consecutive values that trap the target, then apply the midpoint test to determine which endpoint is closer. We can repeat this cycle to reach tenths, hundredths, or any finer precision the situation calls for.

Now it is time to put this technique to work! In the upcoming practice exercises, you will complete a guided trial-squaring sequence, produce your own tenth- and hundredth-precision approximations from scratch, and apply the method to a real-world scenario involving a room diagonal. Let's get squaring!

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