Necessary Conditions Joining Optimal Singular and Nonsingular Subarcs