# Series expansion (series)

Series expansion of an expression about a point.

With this function, the solver shows the steps whenever it finds them.

## How to write it

### series(f, x = a, order = n)

The expansion up to the given order.

**f**

The expression or function to work on. Takes an expression.

**x = a**

The variable and the point to expand about. Takes a variable set to a value.

**order = n**

The order of the expansion: a whole number. Takes a whole number.

### series(f, x = a, order = n, side = left|right)

The expansion on one side of the point.

**f**

The expression or function to work on. Takes an expression.

**x = a**

The variable and the point to expand about. Takes a variable set to a value.

**order = n**

The order of the expansion: a whole number. Takes a whole number.

**side = left|right**

Which side of the point to expand on: left or right. Takes left or right.

## Examples

- $\displaystyle e^{x} \text{ near } x = 0 = 1+x+\frac{x^{2}}{2}+\frac{x^{3}}{6}+\frac{x^{4}}{24}+\frac{x^{5}}{120}+\frac{x^{6}}{720}$

  `series(exp(x), x = 0, order = 6)`

  In the solver, `series(exp(x), x = 0, order = 6)` gives `1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120 + x^6/720`.

  [Open in the solver](https://hilberon.com/?q=series%28exp%28x%29%2C%20x%20%3D%200%2C%20order%20%3D%206%29)
- $\displaystyle \frac{1}{1-x} \text{ near } x = 0 = 1+x+x^{2}+x^{3}+x^{4}$

  `series(1/(1 - x), x = 0, order = 4)`

  In the solver, `series(1/(1 - x), x = 0, order = 4)` gives `1 + x + x^2 + x^3 + x^4`.

  [Open in the solver](https://hilberon.com/?q=series%281%2F%281%20-%20x%29%2C%20x%20%3D%200%2C%20order%20%3D%204%29)
- $\displaystyle \operatorname{series}(\sqrt{1-\cos(x)}, x = 0, \operatorname{order} = 4, \operatorname{side} = \operatorname{right}) = \frac{\sqrt{2} x}{2}-\frac{\sqrt{2} x^{3}}{48}$

  `series(sqrt(1 - cos(x)), x = 0, order = 4, side = right)`

  In the solver, `series(sqrt(1 - cos(x)), x = 0, order = 4, side = right)` gives `sqrt(2)*x/2 - sqrt(2)*x^3/48`.

  [Open in the solver](https://hilberon.com/?q=series%28sqrt%281%20-%20cos%28x%29%29%2C%20x%20%3D%200%2C%20order%20%3D%204%2C%20side%20%3D%20right%29)

## Functions its examples use

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

  Exponential function; exp(x) is the power e^x.
- [sqrt](https://hilberon.com/library/sqrt)

  Square root; sqrt(x) is the power x^(1/2).
- [cos](https://hilberon.com/library/cos)

  Cosine of an angle in radians.

## Related functions

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

  The coefficient of the term of a given order in the series of an expression.
- [product](https://hilberon.com/library/product)

  Product of an expression over one or more ranges.
- [sum](https://hilberon.com/library/sum)

  Sum of an expression over one or more ranges.
- [numeric_sum](https://hilberon.com/library/numeric_sum)

  Add up an expression over a range, as a decimal.
- [sum_convergence](https://hilberon.com/library/sum_convergence)

  Test whether the sum of an expression over a variable converges.
- [numeric_product](https://hilberon.com/library/numeric_product)

  Multiply an expression over a range, as a decimal.

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