Intution : The divergence of a three-dimensional vector field is the extent to which the vector field flow behaves like a source at a given point.
But if my vector field is $F=\langle P,Q,R\rangle$ then formula is for divergence is given as $P_x+Q_y+R_z$.
I want to know how this formula capute that intutitve idea.
I studied using MIT OCW. But professor didn't talk about how we get formula from the idea. So,I see videos from Khan academy, if we consider $i$ component i.e. $P$ , the divergence is positive ( Intution) if $P_x>0$ and vice versa.similarly for $j,k$ component. But a vector field need not be oriented along axis .he tells something like for an arbitrary vector field we can decompose vectors into components.but I didn't get that thing
Could someone please explain how we get this formula from intution of divergence.
Thanks!


Basically the intuition comes from the divergence theorem, which says that the integral of the divergence of a field $F$ over a volume $V$ is equal to the outward flux of $F$ through the boundary of $V$. By taking the volume small you recover the differential interpretation.
The divergence theorem itself is more or less a generalization of the fundamental theorem of calculus. Indeed in the 1D situation, the contributions to the outward flux from $[a,b]$ at $a,b$ are $-f(a),f(b)$ respectively (the minus sign coming because the outward normal at $a$ points to the left), so the flux is $f(b)-f(a)$ which is of course $\int_a^b f'(x) dx$.