Let's imagine there's a block of mass m sitting on a rough surface with a kinetic friction coefficient u$\mu$. It's being pulled with a constant force A$A$ at h$h$ degrees above the horizontal and is displaced a distance d$d$. The work done by A$A$ on the block is positive and is the horizontal component of A$A$ times the displacement:
$A\cos (h)*d$$$A\cos (h)*d.$$
I thought this meant that the work done by friction would be either the negative of that amount or else
$\mu*(mg-Asin (h))*d$$$\mu*(mg-A\sin (h))*d$$
but apparently not?