We use ##d## for an exact differential
https://en.wikipedia.org/wiki/Exact_differential, while ##\delta## for an inexact differential
https://en.wikipedia.org/wiki/Inexact_differential.
I am going to highlight some of the things you can read in the above Wikipedia links:
1) In the case of one independent variable x, a differential is a form A(x)dx. If there is a function ##f(x)## such that its derivative is ##f'(x)=A(x)## then the differential is exact and it is written as ##df=f'(x)dx=A(x)dx##.
2) in the case of many variables let's say in the case of 3 independent variables, call them x,y,z a differential is a form ##A(x,y,z)dx+B(x,y,z)dy+C(x,y,z)dz##.
If there is a function ##f(x,y,z)## such that its corresponding partial derivatives with respect to x,y,z equal A,B,C then that differential is called an exact differential and is written a ##df##.
That is ##df=\frac{\partial f}{\partial x}dx+\frac{\partial f}{\partial y}dy+\frac{\partial f}{\partial z}dz=A(x,y,z)dx+B(x,y,z)dy+C(x,y,z)dz## for the proper function f (if such f exists) such that ##\frac{\partial f}{\partial x}=A(x,y,z), \frac{\partial f}{\partial y}=B(x,y,z), \frac{\partial f}{\partial z}=C(x,y,z)##
if there is not such a function f then the differential is called an inexact differential and can be written as ##\delta \vec {F}=\vec{F} \cdot d\vec{r}## where F is the vector in ##R^3## with ##\vec{F}=A(x,y,z)\vec{x}+B(x,y,z)\vec{y}+C(x,y,z)dz## and ##d\vec{r}=\vec{x}dx+\vec{y}dy+\vec{z}dz##