Matrix generalized inverses in the handling of control problems containing input derivatives