# Linearizing exponentials: lin

### 5.24.4 Linearizing exponentials: lin

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 one argument:
  expr, an expression.
- lin(expr) returns the linearized version of expr.

#### Examples.

- Input:
  lin(sinh(x)^2)
  Output:

  e2 x
  4

  −

  1
  2

  +

  e−2 x
  4

- Input:
  lin((exp(x)+1)^3)
  Output:

  e3 x+3 e2 x+3 ex+1