### 10.3.4 Linearizing exponentials

The lin command will linearize expressions involving exponentials; namely, it will replace products of exponentials by exponentials of sums. It will first replace any hyperbolic functions by exponentials.

- lin takes expr, an expression.
- lin(expr) returns the linearized version of expr.

#### Examples

lin(sinh(x)^2)

e2 x
4

−

1
2

+

e−2x
4

lin((exp(x)+1)^3)

e3 x+3 e2 x+3 ex+1 |  |  |  |  |  |  |  |  |  |