Skip to content
AI-grafen
CBuilderMathematics· about 30 min· fundamentals that rarely change· verified 2026-09-20· EN

Powers and roots

Be able to compute with powers, the laws of exponents and square roots.

Practise in Mattegrafen ↗ · Matematik 1c

Prerequisites

Everyday explanation

A power is a short way of writing repeated multiplication.

25=2⋅2⋅2⋅2⋅2=322^5 = 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 = 32

PartName
2the base — the number being multiplied
5the exponent — how many times

The square root goes the other way: 49=7\sqrt{49} = 7 because 72=497^2 = 49.

Why it is worth knowing: powers make it possible to write very large and very small numbers briefly.

Written as a powerWritten out
10910^91 000 000 000 (a billion)
10−610^{-6}0.000001 (a millionth)
1.75⋅10121.75 \cdot 10^{12}1 750 000 000 000

A large language model has roughly 101110^{11} parameters and is trained on roughly 101310^{13} tokens. Writing those numbers out would be unmanageable.

Intuition

The laws of exponents — all of them follow from writing the multiplication out:

LawExampleWhy
am⋅an=am+na^m \cdot a^n = a^{m+n}23⋅24=272^3 \cdot 2^4 = 2^73 twos times 4 twos = 7 twos
aman=am−n\dfrac{a^m}{a^n} = a^{m-n}2522=23\dfrac{2^5}{2^2} = 2^3two twos cancel
(am)n=amn(a^m)^n = a^{mn}(23)2=26(2^3)^2 = 2^63 twos, twice
a0=1a^0 = 170=17^0 = 1amam=a0\frac{a^m}{a^m} = a^0 and also 1
a−n=1ana^{-n} = \dfrac{1}{a^n}2−3=182^{-3} = \frac{1}{8}it continues the pattern downwards
a1/2=aa^{1/2} = \sqrt{a}91/2=39^{1/2} = 3(a1/2)2=a1(a^{1/2})^2 = a^1

The row about a0=1a^0 = 1 surprises many people. Look at the pattern: 23=82^3 = 8, 22=42^2 = 4, 21=22^1 = 2, 20=?2^0 = ? — every step down halves, so the next one is 1. And then 2−1=0.52^{-1} = 0.5.

Two common errors:

WrongRight
23⋅24=472^3 \cdot 2^4 = 4^7=27= 2^7 — the base does not change
(a+b)2=a2+b2(a + b)^2 = a^2 + b^2=a2+2ab+b2= a^2 + 2ab + b^2

The second is one of the most common errors in all school mathematics. Check it with numbers: (1+2)2=9(1+2)^2 = 9, but 12+22=51^2 + 2^2 = 5.

Code

import math

print(2 ** 5, math.sqrt(49), 49 ** 0.5)          # 32 7.0 7.0

# The laws of exponents, checked numerically
assert 2**3 * 2**4 == 2**7
assert 2**5 / 2**2 == 2**3
assert (2**3) ** 2 == 2**6
assert 7**0 == 1
assert 2**-3 == 1 / 8
assert abs(9 ** 0.5 - math.sqrt(9)) < 1e-12
print("all the laws of exponents hold")

# The pattern that explains a⁰ = 1
for e in range(3, -4, -1):
    print(f"2^{e:>2} = {2.0 ** e}")
# 2^ 3 = 8.0
# 2^ 0 = 1.0
# 2^-3 = 0.125

# The classic error — check it with numbers
a, b = 1, 2
print((a + b) ** 2, a**2 + b**2)                 # 9 5  ← not the same thing!
print((a + b) ** 2, a**2 + 2*a*b + b**2)         # 9 9  ← right

# Large and small numbers
print(f"{10**11:,} parameters")                  # 100,000,000,000
print(f"{1.75e12:,.0f} tokens")                  # 1,750,000,000,000
print(2 ** 10, 2 ** 20, 2 ** 30)                 # 1024 1048576 1073741824
#      ↑ kilo      ↑ mega        ↑ giga (in the computers' powers of two)

Mastery means

  • Computes with powers and the laws of exponents
  • Handles negative exponents and the zero exponent
  • Uses square roots and powers of ten

Sign in to do the exercises and build your mastery up.

Sources

All the sources and licences