Apart

WMA link


Apart[expr]

writes expr as a sum of individual fractions.

Apart[expr, var]

treats var as the main variable.

When several variables are involved, the results can be different
depending on the main variable:

Apart is Listable:

But it does not touch other expressions:

Cancel