# Why partial derivatives in continuity equation?

1. Jun 14, 2012

### biubiu

Why is partial derivative with respect to time used in the continuity equation,
$$\frac{\partial \rho}{\partial t} = - \nabla \vec{j}$$
If this equation is really derived from the equation,
$$\frac{dq}{dt} = - \int\int \vec{j} \cdot d\vec{a}$$
Then should it be a total derivative with respect to time?

2. Jun 14, 2012

### vin300

Partial derivative is used because the charge density may also vary with distance.