The class of strongly semicontinuous functions is considered. For these functions
the notion of mollified derivatives, introduced by Ermoliev, Norkin and Wets, is extended to the second order. By means of a generalized Taylor’s formula, second order necessary and sufficient conditions are proved for both unconstrained and constrained optimization.