Let $\dot{X_{t}} = b(X_{t}) + \sigma(X_{t})\dot{W_{t}}$ where $X_{0} = x \in \mathbb{R}$ and $W_{t}$ is a Wiener process. Let $\tau = \min\{t \mid X_{t} \not \in G\}$, where $G = (M, N) \subset \mathbb{R}$. Let $\beta = 0$ and $\sigma = 1$. Then, calculate $\mathbb{E}[\tau^{2}]$.
A solution is provided here, which uses martingales: Squared hitting time expectation including Brownian motion
I was wondering whether it is possible to solve this problem without the use of martingales. I've tried for a couple of hours, and I can't come up with anything. I've seen a derivation somewhere of $\mathbb{E}[\tau]$ that didn't use martingales, and I was wondering if something similar is possible.
Thank you