Let $X$ and $Y$ be two random variables. Suppose $X_1=X+Y$ and $X_2=X-Y$. If the joint density function of $(X_1,X_2)$ is given by $$f_{X_1,X_2}(x_1,x_2)=\frac{1}{2\pi\sqrt{3}}e^{-\frac{1}{2}\Big(\frac{(x_1-4)^2}{3}+(x_2-2)^2\Big)} \ \ \ \ \ x_1,x_2\in\mathbb{R}$$ Compute the joint density function $f_{X,Y}(x,y)$.
My attempt:
$$f_{X,Y}(x,y)=f_{X_1,X_2}(x_1,x_2)\frac{1}{|det(J)|}$$ where $$det(J)=\begin{vmatrix} \frac{\partial x}{\partial x_1} & \frac{\partial x}{\partial x_2} \\ \frac{\partial y}{\partial x_1} & \frac{\partial y}{\partial x_2} \\ \end{vmatrix}=\begin{vmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} \ \end{vmatrix}=-\frac{1}{2}$$ Hence$$f_{X,Y}(x,y)=\frac{1}{\pi\sqrt{3}}e^{-\frac{1}{2}\Big(\frac{(x+y-4)^2}{3}+(x-y-2)^2\Big)} \ \ \ \ \ x,y\in\mathbb{R}$$
Compute the marginal density function $f_X(x)$
Assuming my above working is correct, this is my attempt. I does not feel correct, but I can't see any errors. $$f_X(x)=\int_{-\infty}^{\infty}\frac{1}{\pi\sqrt{3}}e^{-\frac{1}{2}\Big(\frac{(x+y-4)^2}{3}+(x-y-2)^2\Big)} dy=-\frac{3}{ \pi\sqrt{3}}\Bigg[\frac{1}{(2x-4y-2)e^{\frac{1}{2}\Big(\frac{(x+y-4)^2}{3}+(x-y-2)^2\Big)}}\Bigg]_{-\infty}^{\infty}=0$$
An extended comment:
You have the joint density of $(X_1,X_2)$ given by
$$f_{X_1,X_2}(x_1,x_2)=\frac{1}{\sqrt{3}\sqrt{2\pi}}\exp\left[-\frac{1}{2}\cdot\frac{(x_1-4)^2}{3}\right]\cdot\frac{1}{\sqrt{2\pi}}\exp\left[-\frac{(x_2-2)^2}{2}\right]\qquad,(x_1,x_2)\in\mathbb R^2$$
So it follows that $X_1$ and $X_2$ are independently distributed with $X_1\sim\mathcal N(4,3)$ and $X_2\sim\mathcal N(2,1)$. (The second parameter denotes variance as is often the case).
From the change of variables you are given, $$X=\frac{X_1+X_2}{2}$$ and $$Y=\frac{X_1-X_2}{2}$$
By the reproductive property of normal distribution, we know that $X\sim\mathcal N(3,1)$ and $Y\sim\mathcal N(1,1)$.
Further, $X$ and $Y$ being linear combinations of jointly normal variables $X_1$ and $X_2$ ($X_1,X_2$ being independent normal variables implies they are themselves jointly normal), their joint distribution is bivariate normal. A relatively simple proof of this fact follows from moment generating functions.
To be precise, the joint distribution of $(X,Y)$ would be of the form $\mathcal N(\mu,\Sigma)$, where $\mu=\begin{pmatrix}3\\1\end{pmatrix}$ is the mean vector and $\Sigma=\begin{pmatrix}1&-1\\-1&1\end{pmatrix}$ is the dispersion matrix.
While we can make out the final answer before doing any actual work, you have to prove this using the transformation of variables. The procedure as you have attempted is straightforward and you seem to know what needs to be done. I have included the answer for you to check with your results.