Closed-Form Solutions of Convexity and M-Square