I have the following question which makes sense when taking into account that $X_0=0$, but I don't get the same result if we use the variable.
QUESTION: Consider the SDE $$dX_t=\alpha X_t dt+2dW_t,\quad X_0=0,$$ where $W_t$ is a standard Brownian motion and $\alpha\in\mathbb{R}$ is a constant.
Derive the unique solution.
PROFESSOR'S ANSWER: $X_t=e^{\alpha t}X_0+2e^{\alpha t}\int_0^t e^{-\alpha s}dW_s$
ATTEMPT:
I first proved using one of my theorems in my notes that this SDE has a unique solution.
We have $$|\alpha x-\alpha y|+|2-2|=|\alpha x-\alpha y|=|\alpha(x-y)|\le\alpha|x-y|,$$ for all $x,y\in\mathbb{R}$. Hence, the SDE has a unique solution.
Now, consider $Z_t=e^{-\alpha t}X_t$, then Ito's formula gives: $$dZ_t=\left(-\alpha e^{-\alpha t}X_t+\alpha e^{-\alpha t}X_t\right)dt+2e^{-\alpha t}dW_t=2e^{-\alpha t}dW_t$$ THIS IS WHERE I GET CONFUSED - have I done something wrong, or is my answer the correct one?
We have $Z_t=e^{-\alpha t}X_t$, so $X_t=e^{\alpha t}Z_t$. Consider $dX_t=e^{\alpha t}dZ_t$, then integrating on both sides gives: $$\int_0^t dX_s=e^{\alpha t}\int_0^t dZ_s\implies \int_0^t dX_s=2e^{\alpha t}\int_0^t e^{-\alpha s}dW_s\implies X_t-X_0=2e^{\alpha t}\int_0^t e^{-\alpha s}dW_s\implies X_t=X_0+2e^{\alpha t}\int_0^t e^{-\alpha s}dW_s$$