Boundary conditions are constraints necessary for the solution of a boundary value problem. Both ordinary and partial differential equations need boundary conditions to be solved.