Ask Your Question

drs663's profile - activity

2022-05-20 15:04:02 +0200 received badge  Famous Question (source)
2022-05-20 15:04:02 +0200 received badge  Notable Question (source)
2022-05-20 15:04:02 +0200 received badge  Popular Question (source)
2019-02-14 16:55:52 +0200 received badge  Student (source)
2015-04-23 11:29:25 +0200 asked a question Excluding a common factor in a sum

I'm trying to figure out how to simplify this expression in Sage:

y = tau1*exp(-t/tau1)/(tau1 - tau2) - tau1*exp(-t/tau2)/(tau1-tau2)

When I try factor(y) or simplify(y), I get this:

-tau1*(e^(t/tau1) - e^(t/tau2))*e^(-t/tau1 - t/tau2)/(tau1 - tau2)

However, the result I would like to see is this:

 tau1/(tau1 - tau2)*(exp(-t/tau1) - exp(-t/tau2))

which seems like the simplest form to me. I've not been able to get this result with the various simplify commands or with assumptions (BTW, all variables are real, and tau1 & tau2 > 0).

In this case the simplest form is obvious, of course, but it would be a great help to be able to get this right for larger expressions.