Apart
Apart[
expr
]
rewrites a rational expression as a sum of terms with minimal denominators.
Example:
Apart[(x^2
+
1)/(x
-
1)]
.
Apart
gives the partial fraction decomposition of a rational expression.
Apart[
expr
,
var
]
writes
expr
as a polynomial in
var
together with a sum of ratios of polynomials, where the degree in
var
of each numerator polynomial is less than that of the corresponding denominator polynomial.
Examples:
Apart[(x
+
y)/(x
-
y),
x]
.
Apart[(x
+
y)/(x
-
y),
y]
.
See also:
Together
.
Examples
Using InstantCalculators
Here is the InstantCalculator for the
Apart
function. Enter the parameters for your calculation and click
Calculate
to see the result.
In[1]:=
Out[1]=
Entering Commands Directly
You can paste a template for the command via the Text Input button on the
Apart
Function Controller.
In[2]:=
Out[2]=
Here, neither
x
nor
y
are treated as constants.
In[3]:=
Out[3]=
Here,
y
is treated as a constant.
In[4]:=
Out[4]=
Here,
x
is treated as a constant.
In[5]:=
Out[5]=