.

Using the Fundamental Theorem of Calculus and noting that y is treated as a constant when you differentiate with respect to x:

.

Now note that and use the Fundamental Theorem of Calculus again (note that x is treated as a constant when you differentiate with respect to y):

.