# power_expand 函数

展开乘积与幂的幂和对数。

## 怎么写

### power_expand(expr)

**expr**

任意表达式：一个数、一个公式、一个列表或一个矩阵。接受一个表达式。

## 示例

- $\displaystyle \ln(x^{2}) = 2 \ln(x)$

  `power_expand(log(x^2))`

  在求解器中，`power_expand(log(x^2))` 的结果是 `2ln(x)`。

  [在求解器中打开](https://zh.hilberon.com/?q=power_expand%28log%28x%5E2%29%29)

## 示例中用到的函数

- [log](https://zh.hilberon.com/library/log)

  对数：ln 为自然对数，log 可指定任意底数。

## 相关函数

- [function_expand](https://zh.hilberon.com/library/function_expand)

  把带平移自变量的特殊函数改写为更简单的函数。
- [complex_expand](https://zh.hilberon.com/library/complex_expand)

  在假定变量为实数的前提下展开表达式。
- [expand](https://zh.hilberon.com/library/expand)

  把乘积和乘方展开成和式。
- [resultant](https://zh.hilberon.com/library/resultant)

  两个多项式关于某个变量的结式。
- [polynomial_remainder](https://zh.hilberon.com/library/polynomial_remainder)

  多项式除法的余式。
- [simplify](https://zh.hilberon.com/library/simplify)

  化简表达式，可选在假设条件下进行。

---
Source: https://zh.hilberon.com/library/power_expand
