2. Find the solution $u = u(x, t)$ to the heat equation
$$
\frac{\partial u}{\partial t} = k \frac{\partial^2 u}{\partial x^2}
$$
where $u$ is subject to the following boundary and initial conditions
$$
u(0, t) = u(1, t), \quad u_x(0, t) = u_x(1, t)
$$
$$
u(x, 0) = 1 - x
$$