# Separation of a rational fraction

**URL:** <https://community.wolfram.com/t/separation-of-a-rational-fraction/8493>\
**Category:** Questions\
**Tags:** algebra\
**Created:** [May 4, 2016, 10:34pm UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493 "2016-05-04T22:34:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrienguyader](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@adrienguyader](https://community.wolfram.com/u/adrienguyader)\
**Post date:** [May 4, 2016, 10:34pm UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/1 "2016-05-04T22:34:58Z")

</div>

Hi  
i do not understand why :

```
Apart[1/(1+x^4)]

```

does not calculate something like

```
(1+2x^2+x^4)-2x^2 

```

etc…  
Is there no means to apart really all rational fractions ?

---

<div class="post-metadata">

**Author:** ![henrikschachner](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/henrikschachner/32/32119_2.png) [@henrikschachner](https://community.wolfram.com/u/henrikschachner)\
**Post date:** [May 4, 2016, 11:27pm UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/2 "2016-05-04T23:27:34Z")

</div>

Hi again Adrien,

you probably mean:

```
expr = 1/(1 + x)^4;
ExpandDenominator[expr]

```

Regards – Henrik

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [May 5, 2016, 3:04am UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/3 "2016-05-05T03:04:21Z")

</div>

(1) I do not see how your proposed result is related to your input.

(2) `Apart` gives a partial fraction decomposition over the rationals, that is, the denominator is factored over Q.

---

<div class="post-metadata">

**Author:** ![adrienguyader](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@adrienguyader](https://community.wolfram.com/u/adrienguyader)\
**Post date:** [May 5, 2016, 9:30am UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/4 "2016-05-05T09:30:16Z")

</div>

Hi Henrik my aim is not expanding but separating into rational fraction hi Daniel, thanks for the information that Apart works in Q ; i had not seen that in the help menu of Apart now, how can i separate this ? :

```
Apart[1/(x^4 + 1)]
Apart[1/(x^2 - 2)]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 5, 2016, 12:54pm UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/5 "2016-05-05T12:54:08Z")

</div>

Is this what you need?

```
Apart[Factor[1/(1 + x^4), Extension -> {Sqrt[I]}]]
Apart[Factor[1/(x^2 - 2), Extension -> {Sqrt[2]}]]

```

---

<div class="post-metadata">

**Author:** ![adrienguyader](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@adrienguyader](https://community.wolfram.com/u/adrienguyader)\
**Post date:** [May 5, 2016, 9:10pm UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/6 "2016-05-05T21:10:11Z")

</div>

Hi Gianluca

yes for the second :

```
Apart[Factor[1/(x^2 - 2), Extension -> {Sqrt[2]}]]

```

But the question is : do i have to calculate by hand the roots of the denominator each time i want Mathematica to separate my f(X) in simple elements ?

For the first one :

- how do you think i could avoid these unusual (for me) (-1)^{1/4}, in order to have for example an exponential form exp(I Pi/4) instead ?

- how could i get the separation in simple elements in R, i.e. how make Mathematica guess without my help that :

and then give the decomposition ?

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 6, 2016, 5:50am UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/7 "2016-05-06T05:50:47Z")

</div>

I am not an expert, however you can make Mathematica find the appropriate extension, and you can use ExpToTrig to convert the unusual powers:

```
Apart[Factor[1/(x^2 - 2), Extension -> (x /. Solve[x^2 - 2 == 0])]]
Apart[Factor[1/(x^4 + 1), 
  Extension -> (x /. Solve[x^4 + 1 == 0] // ExpToTrig)]]

```

---

<div class="post-metadata">

**Author:** ![adrienguyader](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@adrienguyader](https://community.wolfram.com/u/adrienguyader)\
**Post date:** [May 6, 2016, 10:22am UTC](https://community.wolfram.com/t/separation-of-a-rational-fraction/8493/8 "2016-05-06T10:22:26Z")

</div>

fine, thank you very much
