# trig_reduce function

Rewrite powers and products of trigonometric functions as functions of multiple angles.

## How to write it

### trig_reduce(expr)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

## Examples

- $\displaystyle \sin^{2}(x) = \frac{1}{2}-\frac{\cos(2 x)}{2}$

  `trig_reduce(sin(x)^2)`

  In the solver, `trig_reduce(sin(x)^2)` gives `1/2 - cos(2x)/2`.

  [Open in the solver](https://hilberon.com/?q=trig_reduce%28sin%28x%29%5E2%29)

## Functions its examples use

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

  Sine of an angle in radians.

## Related functions

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

  Rewrite trigonometric functions as complex exponentials.
- [trig_expand](https://hilberon.com/library/trig_expand)

  Expand trigonometric functions of sums and multiples of angles.
- [exp_to_trig](https://hilberon.com/library/exp_to_trig)

  Rewrite complex exponentials as trigonometric functions.
- [arccos](https://hilberon.com/library/arccos)

  Inverse cosine: the angle in radians whose cosine is a number.
- [tanh](https://hilberon.com/library/tanh)

  Hyperbolic tangent.
- [arccosh](https://hilberon.com/library/arccosh)

  Inverse hyperbolic cosine.

---
Source: https://hilberon.com/library/trig_reduce
