2
$\begingroup$

I am trying to solve the following integral

\begin{equation} \left[\int_{0}^{t/2}d\tau-\int_{t/2}^{t}d\tau\right]\left[\int_{0}^{t/2}d\tau'e^{-\left|\tau-\tau'\right|/\tau_{c}}-\int_{t/2}^{t}d\tau'e^{-\left|\tau-\tau'\right|/\tau_{c}}\right] \end{equation}

using Mathematica, but I do not get any answer for it. Is there any trick to deal with this type of integrals?

Here is the implementation for the parentheses on the right

Integrate[Exp[-Abs[\[Tau]-\[Tau]p]/\[Tau]c], {\[Tau]p, 0, t/2}]-  Integrate[Exp[-Abs[\[Tau]-\[Tau]p]/\[Tau]c], {\[Tau]p, t/2, t}]

enter image description here

Thanks!

$\endgroup$
0

1 Answer 1

5
$\begingroup$

If you add assumptions that variables are positive, then

Assuming[{t > 0, τc > 0, τ > 0},
 Integrate[
    Exp[-Abs[τ - τp]/τc] // ComplexExpand, {τp, 0, t/2}] -
   Integrate[
    Exp[-Abs[τ - τp]/τc] // ComplexExpand, {τp, t/2, t}] //
   FullSimplify]

enter image description here

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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