This is decidedly not a general answer, but let's play a bit. If we do
expr = Integrate[Exp[s t] c/s
, {s, a - b I, a + b I}
, Assumptions -> {a > 0, b > a, c ∈ Reals, t ∈ Reals}]/(2*π*I)
this yields
ConditionalExpression[
-((I c (-ExpIntegralEi[(a - I b) t] + ExpIntegralEi[(a + I b) t]))/(2 π))
, t >= 0]
We of course need to choose a > 0
because the vertical contour that we integrate along needs to be to the right of any poles in the function we are integrating. In this case, there is a pole at 0. I am using b > a > 0
because I find it doubtful that Mathematica knows how to integrate the thing along the entire vertical contour: in fact, if you try it, Mathematica says that the integral does not converge (which is not surprising! - we are in some sense trying to compute a principle value integral). Finally, of course t
needs to be non-negative. We knew this already from the definitions of the Laplace transform and inverse Laplace transform.
In any case, we can now set a
to anything positive we want, so let's consider the following:
Limit[expr /. {a -> 1, t -> #}] & /@ {1, 5, 0.4, 100}
(* {c, c, 1. c, c} *)
which of course suggests that the expression is equal to c
.
In general, if the integral of your function f[s]
can actually be evaluated, then I would do
Integrate[Exp[s t] f[s]
, {s, a - b I, a + b I}
, Assumptions -> {a > 0, b > a, t >= 0}]/(2*π*I)
and play around with the results. I do not think this will work very often, however. In addition, if it does spit back a solution, the functions that it yields are likely to have branch cuts that you have to worry about. I think that symbolic complex integration with computers is hard.
If you try
Integrate[1/(2 \[Pi] I) Exp[s t] 1/(1 + s^2), {s, a - b I, a + b I}, Assumptions -> {a > 0, b > a, t >= 0}]
you get back something with Gamma
functions and Log
functions evaluated at imaginary inputs. If you let a -> 2
and try taking the Limit
as b -> Infinity
with integer of t
, eventually you get an expression that will ExpToTrig
to Sin[t]
while spitting out errors that you might need to be concerned about. (Nonetheless, that's the right answer).
InverseLaplaceTransform[c/s, s, t]
? $\endgroup$