Mathematical study of a nonlinear neuron model with active dendrites