Chuyển đến nội dung

Bài 7 · Expressions and Order of Operations

Exponents and Powers

Learn what exponents and powers mean, how to evaluate them, and the product, quotient and zero-exponent rules, with worked examples and runnable code.

Repeated addition has a shortcut: multiplication. 4 + 4 + 4 = 3 × 4. Repeated multiplication has a shortcut too: the exponent. Instead of 4 × 4 × 4 we write 4³. This notation is compact, and it is essential for areas, volumes, growth, scientific notation and much of algebra.

Base and exponent

In 4³, the number 4 is the base (the number being multiplied) and 3 is the exponent (how many copies of the base to multiply). The whole expression is a power. You read it "4 to the power of 3" or "4 cubed".

4³ = 4 × 4 × 4 = 64

4³ does not mean 4 × 3. The exponent counts factors; it is not a multiplier. 4³ = 64, but 4 × 3 = 12.

Special names: n² is "n squared" (the area of a square with side n), and n³ is "n cubed" (the volume of a cube with side n).

Power Meaning Value
2⁵ 2 × 2 × 2 × 2 × 2 32
10³ 10 × 10 × 10 1,000
3² 3 × 3 9
5¹ 5 5

Powers of 10 are easy: 10ⁿ is a 1 followed by n zeros. That is why they appear in place value.

Python Evaluate powers

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.

In Python, ** is the exponent operator. Look at how fast the powers of 2 grow: this is called exponential growth.

Exponents and the order of operations

Exponents are evaluated after parentheses and before multiplication, division, addition and subtraction.

  • 3 × 2²: exponent first, 2² = 4, then 3 × 4 = 12. (Not 6² = 36.)
  • (3 × 2)²: parentheses first, 6² = 36.
  • 5 + 2³ = 5 + 8 = 13.

Negative bases

Be careful with the sign. In (−3)² the base is −3, so (−3)² = (−3) × (−3) = 9. But −3² means "the negative of 3²", which is −9. Negative numbers get a full lesson later; for now, remember that parentheses decide what the base is.

Three rules that save work

Look at 2³ × 2⁴. Written out, it is (2 × 2 × 2) × (2 × 2 × 2 × 2), which is seven twos: 2⁷. This gives the first rule.

  1. Product rule: same base, multiply → add exponents. aᵐ × aⁿ = aᵐ⁺ⁿ. Example: 2³ × 2⁴ = 2⁷ = 128.
  2. Quotient rule: same base, divide → subtract exponents. aᵐ ÷ aⁿ = aᵐ⁻ⁿ. Example: 5⁶ ÷ 5² = 5⁴ = 625.
  3. Power of a power: (aᵐ)ⁿ = aᵐ×ⁿ. Example: (3²)³ = 3⁶ = 729.

Why does the quotient rule work? 5³ ÷ 5³ = 1 (anything non-zero divided by itself). The rule gives 5³⁻³ = 5⁰. So defining 5⁰ = 1 keeps the rules consistent. In general, any non-zero number to the power 0 is 1.

Python Test the exponent rules

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 last line shows a trap: the product rule only applies when the bases are the same.

Squares and cubes worth knowing

Memorizing these makes later work faster.

n 1 2 3 4 5 6 7 8 9 10 11 12
n² 1 4 9 16 25 36 49 64 81 100 121 144
n³ 1 8 27 64 125 216 343 512 729 1000 1331 1728
Python Print your own squares and cubes table

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.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is 2⁴?

    2⁴ = 2 × 2 × 2 × 2 = 16. The exponent counts the number of twos being multiplied.
  2. 2. Simplify 3⁵ × 3² using the product rule.

    Same base, so add the exponents: 5 + 2 = 7. The bases are not multiplied.
  3. 3. What is 3 × 2³?

    Exponent first: 2³ = 8. Then 3 × 8 = 24.
  4. 4. What is 9⁰?

    Any non-zero number raised to the power 0 equals 1.

Summary

  • aⁿ means n copies of a multiplied together: a is the base, n the exponent.
  • Exponents come after parentheses and before multiplication in the order of operations.
  • Product rule: add exponents; quotient rule: subtract; power of a power: multiply.
  • Any non-zero number to the power 0 is 1.
  • These rules need the same base.

Next: Square Roots

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.