Find f(x,y) given partial derivative and initial condition

  • #1
songoku
2,367
348
Homework Statement
Please see below
Relevant Equations
Partial derivative

Integration (maybe)
1697703842950.png


My attempt:
$$\frac{\partial f}{\partial x}=-\sin y + \frac{1}{1-xy}$$
$$\int \partial f=\int (-\sin y+\frac{1}{1-xy})\partial x$$
$$f=-x~\sin y-\frac{1}{y} \ln |1-xy|+c$$

Using ##f(0, y)=2 \sin y + y^3##:
$$c=2 \sin y + y^3$$

So:
$$f(x,y)=-x~\sin y-\frac{1}{y} \ln |1-xy|+2 \sin y + y^3$$

Is my answer correct? In the lesson itself, there is no integration when learning partial derivative but I can't think of any other way to solve the question without integration.

Thanks
 
Physics news on Phys.org
  • #3
Thank you very much Demystifier
 
  • Like
Likes Demystifier
  • #4
songoku said:
My attempt:
##\frac{\partial f}{\partial x}=-\sin y + \frac{1}{1-xy}##
##\int \partial f=\int (-\sin y+\frac{1}{1-xy})\partial x##
The second line should be written like this:
##\int \frac{\partial f}{\partial x}dx = \int (-\sin y+\frac{1}{1-xy})dx##
 
  • Like
Likes songoku
  • #5
Mark44 said:
The second line should be written like this:
##\int \frac{\partial f}{\partial x}dx = \int (-\sin y+\frac{1}{1-xy})dx##
Oh ok. Thank you very much Mark44
 
  • #6
I know it’s obvious and shouldn’t need saying, but just in case...

The final answer is ##f(x,y)=-x~\sin y-\frac{1}{y} \ln |1-xy|+2 \sin y + y^3##.

To check, simply evaluate ##f(0,y)## and ##\frac{\partial f}{\partial x}## to confirm that they match the given expressions.

(I’d guess - not being a mathematician - that there is some theorem which guarantees that the answer for ##f(x,y)## must be unique.)
 
  • Like
Likes songoku
  • #7
Steve4Physics said:
To check, simply evaluate ##f(0,y)## and ##\frac{\partial f}{\partial x}## to confirm that they match the given expressions.
Good point. This is something that should always be done when solving differential equations.

Steve4Physics said:
(I’d guess - not being a mathematician - that there is some theorem which guarantees that the answer for f(x,y) must be unique.)
If there's a theorem about this, it escapes me at the moment. Without the initial condition, you get a whole family of solutions. The initial condition for f(0, y) nails the family down to a single function.
 
  • Like
Likes songoku and Steve4Physics

FAQ: Find f(x,y) given partial derivative and initial condition

What is a partial derivative?

A partial derivative is a derivative where the function has multiple variables, and we differentiate with respect to one variable while keeping the other variables constant. It measures how the function changes as one specific variable changes.

How do I integrate a partial derivative to find the original function?

To find the original function from its partial derivative, you integrate the partial derivative with respect to the variable it was differentiated against. This process may need to be repeated for each variable if the function has multiple variables. Don't forget to include an arbitrary function of the other variables when integrating.

What is an initial condition in the context of partial derivatives?

An initial condition provides a specific value of the function at a particular point, which is used to determine the constant of integration when solving for the original function. It helps in finding a unique solution to the problem.

How do I apply the initial condition to find the constant of integration?

After integrating the partial derivative to obtain a general form of the original function, you substitute the initial condition into this general form. This allows you to solve for the constant of integration, giving you the specific solution that satisfies the initial condition.

Can you provide an example of finding a function given its partial derivatives and an initial condition?

Sure! Suppose we have the partial derivatives ∂f/∂x = 2x and ∂f/∂y = 3y², and the initial condition f(1, 1) = 5. First, integrate ∂f/∂x with respect to x to get f(x, y) = x² + g(y). Next, integrate ∂f/∂y with respect to y to get f(x, y) = y³ + h(x). Combining these, we get f(x, y) = x² + y³ + C. Using the initial condition, f(1, 1) = 1² + 1³ + C = 5, so C = 3. Therefore, the function is f(x, y) = x² + y³ + 3.

Back
Top