y=2xy = 2^x

Graph of the Exponential Function y=2xy = 2^x

y=2xy = 2^x is the exponential function with base 22: its value doubles each time xx increases by 11, making it the archetype of repeated doubling.

Domain and range

The domain is all real numbers. Since 2x2^x is never zero and never negative, the range is y>0y > 0. Negative exponents simply give small positive values, such as 21=122^{-1} = \dfrac{1}{2} and 22=142^{-2} = \dfrac{1}{4}.

Monotonicity

The derivative is as follows.

y=2xln2y' = 2^x \ln 2

Here ln20.693\ln 2 \approx 0.693 is a positive constant and 2x>02^x > 0, so yy' is always positive and the function increases monotonically. The second derivative y=2x(ln2)2y'' = 2^x (\ln 2)^2 is positive as well, so the curve is convex throughout: the larger it grows, the faster it grows.

Asymptotes and limits

As xx \to -\infty, 2x02^x \to 0, so the xx-axis, the line y=0y = 0, is a horizontal asymptote. The values stay positive, so the curve approaches it from above. As x+x \to +\infty the function diverges to ++\infty.

Repeated doubling

Because 2x+1=22x2^{x+1} = 2 \cdot 2^x, each unit step in xx multiplies the value by exactly 22.

xx2x2^x
2-20.250.25
0011
1122
553232
101010241024
202010485761048576

Ten steps multiply the value by 210=10242^{10} = 1024, roughly a thousandfold. Modest at first, it eventually outgrows every polynomial: for large enough xx, 2x2^x overtakes even x100x^{100}.

Notable points

The curve passes through (0,1)(0, 1), (1,2)(1, 2), (2,4)(2, 4) and (1,12)\left( -1, \dfrac{1}{2} \right). Since a0=1a^0 = 1, every exponential function passes through (0,1)(0, 1) whatever its base.

How the base changes the curve

The inverse is log2x\log_2 x. Writing 2x=exln22^x = e^{x \ln 2} shows that it is y=exy = e^x compressed horizontally.

BaseBehaviorExample
a>1a > 1increases monotonicallyy=2xy = 2^x
a=1a = 1constantly 11y=1xy = 1^x
0<a<10 < a < 1decreases monotonicallyy=(12)xy = \left( \dfrac{1}{2} \right)^x

Indeed (12)x=2x\left( \dfrac{1}{2} \right)^x = 2^{-x} is this graph reflected in the yy-axis, a decreasing curve.

Applications

It models anything that doubles.

  • A cell divides into two, so after nn divisions there are 2n2^n cells
  • In binary, nn bits represent 2n2^n distinct values
  • Halving processes such as radioactive decay are written 2t/T2^{-t/T}

The essence of exponential growth is that the time it takes to double stays the same, no matter how large the quantity already is.