Confined Quantum Systems Using the Finite Element and Discrete Variable Representation Methods