When we have a linear partial differential equation, we can take any linear combination(superposition) of any of its solutions and it will be a solution by itself. My question is if the solutions that we are adding need to satisfy the same boundary conditions of the problem?
For example, if I am trying to solve the heat or diffusion equation with some wierd boundary conditions, can the whole solution be a linear combination of solutions with every solution satisfying a set of the original problem's boundary conditions?