A nonlinear two-point boundary-value problem in geophysics