Let \(\mathcal {X}\) be a certain Banach space of analytic functions on the open unit disk \(\mathbb {D}\) in the complex plane. Let p be an analytic polynomial and let \(M_p\) denote the operator of multiplication by p. Under certain conditions on p, we characterize the structure of the operator S such that \(M_pS=SM_p\) . We determine the commutant of direct sum of certain multiplication operators on direct sum of certain spaces of functions. Assume that \(\psi\) is an analytic automorphism of the unit disk, we also characterize the commutant of \(M_{p(\psi )}\) under certain conditions on p.