Partial fraction decomposition (apart)
Split a rational expression into partial fractions.
With this function, the solver shows the steps whenever it finds them.
How to write it
apart(expr)
Split with respect to the variable of the expression.
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
apart(expr, x)
Split with respect to a chosen variable.
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
- x
- The variable to split by. Takes a variable.
Examples
apart(1/(x^2 - 1))In the solver,
Open in the solverapart(1/(x^2 - 1))gives(1/2)/(x - 1) - (1/2)/(x + 1).apart(1/(x (x + 1)), x)In the solver,
Open in the solverapart(1/(x (x + 1)), x)gives1/x - 1/(x + 1).
Related functions
- cancel
Cancel the common factors of a fraction.
- together
Combine fractions into one over a common denominator.
- coefficients
List the coefficients of a polynomial, constant term first.
- to_radicals
Write algebraic numbers, given as roots of polynomials, with radicals.
- collect
Group the terms of an expression by powers of a variable.
- subs
Substitute a rule, or a list of rules, in an expression.