I've tried the following variant of the method of characteristics and works well with some type of quasi-linear pde's.
For $(1)\;u_{t}-u_{x}=-x$ we write this sistem of equalities.
$$\frac{\mathrm dt}{1}=\frac{-\mathrm dx}{1}=\frac{-\mathrm du}{x}$$
With the first and second ratio:
$$\frac{\mathrm dt}{1}=\frac{-\mathrm dx}{1}\implies t=-x+c_1\;;t+x=c_1$$
With the second and the third:
$$\frac{-\mathrm dx}{1}=\frac{-\mathrm du}{x};\;x\mathrm dx=\mathrm du;\;\frac{x^2}{2}+c_2=u$$
Now, the intersection of the two surfaces obtained are the characteristics, so we need a relation to spread these curves to form a new surface, the solution of the pde, so is $c_2=A(c_1)$ with $A(u)$ any differentiable single variable function. The general solution is:
$$u(t,x)=A(x+t)+\frac{x^2}{2}$$
Chosing $A(x+t)=B(x+t)-(1/2)(x+t)^2$, $u(t,x)=B(x+t)+x^2/2-x^2/2-xt-t^/2=B(x+t)-xt-t^2/2$
For $(2)\;u_{t}+u_{x}+u=\exp(x+3t)$ we get
$$\frac{\mathrm dt}{1}=\frac{\mathrm dx}{1}=\frac{\mathrm du}{e^{x+3t}-u}$$
First and second:
$$\frac{\mathrm dt}{1}=\frac{\mathrm dx}{1}\implies t=x+c_1\;;t-x=c_1$$
With this, $\exp(x+3t)=\exp(4x+3c_1)$ So,
$$\frac{\mathrm dx}{1}=\frac{\mathrm du}{e^{4x+3c_1}-u};\;(e^{4x+3c_1}-u)\mathrm dx-\mathrm du=0$$
We can solve it finding an integrating factor: $M(x)=\exp(x)$
$$e^x(e^{4x+3c_1}-u)\mathrm dx-e^x\mathrm du=(e^{5x-3c_1}-e^xu)\mathrm dx-e^x\mathrm du=0\;\text{is now exact}\;\implies$$
$$\implies \mathrm d\left(\frac{1}{5}e^{5x+3c_1}-ue^x\right)=0$$
$$u=c_2e^{-x}+\frac{1}{5}e^{4x+3c_1}=c_2e^{-x}+\frac{1}{5}e^{x+3t}$$
And, as in the previous case, with $c_2=f(c_1)$, the general solution is:
$$u(t,x)=f(t-x)e^{-x}+\frac{1}{5}e^{x+3t}$$
For (4), $2u_{t}+u_{x}=sin(x-t)$, the system is:
$$\frac{\mathrm dt}{2}=\frac{\mathrm dx}{1}=\frac{\mathrm du}{\sin(x-t)}$$
First and second:
$$\frac{\mathrm dt}{2}=\frac{\mathrm dx}{1}\implies t=2x+c_1\;;t-2x=c_1$$
Second and third:
$$\frac{\mathrm dx}{1}=\frac{\mathrm du}{\sin(x-t)}\;\text{with}\;\sin(x-t)=\sin(-x-c_1)$$
$$\frac{\mathrm dx}{1}=\frac{\mathrm du}{\sin(-x-c_1)}\;;\sin(-x-c_1)\mathrm dx=\mathrm du$$
$$\cos(-x-c_1)+c_2=u\;;u=\cos(x-t)+c_2$$
And with $c_2=g(c_1)$ as before:
$$u(t,x)=cos(x-t)+g(t-2x)$$