Algebra · real student question

Solve 5^(x+2) = 3^(5-x) for x.

Question

Solve

5x+2=35x5^{x+2}=3^{5-x}

for xx.

Step-by-step solution

  1. See why logarithms are unavoidable. The bases 55 and 33 share no common power, so the exponents cannot simply be equated. Taking a logarithm of both sides is the standard move — and any base works, since it cancels out of the final ratio.

  2. Take natural logs and bring the exponents down. Using ln(Ak)=klnA\ln(A^k)=k\ln A:

    (x+2)ln5=(5x)ln3(x+2)\ln5=(5-x)\ln3

    The equation is now linear in xx, with ln5\ln5 and ln3\ln3 acting as ordinary constants.

  3. Expand and gather the x terms.

    xln5+2ln5=5ln3xln3xln5+xln3=5ln32ln5x\ln5+2\ln5=5\ln3-x\ln3\qquad\Longrightarrow\qquad x\ln5+x\ln3=5\ln3-2\ln5

    Both xx terms move to the left, which keeps the coefficient positive.

  4. Factor and use the product rule for logs.

    x(ln5+ln3)=5ln32ln5x(\ln5+\ln3)=5\ln3-2\ln5

    Since ln5+ln3=ln(53)=ln15\ln5+\ln3=\ln(5\cdot3)=\ln15, this simplifies to

    x=5ln32ln5ln15x=\frac{5\ln3-2\ln5}{\ln15}

  5. Evaluate, and correct a widely quoted wrong decimal. With ln3=1.098612\ln3=1.098612, ln5=1.609438\ln5=1.609438 and ln15=2.708050\ln15=2.708050:

    x=5(1.098612)2(1.609438)2.708050=5.4930613.2188762.708050=2.2741852.708050=0.839787x=\frac{5(1.098612)-2(1.609438)}{2.708050}=\frac{5.493061-3.218876}{2.708050}=\frac{2.274185}{2.708050}=0.839787

    So x0.8398x\approx0.8398. A value of 1.0371.037 is sometimes given for this equation, but it is wrong — see the check below.

  6. Verify by substitution. With x=0.8397871x=0.8397871: 5x+2=52.8397871=96.58865^{x+2}=5^{2.8397871}=96.5886 and 35x=34.1602129=96.58863^{5-x}=3^{4.1602129}=96.5886 — equal to seven significant figures ✓. Testing the incorrect x=1.037x=1.037 instead gives 53.037=132.675^{3.037}=132.67 against 33.963=77.773^{3.963}=77.77, which are not remotely equal ✗.

Answer

x=5ln32ln5ln5+ln3=5ln32ln5ln150.8398x=\frac{5\ln3-2\ln5}{\ln5+\ln3}=\frac{5\ln3-2\ln5}{\ln15}\approx 0.8398

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