Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 38 ยท Expressions and Order of Operations

Square Roots

Understand square roots as the inverse of squaring, learn perfect squares, estimate roots that are not whole numbers, and meet irrational numbers.

Squaring a number multiplies it by itself: 6ยฒ = 36. A square root undoes that: it answers "which number multiplied by itself gives 36?" The answer is 6. We write โˆš36 = 6. The symbol โˆš is called the radical sign.

Square roots are everywhere: the side of a square with a known area, the distance between two points, standard deviations in statistics. In this lesson you learn to find them exactly when you can and to estimate them when you cannot.

Perfect squares

A perfect square is the square of a whole number: 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, .... Their square roots are whole numbers: โˆš49 = 7 because 7 ร— 7 = 49.

Picture it: a square tile floor with 49 tiles can be arranged as a 7 by 7 square. If the area is a perfect square, the side length is a whole number.

flowchart LR
    A["Side 7"] -- "square it" --> B["Area 49"]
    B -- "square root" --> A

Squaring and taking the square root are inverse operations.

Python Perfect squares and their roots

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The function math.isqrt gives the whole-number square root.

Is a number a perfect square?

Check by taking its integer square root and squaring it again. If you get the original number, it is perfect. For example math.isqrt(50) = 7, and 7ยฒ = 49 โ‰  50, so 50 is not a perfect square.

A quick hint from the last digit: perfect squares can only end in 0, 1, 4, 5, 6, 9. A number ending in 2, 3, 7 or 8 is never a perfect square.

Two square roots?

The equation xยฒ = 25 has two solutions: x = 5 and x = โˆ’5, because (โˆ’5)ยฒ = 25 too. But the symbol โˆš25 means only the positive (principal) root, 5. So you write the equation's solutions as x = ยฑโˆš25 = ยฑ5. We will return to this when solving equations. Negative numbers have no real square root: no real number squared is negative.

Estimating square roots

Most numbers are not perfect squares. To estimate โˆš20, find the perfect squares on either side: 16 < 20 < 25, so 4 < โˆš20 < 5. Test the middle: 4.5ยฒ = 20.25, which is just above 20, so โˆš20 is a little less than 4.5. A good estimate is 4.47.

Method (guess and refine):

  1. Bracket between two whole numbers.
  2. Try the midpoint and square it.
  3. Move to the half that still contains the target. Repeat.
Python Estimate a square root by halving

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Each step halves the interval, so after 12 steps the estimate is accurate to about two decimal places.

Irrational numbers

โˆš16 = 4 is a whole number, but โˆš2 = 1.41421356... never ends and never repeats. A number whose decimal expansion does neither is called irrational: it cannot be written as a fraction of two integers. The square root of any whole number that is not a perfect square is irrational. Another famous irrational number is ฯ€.

So the decimals in your calculator for โˆš2 are only an approximation. The exact value is written โˆš2.

Simplifying square roots

If a number has a perfect-square factor, you can pull it out: โˆš50 = โˆš(25 ร— 2) = โˆš25 ร— โˆš2 = 5โˆš2. This uses the fact that โˆš(a ร— b) = โˆša ร— โˆšb for non-negative numbers.

Example: โˆš72 = โˆš(36 ร— 2) = 6โˆš2.

Python Check a simplification numerically

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Be careful: โˆš(a + b) is not โˆša + โˆšb. For example โˆš(9 + 16) = โˆš25 = 5, but โˆš9 + โˆš16 = 3 + 4 = 7.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is โˆš81?

    9 ร— 9 = 81, so the square root of 81 is 9.
  2. 2. Between which two whole numbers does โˆš70 lie?

    8ยฒ = 64 and 9ยฒ = 81. Since 64 < 70 < 81, the root is between 8 and 9.
  3. 3. Which is a perfect square?

    12 ร— 12 = 144. The others lie between consecutive perfect squares.
  4. 4. Simplify โˆš45.

    45 = 9 ร— 5 and โˆš9 = 3, so โˆš45 = 3โˆš5.

Summary

  • A square root undoes squaring: โˆš36 = 6 because 6ยฒ = 36.
  • Perfect squares have whole-number roots; estimate other roots between neighbouring perfect squares.
  • โˆš means the positive root, while xยฒ = 25 has solutions ยฑ5.
  • Roots of non-perfect squares are irrational numbers: decimals that never end or repeat.
  • โˆš(a ร— b) = โˆša ร— โˆšb, but โˆš(a + b) is not โˆša + โˆšb.

Next: Properties of Operations