Ask Your Question
0

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

asked 2012-07-25 15:19:15 +0100

amalea gravatar image

updated 2012-07-25 16:09:49 +0100

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-07-25 17:51:59 +0100

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)

edit flag offensive delete link more

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 ( 2012-07-26 00:11:24 +0100 )edit
0

answered 2012-07-25 18:42:21 +0100

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
edit flag offensive delete link more

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: 2012-07-25 15:19:15 +0100

Seen: 732 times

Last updated: Jul 25 '12