The sage command for a partial fraction decomposition is partial_fraction(). Here's an example. <sagecell> var('s') Y=(2*s+3)/((s)*(s+2)) Y.partial_fraction(s) </sagecell>
You can have a lot more variables in the problem.
<sagecell> var('A,B,C,s') Y=(A*s+B)/((s)*(s+C)) Y.partial_fraction(s) </sagecell>
The Mathematica command is Apart.
Apart[(2*s+3)/((s)*(s+2)),s]