I'm talking about the maximum speed if let's say I have a car with the power $P = 1000 \text{W}$ and a force of friction of $5 \mbox{N}$ acting in the opposite direction. After some googling I found that the maximum speed is given by $P=Fv$, where $P$ is the power, $F$ is the force, and $v$ is the velocity.
I understand that $W= Fs$ and that $P = W/t$ and $s/t$ is $v$, so yes I understand where the equation comes from, however wouldn't this be the average speed and not the maximum speed? And the force of friction is not the force that's doing the work, so why is it used in the equation?
I hope I've made my question clear enough, thank you in advance!