Help tidying up a partial derivative?

In summary: I still not so sure. When ##y## is written in this problem, it short hand for ##y = f(x) = \sin(x)##. Since y = f(x), we can substitute this into the original equation which leads to$$\cos\Big(\frac{x}{y}\Big) = \cos\Big(\frac{x}{f(x)}\Big) \Rightarrow\frac{\partial f}{\partial x}\cos\Big(\frac{x}{y}\Big) = -\sin\Big(\frac{x}{f(x)}\Big)\frac{f(x) - xf'(x)}{f^2(x)}$$In an equation ##f(x, y) = xy -
  • #1
physicsshiny
14
1

Homework Statement


Find [itex]\frac{\partial f}{\partial x}[/itex] if [itex]f(x,y)=\cos(\frac{x}{y})[/itex] and [itex]y=sinx[/itex]

Homework Equations


See above

The Attempt at a Solution


For [itex]\frac{\partial f}{\partial x}[/itex] I calculated [tex]-\frac{1}{y}\sin(\frac{x}{y})[/tex] which comes out as [tex]\frac{-\sin(\frac{x}{\sin(x)})}{sinx}[/tex] and this looks really messy. Maybe I'm missing something really obvious or I made a silly mistake (or both), but it looks like this can be made to look neater. Any hints or tips on tidying this expression up would be much appreciated.
 
Physics news on Phys.org
  • #2
Since y is a function of x, wouldn't the result be the full derivative of the function.
 
Last edited:
  • #3
physicsshiny said:

Homework Statement


Find [itex]\frac{\partial f}{\partial x}[/itex] if [itex]f(x,y)=\cos(\frac{x}{y})[/itex] and [itex]y=sinx[/itex]

Homework Equations


See above

The Attempt at a Solution


For [itex]\frac{\partial f}{\partial x}[/itex] I calculated [tex]-\frac{1}{y}\sin(\frac{x}{y})[/tex] which comes out as [tex]\frac{-\sin(\frac{x}{\sin(x)})}{sinx}[/tex] and this looks really messy. Maybe I'm missing something really obvious or I made a silly mistake (or both), but it looks like this can be made to look neater. Any hints or tips on tidying this expression up would be much appreciated.

Did you use the chain rule correctly? Once you have negative sine, you need to take the derivative of the argument
$$
\frac{f'g - g'f}{g^2}
$$
where ##f = x## and ##g = \sin(x)##.
 
Last edited:
  • #4
Dustinsfl said:
Did you use the change rule correctly?
Once you have negative sine, you need to take the derivative of the argument
$$
\frac{f'g - g'f}{g^2}
$$
where ##f = x## and ##g = \sin(x)##.
I think you meant "chain rule," not "change rule."
 
  • Like
Likes Dustinsfl
  • #5
Mark44 said:
I think you meant "chain rule," not "change rule."

Typo
 
  • #6
Thanks for all advice - so [itex]\frac{\sin(x)-x\cos(x)}{\sin^2(x)}[/itex]? Or its derivative? (Sorry. Feeling a lot more tired than when I made this post and thus more prone to misinterpret things.)
 
  • #7
physicsshiny said:
Thanks for all advice - so [itex]\frac{\sin(x)-x\cos(x)}{\sin^2(x)}[/itex]? Or its derivative? (Sorry. Feeling a lot more tired than when I made this post and thus more prone to misinterpret things.)
Now you just need to multiple that by the sine term you obtained in post one and simplify.
 
  • #8
Is this question right? Using the chain rule and involving y' is fine for df/dx, but it asks for the partial derivative of f(x, y), which means y does not change. The condition y = sin(x) then should be taken as a happenstance at the (x, y) of interest, not a general relationship. This means the OP solution is correct (but might as well leave it involving y, so less messy).
Perhaps more likely that df/dx was intended.
 
  • #9
The question is right. It's on a problem sheet all about partial differentiation and asks for the partial derivative of f(x,y) with respect to x.
 
  • #10
Then you got it right the first time. The question is weird, because the equation ##y=\sin x## has no relevance when you determine the function ##\frac{\partial f}{\partial x}##. It's the map ##(u,v)\mapsto -\frac{1}{v}\sin\frac{u}{v}## with domain ##\{(s,t)\in\mathbb R^2|t\neq 0\}##. The equation can be interpreted as suggesting that you should find the value of that function at ##(x,\sin x)## for an arbitrary ##x\in\mathbb R##, but that makes me wonder why they're asking for ##\frac{\partial f}{\partial x}## (the function) rather than ##\frac{\partial f(x,y)}{\partial x}## (the number).
 
  • #11
So there's no real way to tidy it up? And I agree, the question is strange, but that's what was written down.

Thanks once again for everyone's help, I really appreciate it.
 
  • #12
haruspex said:
Is this question right? Using the chain rule and involving y' is fine for df/dx, but it asks for the partial derivative of f(x, y), which means y does not change. The condition y = sin(x) then should be taken as a happenstance at the (x, y) of interest, not a general relationship. This means the OP solution is correct (but might as well leave it involving y, so less messy).
Perhaps more likely that df/dx was intended.

Fredrik said:
Then you got it right the first time. The question is weird, because the equation ##y=\sin x## has no relevance when you determine the function ##\frac{\partial f}{\partial x}##. It's the map ##(u,v)\mapsto -\frac{1}{v}\sin\frac{u}{v}## with domain ##\{(s,t)\in\mathbb R^2|t\neq 0\}##. The equation can be interpreted as suggesting that you should find the value of that function at ##(x,\sin x)## for an arbitrary ##x\in\mathbb R##, but that makes me wonder why they're asking for ##\frac{\partial f}{\partial x}## (the function) rather than ##\frac{\partial f(x,y)}{\partial x}## (the number).

I still not so sure. When ##y## is written in this problem, it short hand for ##y = f(x) = \sin(x)##. Since y = f(x), we can substitute this into the original equation which leads to
$$
\cos\Big(\frac{x}{y}\Big) = \cos\Big(\frac{x}{f(x)}\Big) \Rightarrow
\frac{\partial f}{\partial x}\cos\Big(\frac{x}{y}\Big) = -\sin\Big(\frac{x}{f(x)}\Big)\frac{f(x) - xf'(x)}{f^2(x)}
$$
In an equation ##f(x, y) = xy - x^2\sin(y)##, y would be treated as a number since it isn't a function of x. In the case posted, we have ##f(x, y) = f(x, h(x))## where I used h(x) so as not to confuse with f in the original question.
 
  • #13
I think you're confusing the expression f(x,y) with the function f. The former represents a number. What number? That depends on the values of x and y. Since f is a function, the value of f(x,y) (the number represented by that notation) is completely determined by the values of x and y. So we say that f(x,y) is a function of x and y. (It's a function of something, but that doesn't make it a function).

The constraint y=sin x implies that the value of y is completely determined by the value of x. Because of this, we can say that f(x,y) is a function of x (and only x). Whenever an expression is a "function of" something, there's an actual function lurking in the background, in this case the function ##x\mapsto f(x,y)=f(x,\sin x)## with domain ##\mathbb R##. The value of the derivative of this function at x is denoted by ##\frac{d}{dx}f(x,\sin x)##. That's what you computed.
$$\frac{d}{dx}f(x,\sin x)=\lim_{h\to 0}\frac{f(x+h,\sin (x+h))-f(x,\sin x)}{h}.$$ However, ##\frac{\partial f}{\partial x}## is a notation for the function ##D_1f## defined by
$$D_1f(s,t)=\lim_{h\to 0}\frac{f(s+h,t)-f(s,t)}{h},$$ for all ##s,t\in\mathbb R##. So we have
$$\frac{\partial f(x,\sin x)}{\partial x}=\lim_{h\to 0}\frac{f(x+h,\sin x)-f(x,\sin x)}{h}.$$ I think the terminology "partial derivative with respect to x" and accompanying notation ##\frac{\partial f}{\partial x}## is partially responsible for misunderstandings like this. It would be more accurate to talk about the partial derivative with respect to a variable slot, than with respect to a variable.
 

1. What is a partial derivative?

A partial derivative is a mathematical concept used to describe the rate of change of a function with respect to one of its variables, while keeping all other variables constant.

2. Why is it necessary to tidy up a partial derivative?

Tidying up a partial derivative involves simplifying and rearranging the expression in order to make it more manageable and easier to work with in further calculations or analysis.

3. How do I tidy up a partial derivative?

To tidy up a partial derivative, you can use algebraic techniques such as combining like terms, factoring, and applying the rules of differentiation. It is also important to pay attention to the order of operations and to simplify as much as possible.

4. What is the purpose of taking a partial derivative?

Taking a partial derivative allows you to analyze the relationship between a function and its variables. It is particularly useful in multivariable calculus and is often used in physics, engineering, and economics to understand how a system or process changes with respect to different parameters.

5. Can I use the chain rule to tidy up a partial derivative?

Yes, the chain rule can be used to tidy up a partial derivative. It allows you to find the derivative of a function composed of multiple nested functions, which is often the case in partial derivatives involving multiple variables.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
548
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
11
Views
977
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
880
  • Calculus and Beyond Homework Help
Replies
4
Views
970
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
14
Views
1K
Back
Top