Existence theory of Filippov-Roxin type and a maximum principle for optimal control problem governed by differential-algebraic equations are formulated and proved. The index-3 case is illustrated on mechanical descriptor systems arising in robotics.