We consider the analytic solution of a class of fractional differential equations with variable coefficients by operatorial methods. We obtain three theorems which extend the Garra's results to the general case.