So, we would like to find the change in internal energy (dU) when we increase the volume from V to V+dV. Let's setup an equation for this:
dU = U(V+dV,T) - U(V,T)
Now, how do we calculate U(V+dV,T)? Because dV is small, let's assume that the function is a straight line near this point, so to find U(V+dV,T), we model it as a line (ignoring temperature):
U(V+x) = U(V) + m*x
where m is the slope. Here, the slope is just the partial derivative of the internal energy with respect to V: (dU/dV)T. So, this tells us that;
U(V+dV,T) = U(V,T) + (dU/dV)TdV
Now, we plug this back into our equation for dU above:
dU = U(V+dV,T) - U(V,T) = U(V,T) + (dU/dV)TdV - U(V,T) = (dU/dV)TdV
You can go through a similar line of reasoning to find dU when T is increased by dT.