Not sure how to solve this problem without graphing

  • Thread starter Thread starter IntegralDerivative
  • Start date Start date
  • Tags Tags
    Graphing
AI Thread Summary
The equation 4 + x = 4(2)^x can be solved algebraically using the Lambert W function, yielding solutions x = 0 and x = -4 - (1/ln 2) LambertW(-1, -1/4 ln 2). While some problems lack straightforward algebraic solutions, numerical methods can also be applied, such as iterative methods that converge quickly. A transformation to y = 2 + x simplifies the problem, allowing for efficient approximations. The discussion highlights the utility of advanced mathematical tools like the Lambert W function and numerical methods for solving complex equations.
IntegralDerivative
Messages
27
Reaction score
3

Homework Statement



Find the solution(s) when: 4+x = 4(2)^x

Homework Equations

The Attempt at a Solution



I only know how to solve this problem using graphing. I'm not sure how to do it algebraically. Please help.

upload_2017-5-16_0-48-52.png
 
Physics news on Phys.org
I suggest that you use the fact that,$$2^x=e^{xln\left (2\right )}$$
and expand the exponential.
 
  • Like
Likes IntegralDerivative
Some problems do not have a nice easy algebraic solution. The (0,4) is easy enough to guess and also verify.
 
  • Like
Likes IntegralDerivative
IntegralDerivative said:

Homework Statement



Find the solution(s) when: 4+x = 4(2)^x

Homework Equations

The Attempt at a Solution



I only know how to solve this problem using graphing. I'm not sure how to do it algebraically. Please help.

View attachment 203610

As scottdave has indicated, some problems do no have nice solutions, and this is one of them. However, some have not-so-nice solutions, as does this one:
$$x = 0 \; \text{or} \; x = -4 - \frac{1}{\ln 2} \text{LambertW} \left( -\frac{1}{4} \ln 2 \right) \doteq -3.690093068 $$
Here, LambertW is a non-elementary function that does not have an explicit, finite formula, but has known series expansions and can be approximated numerically to as much accuracy as you want. You will not find it in a spreadsheet, but it is available in computer algebra systems such as Maple and Mathematica.
 
  • Like
Likes IntegralDerivative and Buffu
Ray Vickson said:
As scottdave has indicated, some problems do no have nice solutions, and this is one of them. However, some have not-so-nice solutions, as does this one:
$$x = 0 \; \text{or} \; x = -4 - \frac{1}{\ln 2} \text{LambertW} \left( -\frac{1}{4} \ln 2 \right) \doteq -3.690093068 $$
Here, LambertW is a non-elementary function that does not have an explicit, finite formula, but has known series expansions and can be approximated numerically to as much accuracy as you want. You will not find it in a spreadsheet, but it is available in computer algebra systems such as Maple and Mathematica.

Can "Lambert W function" give ##x= 0## as the solution ? without guessing ?
 
  • Like
Likes IntegralDerivative
IntegralDerivative said:

Homework Statement



Find the solution(s) when: 4+x = 4(2)^x

Homework Equations

The Attempt at a Solution



I only know how to solve this problem using graphing. I'm not sure how to do it algebraically. Please help.

View attachment 203610
You can apply some numerical methods. One is an iterative method (http://tutorial.math.lamar.edu/Classes/CalcI/NewtonsMethod.aspx)
You should write the equation to be solved in the form x=f(x). It works in the domain where |f '(x)|<1
The problem becomes very simple if you switch to the variable y = 2+x. The equation becomes y=2y-2. It converges quite fast for y<0.
Substitute some initial value for y, you get the next value, y1. Substitute y1, you get the next approximation, y2.
Continue till |yn+1-yn| are close enough.
Starting from y= 0, we get -1, -1.5, -1.646, -1.680, -1.688, -1.689, -1.690...which corresponds to x=-3.690.
The derivative of 2y-2= 2ylog(2) is greater then 1 for y>0.529. To get the other root (y=2), an other iterative function is needed: y=log(y+2)/log(2).
 
Last edited:
  • Like
Likes scottdave and IntegralDerivative
Buffu said:
Can "Lambert W function" give ##x= 0## as the solution ? without guessing ?

Yes. The other solution given by Maple is
$$x = -4 = \frac{1}{\ln 2} \text{LambertW}\left( -1, -\frac{1}{4} \ln 2 \right), $$
where ##\text{LambertW}(-1,z)## is one of the non-analytical branches of the Lambert function, chosen so that it is real-valued on the real interval ##(-e^{-1}+i 0, 0 + i 0)## in the complex ##z##-plane. It is not easy to see, but Maple evaluates this as ##x = 0## exactly. Of course, a person would see ##x=0## right away, without use of any advanced tools.
 
  • Like
Likes IntegralDerivative
Wow thank you so much guys. :)
 
The article in lamar.edu posted by @IntegralDerivative is a nice one, explaining numerical methods.
 
  • Like
Likes IntegralDerivative
  • #10
scottdave said:
The article in lamar.edu posted by @IntegralDerivative is a nice one, explaining numerical methods.
Actually that was posted by my friend, @ehild .
 
  • #11
SammyS said:
Actually that was posted by my friend, @ehild .
Thank you friend:smile:
 
Back
Top