Here is the question:
Let $X$ and $Y$ be independent, continuous r.v.s with PDFs $f_X$ and $f_Y$ respectively, and let $T=X+Y$. Find the join PDF of $T$ and $X$, and use this to give a proof that $f_T(t)=\int_{-\infty}^{\infty}f_X(x)f_Y(t-x)dx$.
Here is my attempt:
First find the CDF of $X,T$: \begin{align} F_{X,T}(x,t) &=P(X\leq x,T \leq t)\\ &=P(X\leq x,X+Y \leq t)\\ &=P(X\leq x,Y \leq t-X)\\ &=P(X\leq x,Y \leq t-x)\\ &=P(X\leq x)P(Y \leq t-x)\\ &=F_X(x)F_Y(t-x) \end{align}
Thus, we can get the PDF by taking the derivative with respect to $t$: \begin{align} f_{X,T}(x,t) &=\frac{\partial^2}{\partial x \partial t}F_{X,T}(x,t)\\ &=\frac{\partial}{\partial x}(F_X(x)f_Y(t-x)) \end{align}
To get the PDF of $T$: \begin{align} f_T(t) &=\int_{-\infty}^{\infty}\frac{\partial}{\partial x}(F_X(x)f_Y(t-x))dx\\ &=F_X(x)f_Y(t-x) \end{align}
This clearly is not the convolution, does anyone know why this is wrong?
EDIT
Alright, so turns out I just forgot to evaluate the integral. Then, suppose I did this: $$f_T(t)=\int_{-\infty}^{\infty}\frac{\partial}{\partial x}(F_X(x)f_Y(t-x))dx$$
Apply chain rule and we get: $$\int_{-\infty}^{\infty}(f_X(x)f_Y(t-x)+F_X(x)\frac{\partial}{\partial x}f_Y(t-x))dx$$
Now this almost looks like the convolution, is the second term some how zero or have I made a mistake?
I am not quite sure, but I think your error is $P(X \le x, Y \le t-X) = P(X \le x, Y \le t-x)$. The most you can say here is "$\le$"; I don't think equality holds.
It suffices to show $f_{X,T}(x,t) = f_X(x) f_Y(t-x)$; then, integrating over $x$ gives the desired form of $f_T(t)$.
My computation below is a little unrigorous because I condition on an event $\{X=u\}$ that has zero probability. This issue can be resolved (see here for example), but I am curious if others have a better way of presenting this computation.
\begin{align} P(X \le x, X+Y \le t) &= \int_{-\infty}^\infty P(X \le x, X+Y \le t \mid X=u) f_X(u) \mathop{du}\\ &= \int_{-\infty}^x P(Y \le t-u) f_X(u) \mathop{du}\\ &= \int_{-\infty}^x F_Y(t-u) f_X(u) \mathop{du}\\ \frac{\partial^2}{\partial x \partial t}P(X \le x, X+Y \le t) &= \frac{\partial}{\partial t} F_Y(t-x) f_X(x)\\ f_{X,T}(x,t) &= f_Y(t-x) f_X(x). \end{align}