I have the process $X_t = W_t + \mu t$ where $W_t$ is Brownian motion and $\mu\in\mathbb{R}$. I also have the hitting time $$\tau = \inf\{t\geq 0: X_t = a \text{ or } X_t = b \}$$ where $a < 0 < b$.
I want to compute $E[e^{-\lambda\tau}]$ for arbitrary $\lambda > 0$.
I suppose one way to do that is switch to the measure under which $X_t$ is Brownian motion but that would lead to an integral involving the joint distribution of Brownian motion, its running maximum and minimum. I want to avoid that path and instead find a martingale-based technique.
Following the technique in a similar case where the hitting time is defined in terms of a single boundary (not two), I defined $$M_t := e^{\theta X_t - \lambda t}$$ for $\theta$ chosen to make $M$ a martingale. This function turned out to be not restrictive enough for my purposes as it only got me so far as to compute the probability that one boundary is hit before the other.
Then, I looked at the case where hitting time is defined in terms of two boundaries for Brownian motion with no drift. In that case, the martingale to work with is $$M_t = f(t)\cosh\left(\theta W_t - \theta\frac{a+b}{2}\right)$$ for some $f(t)$ chosen to make $M$ a martingale.
Unfortunately, defining $$M_t = f(t)\cosh\left(\theta X_t - \theta\frac{a+b}{2}\right)$$ does not get me far as this cannot be a martingale by any choice of a deterministic function $f$.
So it seems like what I need is some function that only contains $X$ (and some constants) and evaluates to the same known value at both boundaries. Furthermore, this function should probably be monotonic (or bounded) so that I can apply an appropriate convergence theorem. I can multiply this function by another deterministic function (or add them together but nothing too involved) to make the resulting process a martingale. This is where I am at. Any tips on how to proceed from this point on or different approaches are appreciated.
I think I have found the process to work with. I define $$M_t = f(t)e^{\mu X_t}\sinh\left(\theta X_t - \alpha\right)$$
I can make $M$ a martingale by a suitable choice of $\theta$ and $f$. By choosing $\alpha$ appropriately I can make it behave nicely at the barriers. I will post it an answer if this works.