Derive the Green's function for the 1D Poisson equation assuming homogeneous and inhomogeneous Dirichlet boundary conditions on the unit interval.