跳到正文

第 8 课 · 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

跟踪学习进度

创建免费账户,即可勾选已学课程,并在任何设备上接着上次的进度继续学习。