We consider an optimal control problem with a convex integral quality functional for a linear system with fast and slow variables in the class of piecewise continuous controls with smooth constraints on the control, where x ∈ Rn, y ∈ Rm, u ∈ Rr; Aij and Bi, i, j = 1, 2, are constant matrices of corresponding dimension, and the functions ϕ1(·), ϕ2(·) are continuously differentiable in Rn, Rm, strictly convex, and cofinite in the sense of the convex analysis. In the general case, for such problem, the Pontryagin maximum principle is a necessary and sufficient optimality condition and there exist unique vectors le and pe determining an optimal control by the formula, The main difference of our problem from the previous papers is that the terminal part of quality functional depends on the slow and fast variables and the controlled system is a more general form. We prove that in the case of a finite number of control change points, a power asymptotic expansion can be constructed for the initial vector of dual state, which determines the type of the optimal control. © 2019 Danilin A.R., Shaburov A.A.