Power is defined as rate of change of work. Since we are talking about derivatives, the power concerned is instantaneous power which is defined as
$$P = dW/dt$$
Now remember that by definition, work done
$$W = \int _C \overrightarrow F \cdot d \overrightarrow r$$
where $\int _C$ represents a line integral over the required path.
Therefore
$$dW = \overrightarrow F \cdot d \overrightarrow r$$
To get dW/dt, we divide both sides by dt to get
$$P = dW/dt = \overrightarrow F \cdot \frac{d \overrightarrow r}{dt}$$
We know that velocity $\overrightarrow v = \frac{d \overrightarrow r}{dt}$
Thus we have
$$P = \overrightarrow F \cdot \overrightarrow v$$
The source of the error was that work done is defined by the equation
$$dW = \overrightarrow F \cdot d \overrightarrow r$$
rather than the more well known one
$$W = \overrightarrow F \cdot \Delta \overrightarrow r$$
where $\Delta \overrightarrow r$ is the vector displacement. This equation is valid only for the case where the force is constant, and can in fact be derived from the more general $dW = \overrightarrow F \cdot d \overrightarrow r$
Hope this helps
$\frac{dW}{dt}= F(x(t)),\frac{dx}{dt}= F(x(t)),v(t)$ where $x(t)=\int v,dt$
– Eli Feb 10 '20 at 15:22