Algebra · real student question

Solve the equation 2x = 2^x.

Question

Solve

2x=2x2x=2^{x}

Step-by-step solution

  1. Test small values first. The equation mixes a linear and an exponential term, so no algebraic rearrangement will separate xx. Substituting integers:

    x=1: 2(1)=2 and 21=2 x=1:\ 2(1)=2\ \text{and}\ 2^{1}=2\ \checkmark

    x=2: 2(2)=4 and 22=4 x=2:\ 2(2)=4\ \text{and}\ 2^{2}=4\ \checkmark

    Both are exact solutions ✓. The question is then whether any others exist.

  2. Reframe as a single function. Let

    f(x)=2x2xf(x)=2^{x}-2x

    Solutions of the original equation are exactly the zeros of ff. We already know f(1)=0f(1)=0 and f(2)=0f(2)=0.

  3. Use convexity to cap the number of roots. The function 2x2^{x} is convex — its second derivative (ln2)22x(\ln2)^{2}2^{x} is positive everywhere — while 2x2x is a straight line. A line can cross a strictly convex curve at most twice. Since two crossings are already in hand, there can be no more.

  4. Confirm the shape by sampling. f(0)=10=1>0f(0)=1-0=1>0, f(1.5)=21.532.8283=0.172<0f(1.5)=2^{1.5}-3\approx2.828-3=-0.172<0, and f(3)=86=2>0f(3)=8-6=2>0 ✓. The pattern positive, negative, positive shows ff dips below zero exactly between x=1x=1 and x=2x=2 and stays positive outside — precisely two sign changes, hence exactly two roots.

  5. State the complete solution.

    x=1orx=2x=1\qquad\text{or}\qquad x=2

    Note how special this is: the near-identical equation 3x=3x3^{x}=3x has no real solution at all, because there the exponential outruns the line everywhere. The base 22 is exactly the borderline case that produces two integer intersections.

Answer

x=1orx=2x=1\quad\text{or}\quad x=2

Need to solve a different problem like this? Open the solver →