When the variables $X, Y$ are independent, then the PDF of $Z = X + Y$ can be computed using convolutions: $$ f_Z(z) = \int_{-\infty}^{\infty} f_X(x)f_Y(z - x) dx $$
When the variables are dependent, apparently you can use $$ f_Z(z) = \int_{-\infty}^{\infty} f_{XY}(x, z - x) dx $$
I am wondering where the expression came from for the dependent case? It looks very similar to the independent case except you can't separate the joint distribution into marginals.
There is a property for linear combinations that says if X, Y have joint pdf $f(x, y)$ and $Z=aX+bY+c$, then Z has pdf $$g(z)=\int_{-\infty}^\infty f\left(x, \frac{z-c-ax}b\right)\frac1{|b|}dx$$
For $Z=X+Y$, $$\begin{split}G(z)&=\int_{-\infty}^\infty\int_{-\infty}^{z-x}f(x,y)dydx\end{split}$$
Change of variables $w=x+y$
$$\begin{split}G(z)&=\int_{-\infty}^\infty\int_{-\infty}^{z}f(x,w-x)dwdx\\ &=\int_{-\infty}^z\int_{-\infty}^{\infty}f(x,w-x)dxdw\end{split}$$
Derivative with respect to $z$
$$\begin{split}g(z)&=\left[\frac{d}{dz}(z)\right]\int_{-\infty}^\infty f(x, z-x)dx-0\\ &=1\cdot\int_{-\infty}^\infty f(x, z-x)dx=\int_{-\infty}^\infty f(x, z-x)dx\end{split}$$