the work was done by all the forces acting on the particle, and equating the total to zero.
Assume the total length of the plane is (m+n)d, the coefficient of friction is μ and the mass of the particle is .M.
The acceleration of the particle at right angles to the plane is zero. So, resolving in this direction, the normal contact force N between the particle and the plane is given by
N=mgcosα
and, since the particle moves at right angles to this force, it does a zero amount of work.
During the second stage the friction force acting on the particle is μN=μmgcosα. In this phase, the particle moves through a distance and down the plane, and so the work done on the particle by this friction force is, therefore -.μmgndcosα
The particle falls through a total height (m+n)dsinα. The work done on the particle by its weight is, therefore, Mg(m+n)dsinα
Since the particle starts and finishes at rest, the gain in its KE is zero, and therefore the total amount of work done on the particle is zero. So we have:
−μmgcosα+Mg(m+n)dsinα=0
μ=(m+n)tanα/n