Ask Your Question
0

how to solve: exp(x)+exp(1/2*x) == 2?

asked 12 years ago

amalea gravatar image

updated 12 years ago

benjaminfjones gravatar image
sage: assume(x,'real')
sage: solve(exp(x)+exp(-1/2*x) == 2,x)
[x == 2*log(1/2*sqrt(5) - 1/2), x == 0]

that ist ok!

how can i get here the solution x==0?

sage: solve(exp(x)+exp(1/2*x) == 2,x)
[e^x == -e^(1/2*x) + 2]

Thanks for help.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 12 years ago

achrzesz gravatar image
sage: solve(exp(x)+exp(1/2*x)==2,x,to_poly_solve=True) 
[x == 2*I*pi + 4*I*pi*z36 + 2*log(2), x == 4*I*pi*z38]

For z38=0, x=0

(Wolframalpha gives the same solution)

Preview: (hide)
link

Comments

Also see http://trac.sagemath.org/sage_trac/ticket/10444, which should be in Sage 5.3, for more obvious documentation of this option!

kcrisman gravatar imagekcrisman ( 12 years ago )
0

answered 12 years ago

achrzesz gravatar image
sage:  l=e^(1/2*x)+e^x
sage: var('u')
u
sage: lu=l.subs(x=2*log(u))
sage: assume(u>0)
sage: solve(lu==2,u)
[u == 1]
sage: 2*log(1)
0
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 751 times

Last updated: Jul 25 '12