Let $W$ be a Brownian motion with respect to its natural filtration. How can I show with Itô's formula that $e^{t/2}\cos(W_t)$ is a martingale?
I'm using the following formulation of Itô's formula: Let $X$ be a continuous semimartingale and $f \in C^2(\mathbb{R}^d; \mathbb{R})$. Then $f(X)$ is again a continuous semimartingale, and we $\mathbb{P}$-a.s. simultaneously for all $t \geq 0$
$$f(X_t) = f(X_0) + \sum_{i=1}^d\int_0^t\frac{\partial f}{\partial x^i}(X_s) \ dX^i_s + \frac{1}{2}\sum_{i, j=1}^d \int_0^t\frac{\partial^2 f}{\partial x^i \partial x^j}(X_s) \ d\langle X^i,X^j\rangle_s.$$
And by defining $f(t, x) := e^{t/2}\cos(x)$, I get $$e^{t/2}\cos(W_t) = 1 - \int_0^te^{s/2}\sin(W_s) \ dW_s,$$
and this is where I'm stuck.
I first thought, that I could conclude that $\int_0^te^{s/2}\sin(W_s) \ dW_s$ is a martingale since it's a stochastic integral, but the existence theorem for the stochastic integral that I'm working with, only applies to integrators $M$ that are locally square-integrable and null at zero and integrands $H$ which are predictable and satisfy
$$\mathbb{E}\left[\int_0^{\infty}H^2_s \ d[M]_s \right]<\infty.$$
In my case, I don't believe that the latter condition holds.
I also have a proposition that extends this existence theorem to the set of predictable processes for which there exists a sequence of stopping times $(\tau_n)_{n \in \mathbb{N}}$, s.t. $\tau_n \nearrow \infty$ holds $\mathbb{P}$-a.s. and for each $n$ we have
$$\mathbb{E}\left[\int_0^{\tau_n}H^2_s \ d[M]_s \right]<\infty.$$
Althought this condition is satisfied, since $\mathbb{E}\left[\int_0^{t}e^s \sin^2(W_s) \ d[W]_s \right] = \mathbb{E}\left[\int_0^{t}e^s \sin^2(W_s) \ ds \right]<\infty$ for all $t\geq 0$, this proposition only states that the resulting stochastic integral $H \bullet M$ is a locally square integrable martingale null at zero. How can I now conclude that $\int_0^te^{s/2}\sin(W_s) \ dW_s$ is a true martingale?
Thank you in advance for any clarifications!