### 10.2.22 Transforming inverse trigonometric functions into logarithms

Just as the trigonometric functions can be written in terms of complex exponentials, the inverse trigonometric functions can be written in terms of complex logarithms. The atrig2ln command does this rewriting.

- atrig2ln takes one argument: expr, an expression containing inverse trigonometric functions.
- atrig2ln(expr) returns expr with any inverse trigonometric functions replaced by the appropriate complex logarithms.

#### Example

atrig2ln(asin(x))

i ln | ⎛ ⎜ ⎝ | x+ | √ |
x2−1
| ⎞ ⎟ ⎠ | + |
π
2