इस पर अटक गए? इसे AI से हल करें
Algebra · real student question

Solve 2^x + x = 5 for x.

Question

Solve

2x+x=52^{x}+x=5

Step-by-step solution

  1. Recognise that no closed form exists. The unknown appears both in an exponent and as a linear term. Logarithms cannot separate them: taking ln⁡\ln of 2x+x2^{x}+x does not simplify, because the logarithm of a sum is not the sum of logarithms. So the honest route is numerical.

  2. Confirm exactly one root and bracket it. Let f(x)=2x+x−5f(x)=2^{x}+x-5. Both 2x2^{x} and xx are strictly increasing, so ff is strictly increasing and can cross zero at most once. Evaluating:

    f(1)=2+1−5=−2<0,f(2)=4+2−5=1>0f(1)=2+1-5=-2<0,\qquad f(2)=4+2-5=1>0

    A sign change on a continuous function guarantees a root in (1,2)(1,2), and monotonicity guarantees it is the only one.

  3. Narrow the bracket by testing.

    f(1.5)=21.5+1.5−5≈2.8284+1.5−5=−0.6716<0f(1.5)=2^{1.5}+1.5-5\approx2.8284+1.5-5=-0.6716<0

    f(1.7)≈3.2490+1.7−5=−0.0510<0,f(1.72)≈3.2943+1.72−5=+0.0143>0f(1.7)\approx3.2490+1.7-5=-0.0510<0,\qquad f(1.72)\approx3.2943+1.72-5=+0.0143>0

    so the root lies between 1.701.70 and 1.721.72, already close to 1.721.72.

  4. Bisect to convergence. Repeatedly halving the bracket [1.7,1.72][1.7,1.72] and keeping the half where the sign changes converges to

    x≈1.7156207x\approx1.7156207

    Check: 21.7156207+1.7156207=5.00000002^{1.7156207}+1.7156207=5.0000000 to within 10−610^{-6} ✓.

  5. Round carefully — the third decimal matters. To three decimals the root is x≈1.716x\approx1.716, not 1.7171.717: substituting 1.7171.717 gives 21.717+1.717≈5.004522^{1.717}+1.717\approx5.00452, which overshoots 55 by about 0.0040.004. Because ff climbs at roughly 3.283.28 per unit near the root, an error of 0.0010.001 in xx shifts ff by about 0.0030.003 — enough to see, so the extra digit is worth carrying.

Answer

x≈1.71562x\approx1.71562

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