Finding a function given its partial derivatives, stuck on finding g'(x)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 18K views
mitch_1211
Messages
95
Reaction score
1
Hi all,

I have the following partial derivatives

∂f/∂x = cos(x)sin(x)-xy2

∂f/∂y = y - yx2

I need to find the original function, f(x,y).

I know that df = (∂f/∂x)dx + (∂f/∂y)dy

and hence

f(x,y) = ∫∂f/∂x dx + g(y) = -1/2(x2y2+cos2(x)) + g(y)

Then to find g(y) I took the partial derivative of f(x,y) that I just found wrt y and equate to the original given ∂f/∂y

i.e -x2y +g'(y) = y-x2
which is a first order differential equation of the form

dg/dy = - (y+x2)/(x2y)

and now I am not sure how to proceed and solve this DE

Mitch
 
Physics news on Phys.org
mitch_1211 said:
Hi all,

I have the following partial derivatives

∂f/∂x = cos(x)sin(x)-xy2

∂f/∂y = y - yx2

I need to find the original function, f(x,y).

I know that df = (∂f/∂x)dx + (∂f/∂y)dy

and hence

f(x,y) = ∫∂f/∂x dx + g(y) = -1/2(x2y2+cos2(x)) + g(y)

Then to find g(y) I took the partial derivative of f(x,y) that I just found wrt y and equate to the original given ∂f/∂y

i.e -x2y +g'(y) = y-x2
which is a first order differential equation of the form

That's a typo, no? It should be

[tex]-x^2y+g^\prime(y)=y-yx^2[/tex]
 
oh you're right, I must have typed it out incorrectly from my notes.

so it becomes

dg/dy = y

∴ ∫dg = ∫y dy

so g = y2/2

does that sound about right?