The energy lost due to friction is equal to the work done by friction, or Ffricd, where d is the distance travelled. Ffric can be broken down to μkFN, where μk is the coefficient of friction, and FN is the normal force. FN can further be broken down to be mgcos(θ). So, in summary E = μk(mgcos(θ))d.
Read more