For the block m not to slide with respect to M, the friction force must provide the acceleration a.
$f = ma$
The maximum static friction force is $f_{max} = \mu_s N = \mu_s mg$
Therefore, $ma \le \mu_s mg$
$a \le \mu_s g$
$a_{max} = \mu_s g$
Show more…