# exponential equation

sage: solve(exp(-x)+exp(x) == 2,x)
[x == 0]
sage: solve(exp(-2*x)+exp(2*x) == 2,x)
[]

Can tell me anyone why the second equation has no solution?

exponential equation

sage: solve(exp(-x)+exp(x) == 2,x)
[x == 0]
sage: solve(exp(-2*x)+exp(2*x) == 2,x)
[]

Can tell me anyone why the second equation has no solution?

1

I unfortunately don't have time to check why this doesn't work, but the following keyword argument (useful to know in any case) does work:

```
sage: (exp(-2*x)+exp(2*x) == 2).solve(x,to_poly_solve=True)
[x == I*pi*z15]
```

which should be interpreted as saying `z15`

is a free integer variable (hence `z`

). One can also do

```
sage: (exp(-x)+exp(x) == 2).solve(x,to_poly_solve='force')
[x == 2*I*pi*z24]
```

for all possible solutions to the original one. Unfortunately, finding the documentation for this (currently) requires using the method notation instead of functional

```
sage: solve?
```

notation.

Asked: **
2010-10-02 06:35:11 -0500
**

Seen: **2,007 times**

Last updated: **Oct 02 '10**

exponential equation real solution

Numerical real solution of derivative

Issues with: Solving a polynomial equation with multiple variables

SAGETEX: Howto compute solution of a function

Using the solution of equation

printing equations in latex inside cell

Should evaluating 1.0e-15 produce an Unhandled SIGILL

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

For the record, this question is closely related to http://ask.sagemath.org/question/156/exponential-equation-real-solution