I'd go to the definition of the divergence theorem.

Let's multiply through and examine the first component

Note that,

Represents the integral of the derivative of P with respect to x. Which means, we take the derivative and then integrate back to our original function. This means,

Thus,