# Adding various combinations of rational expressions [closed]

as a newbie to Mathematica I wonder if someone can help...

I'm generating a puzzle worksheet for some students and wish to add linear rational expressions, three at a time from a pool of six.

e.g.
a) -1/(2x+1)

b) -3/(x-1)

c) 2/(3x+2)

d) 2/(x-1)

e) -3/(2x+1)

f) -1/(3x+2)

I want to be able to swiftly add (a) + (b) + (d) for example, or (b) + (d) + (f)

Can I store the expressions and add them as I have done here. I've not had much success so far. I'd like to have a worksheet which I could tweak expressions a - f without then having to manually copy & paste endlessly into arithmetic expressions.

I'm then combining them with

And will give the output to the student for Partial Fraction Decomposition.

Thanks Rob

-

## closed as off-topic by Mr.Wizard♦Jun 24 at 23:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Mr.Wizard
If this question can be reworded to fit the rules in the help center, please edit the question.

a=-1/(2x+1);

b=-3/(x-1);

c=2/(3x+2);

d=2/(x-1);

e=-3/(2x+1);

f=-1/(3x+2);

a+b+d

-(1/(-1 + x)) - 1/(1 + 2 x)

-
Thanks. I'd been missing the semi-colon! –  Saxobob Jun 24 at 23:13