Sé el procedimiento para encontrar la función principal, pero no entiendo la lógica detrás de este procedimiento.
Vamos a suponer que son recibidos con una diferencial exacta: $$du=y\,dx+(x+2y)dy\tag{a}$$ and we wish to find the parent function $u=u(x,y)$.
For the case of a general differential $df$ $$df(x,y)=\frac{\partial f}{\partial x}dx+\frac{\partial f}{\partial y}dy\tag{b}$$
Using the form of $(\mathrm{b})$ in the specific case of $(un)$ we have $$\frac{\partial u}{\partial x}=y\tag{1}$$ y $$\frac{\partial u}{\partial y}=x+2y\tag{2}$$
Starting with equation $(1)$; I attempt via integration wrt $x$ to find the parent function $u$:
$$u(x,y)=\fbox{$\color{red}{\int\frac{\partial u}{\partial x}dx=xy+g(y)}$}$$
Where $g(y)$ is an unknown function of $y$.
Now it is at this point that I am already confused for $2$ reasons:
1. The LHS of the boxed equation is $$\int\frac{\partial u}{\partial x}\color{blue}{dx}$$ But, shouldn't this really be $$\int\frac{\partial u}{\partial x}\color{blue}{\partial x}$$ since we are integrating a partial derivative? Therefore, Is this really the 'partial integral'?
I write this as I see no justification in integrating a partial derivative when the integration differential is not partial.
2. The RHS has $g(y)$ as an unknown function of $y$. But why is this? Why not have an unknown function of $x$; $h(x)$ or an unknown function of $x$ & $y$; $q(x,y)$?
Or lastly; since I know that only one of these $3$ possibilities can be correct why not write the RHS as $xy+g(y)+\text{constant}$
Proceeding anyway to equation $(2)$ y siguiendo la misma receta como antes Me parece que $$u(x,y)=\fbox{$\color{#180}{\int\frac{\partial u}{\partial y}dy=xy+y^2+r(x)}$}$$ Donde $r(x)$ es una función desconocida de $x$.
Iff $u(x,y)$ es igual para ambos $\color{red}{xy+g(y)}$ e $\color{#180}{xy + y^2 + r(x)}$ nos debe coincidir con ellos supongo y a la conclusión de que $g(y)=y^2$$r(x)=0$. Es esta lógica es la correcta?
Si es así, podemos escribir la función principal como $$u(x,y)=xy + y^2$$
The problem is
que la respuesta correcta es $$\color{#F80}{u(x,y)=xy + y^2+C}$$ where $C$ is a constant. But where on earth did the constant $C$ come from? I just matched up the two equations for $u(x,y)$ and found that there is no extra constant $C$.
Sé que esto es un montón de preguntas para un post, pero si alguien es capaz de responder a algunas o ninguna de ellas será muy apreciada.
Sólo en caso de que se preguntan, me dieron la idea para esta pregunta de otro usuarios de la pregunta en este sitio que se puede encontrar aquí y también he leído este puesto similar desde el mismo usuario, pero todavía estoy confundido, lo siento.