Given $\dfrac{x^4+x^3-4x^2-4x}{x^4+x^3-x^2-x}$, is there a way to make it into a sum or difference of rationals such as:
$\dfrac{x^2}{(x-1)(x+1)}-4\dfrac{1}{(x-1)(x+1)}?$
I've tried using factor and normal but with no luck. I think the closest I've gotten to getting the desired result is with normal(p/factor(q)), where p:=x^4+x^3-4x^2-4x and q:=x^4+x^3-x^2-x. However this only gives me x^2-4/(x+1)(x-1). I think that I am on the right track in defining p and q as the numerator and denominator, respectively. Any help would be appreciated; thanks.
expand( factor( p/q ) )should do the trick. – m_l Sep 26 '13 at 16:20expandandfactorwould cancel each other out, leaving just the originalp/q? Also, if you put your comment as an answer, I'll put it as best answer. :) – Sujaan Kunalan Sep 26 '13 at 16:26op,simplifyandexpand. Big parts of Maple's behaviour are actually influenced by the underlying data structures. Try checking the equality of two matrices to get an idea of what I mean. – m_l Sep 26 '13 at 16:34p=x^4-6*x^2-5*xandq=x^4+x^3-x^2-xas another example. Thenexpand(factor(p/q))will produce a sum of three terms each with denominator(x-1)*(x+1). Would you prefer that to the sum of three terms (shorter and with different denominators) produced by instead callingconvert(p/q,parfrac)? Is it central to your goal, that the denominator be common? – acer Sep 26 '13 at 16:53