In this paper we collect some concepts about viability theory that we can use in order to obtain some results for the existence of solutions (and, in many cases, extremal solutions) of discontinuous differential equations. Concretely, we show in this way some residts for initial value problems, given in [1], functional value problems, given in [2], and we also give a new residt for impulsive problems. This paper is organized as follows: In section 2 we compile some concepts about differential inclusions and viabihty theory; in section 3 we take care of problem (1.1) and we show how we can apply viability theory to initial value problems; finally, an extension of these results for functional and impulsive problems is provided in section 4.