I have some questions about the process involved when integrating higher order partial derivatives. I was going through a textbook on engineering mathematics on PDEs.
If $~\dfrac{\partial^2 u}{\partial x \partial y} = \sin(x+y)~$, it states that $~\dfrac{\partial u}{\partial x} = -\cos(x+y) + \phi(x)~$.
My understanding was that $~\dfrac{\partial^2 u}{\partial x \partial y}= \dfrac{\partial }{\partial x}\left(\dfrac{\partial u}{\partial y}\right) = \sin(x+y)~$.
My question is this: Can you really integrate $~\dfrac{\partial }{\partial x}\left(\dfrac{\partial u}{\partial y}\right)$ with respect to $~y~$? I thought this had to be at least integrated first wrt $~x~$ and then wrt $~y~$. In essence, since the derivative was first wrt $~y~$ and then wrt $~x~$, shouldn't the integral be first wrt $~x~$ and then wrt $~y~$?
I hope this makes sense.
Thanks
Edit: Here's the full question-Solve the equation $~\dfrac{\partial^2 u}{\partial x \partial y} = \sin(x+y)~$, given that at $~y = 0~$, $~\dfrac{\partial u}{\partial x} = 1~$ and at $~x = 0~$, $~u = (y-1)^2 ~$. Judging by the initial conditions, one way we can solve this equation is by first integrating wrt $~y~$ in order to obtain an equation in $~\dfrac{\partial u}{\partial x}~$ and hence making use of the initial condition.