Step 1 :
Factor out common factor $ \color{blue}{ mn } $:
$$ m^3n-mn = mn ( m^2-1 ) $$Step 2 :
Rewrite $ m^2-1 $ as:
$$ \color{blue}{ m^2-1 = (m)^2 - (1)^2 } $$Now we can apply the difference of squares formula.
$$ I^2 - II^2 = (I - II)(I + II) $$After putting $ I = m $ and $ II = 1 $ , we have:
$$ m^2-1 = (m)^2 - (1)^2 = ( m-1 ) ( m+1 ) $$