Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is here some way to expand a fraction to an infinite sum in mathematica, i.e., a series? I want the general term of the series.

For example, $\frac{2}{3(x-1)^3}$

share|improve this question
    
How about Series? –  Öskå Aug 3 at 13:15
    
Series works, but I was wondering if there was a function that converts the fraction straight to an infinite sum, in sum notation, not expanded out. –  Pablo Aug 3 at 13:18
2  
What would be your expected result? –  Öskå Aug 3 at 13:22
1  
@Henry: do you mean "rational function" (or even just "function") rather than "fraction"? –  murray Aug 3 at 14:44

1 Answer 1

In Mathematica 10 you can use SeriesCoefficient and Inactive to get what you require

Inactive[Sum][SeriesCoefficient[2/(3(x-1)^3),{x,0,n},Assumptions->n>=0]x^n,{n,0,\[Infinity]}]

where Inactive prevents Sum from evaluating.

You can then "activate" the Sum as follows

Activate[%]

to get back to your original expression.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.