Differentiability from representation formula and Sobolev-Poincaré inequality