Consider the second-order parabolic inhomogeneous second-order PDE $$ u_{tt}+2u_{tx}+u_{xx}=2c $$ I have seen two ways to solve this problem. I would like to know (1) if Solution 1 is correct (2) if Solution 2 is correct and clarification of details (3) what is the connection between Solution 1 and 2 (4) if there are any other ways to solve the PDE and (5) in more complicated second-order PDEs (e.g. hyperbolic, elliptic), could I still use these solution strategies?
$\textbf{Solution 1:}$ We can factor $$ \left( \frac{\partial }{\partial t} + \frac{\partial }{\partial x} \right)^2 u=2c $$ Now, we use a transformation of variables. Let $x=y + z$ and $t=y$ and $v(y,z)=u(t,x)$. Then, \begin{align*} v_{yy} &= \left( \frac{\partial }{\partial t} + \frac{\partial }{\partial x} \right)^2 u=2c\\ v(y,z) &= cy^2+yf_1(z) + f_2(z)\\ u(t,x) &=ct^2+tf_1(x - t) + f_2(x -t) \qquad \textit{(1)} \end{align*} and by symmetry, \begin{align*} u(t,x) &=cx^2+xg_1(t - x) + g_2(t -x) \end{align*}
$\textbf{Solution 2:}$ Again we can factor $$ \left( \frac{\partial }{\partial t} + \frac{\partial }{\partial x} \right)^2 u=2c $$ We solve the PDE in two steps, \begin{align*} \left( \frac{\partial }{\partial t} + \frac{\partial }{\partial x} \right) v &=2c \qquad \textit{(2)}\\ \left( \frac{\partial }{\partial t} + \frac{\partial }{\partial x} \right) u &=v \qquad \textit{(3)} \end{align*} By the method of characteristics for $\textit{(2)}$,we have $\frac{\partial t}{\partial w}=\frac{\partial x}{\partial w}=1$ and $\frac{\partial v}{\partial w}=2c$ so $x=w+x_0$ and $v(?,?)=2cw + \gamma_1(x_0)$.
Also by the method of characteristics for $\textit{(3)}$, we have $\frac{\partial t}{\partial s}=\frac{\partial x}{\partial s}=1$ and $\frac{\partial u}{\partial s}=v=2cs + \gamma_1(r_0)$ so $x=t+r_0$ and $$u(?,?)=cs^2 + s\gamma_1(r_0) + \gamma_2(r_0) =ct^2 + t\gamma_1(x-t) + \gamma_2(x-t) \qquad \textit{(4)}$$ This is the same as $\textit{(1)}$.
I'm a little confused about the details of this proof. Specifically, I'm just not sure what the arguments of the functions are and it feels like I'm substituting in where convenient to get to the solution (e.g. the arguments of $u(?,?)$ are $t$ and $x$ but then they're $s$ and $r_0$ and then I just substitute in for $s$ and $r_0$).