One of the 25 questions in this topic
Friction does negative work: W = −f_k·d if it opposes displacement, converting mechanical energy into heat.