# First Order Linear PDE with Boundary Value Conditions

I have encountered a problem here. Solve the partial differential equation, $$\frac{\partial u(t,x)}{\partial t}+\frac{\partial u(t,x)}{\partial x}+u(t,x)=1$$ with the inflow boundary value $$u(0,t)=t^2$$ I know how to solve this with an initial condition, just don't know how to implement the boundary condition.

EDIT: Using the method of characteristics, you get a formula for $u(t,x)$ on every characteristic curve $x-t=c$, involving an arbitrary constant. Substitute the boundary condition to find that arbitrary constant.
You may be confused because of an unfortunate notational conflict. In the PDE your function is given as $u(t,x)$, but in the boundary value the second variable is given as $t$ instead of $x$. Since you call this a "boundary value" rather than "initial condition", I assume that this $t$ is supposed to be the "time" variable. So either replace $u(t,x)$ by $u(x,t)$ in the PDE, or replace $u(0,t)$ by $u(t,0)$ in the boundary condition. $u(t,0)$.