In this post there is shown that for a standard Brownian motion $\mathbb{E}[\tau^p]<\infty$ for all $p \geq 1$, where
\begin{align}
\tau = \inf\{t \geq 0 : B_t = \alpha \ \ \text{or}\ \ B_t=-\beta\}.
\end{align}
Now, $\mathbb{E}[B_\tau]$ can be written as
\begin{align}
&= \alpha P(B_\tau = \alpha) - \beta P(B_\tau = -\beta) \\
&= \alpha P(B_\tau = \alpha) - \beta (1 - P(B_\tau = \alpha)) \\
&= (\alpha + \beta) P(B_\tau = \alpha) - \beta.
\end{align}
Since, $B_\tau$ is a martingale, $B_{\tau \wedge t}$ is a martingale as well. So,
\begin{align}
\mathbb{E}[B_{\tau \wedge t}\mid \mathcal{F}_0] = B_{\tau \wedge 0} = B_0 = 0.
\end{align}
Therefore,
\begin{align}
\mathbb{E}[B_{\tau \wedge t}] = 0.
\end{align}
Since $| B_{\tau \wedge t} | \leq \max(\alpha, \beta)$ (why?), by the Dominate Convergence Theorem we find that $\mathbb{E}[B_{\tau}] = 0$. Hence, we can conclude that $\mathbb{P}(\{B_\tau=\alpha\})=\frac{\beta}{\alpha+\beta}$.
Likewise, since $B_\tau^2 - \tau$ is a martingale, $B_{\tau \wedge t}^2 - \tau$ is a martingale. Why is $| B_{\tau \wedge t}^2 | + \tau \leq \max(\alpha^2, \beta^2) + \tau$? And how to conclude from this, by the DCT, that $\mathbb{E}[B_{\tau }^2]=\alpha \beta $?
Furthermore, I am wondering how to determine that , $\mathbb{E}[M_{\tau}] = 0$ for $M_t = B_t^2 - t^2$ for $t\geq 0$ and how to conclude that $\mathbb{E}[\tau] = \alpha \beta$?