Optical Waveguide: Solving Maxwell's Equation and the Schrödinger Equation