Coupled-perturbed density-matrix functional theory equations. Application to static polarizabilities.