Solving Partial Derivatives: Is This Right?

Click For Summary
The discussion centers on the calculation of partial derivatives for the function f(x,y) defined piecewise, with a specific focus on the case where y = -x. The user expresses uncertainty about their derivative calculations, particularly regarding the application of the product and chain rules. Responses clarify that the user misapplied these rules, especially in differentiating the sine function. It is confirmed that for the case where y = -x, both partial derivatives are indeed zero, and there is no need to use the definition of the derivative in this scenario. The conversation emphasizes the importance of correctly applying differentiation techniques in multivariable calculus.
Telemachus
Messages
820
Reaction score
30

Homework Statement


Hi there. Well, I got the next function, and I'm trying to work with it. I wanted to know if this is right, I think it isn't, so I wanted your opinion on this which is always helpful.

f(x,y)=\begin{Bmatrix} (x+y)^2\sin(\displaystyle\frac{\pi}{x+y}) & \mbox{ si }& y\neq-x\\0 & \mbox{si}& y=-x\end{matrix}


If y\neq-x:
\displaystyle\frac{\partial f}{\partial x}=2(x+y)\sin(\displaystyle\frac{\pi}{x+y})-\pi\cos(\displaystyle\frac{\pi}{(x+y)})

\displaystyle\frac{\partial f}{\partial y}=2(x+y)\sin(\displaystyle\frac{\pi}{x+y})-\pi\cos(\displaystyle\frac{\pi}{(x+y)})

Second case:

If y=-x
f(x,y)=0

\displaystyle\frac{\partial f}{\partial y}=\displaystyle\frac{\partial f}{\partial x}=0

Is this right? I would like to know why it isn't, I think its not. Should I think when I consider the second case as I would go in all directions or something like that? cause in other cases where I got defined different functions for a particular point I've used the definition, but in this case I got trajectories. What should I do?

Bye and thanks.
 
Physics news on Phys.org
Telemachus said:

Homework Statement


Hi there. Well, I got the next function, and I'm trying to work with it. I wanted to know if this is right, I think it isn't, so I wanted your opinion on this which is always helpful.

f(x,y)=\begin{Bmatrix} (x+y)^2\sin(\displaystyle\frac{\pi}{x+y}) & \mbox{ si }& y\neq-x\\0 & \mbox{si}& y=-x\end{matrix}


If y\neq-x:
\displaystyle\frac{\partial f}{\partial x}=2(x+y)\sin(\displaystyle\frac{\pi}{x+y})-\pi\cos(\displaystyle\frac{\pi}{(x+y)})

\displaystyle\frac{\partial f}{\partial y}=2(x+y)\sin(\displaystyle\frac{\pi}{x+y})-\pi\cos(\displaystyle\frac{\pi}{(x+y)})

Second case:

If y=-x
f(x,y)=0

\displaystyle\frac{\partial f}{\partial y}=\displaystyle\frac{\partial f}{\partial x}=0

Is this right? I would like to know why it isn't, I think its not. Should I think when I consider the second case as I would go in all directions or something like that? cause in other cases where I got defined different functions for a particular point I've used the definition, but in this case I got trajectories. What should I do?
You're not using the product rule correctly in either partial. With ordinary derivative, if h(x) = f(x)*g(x), h'(x) = f'(x)*g(x) + f(x)*g'(x). It's similar for your two partials.

Also, when you differentiate sin(pi/(x + y)), you're not using the chain rule correctly. You will get cos(pi/(x + y)), but now you need the derivative of the argument to the cosine function, so you need the derivative of pi/(x + y).
 
Why not?

(x+y)^2\sin(\displaystyle\frac{\pi}{x+y})

\displaystyle\frac{\partial f}{\partial x}=2(x+y)\sin(\displaystyle\frac{\pi}{x+y})-\pi\cos(\displaystyle\frac{\pi}{(x+y)})

The derivative on the left is obvious. For the right part, I've need to find derivative of \sin(\displaystyle\frac{\pi}{x+y}), which is the derivative of the sine multiplied by the derivative on the inside of the sine (Im working with respect to x):
\cos(\displaystyle\frac{\pi}{x+y})(\displaystyle\frac{-\pi}{(x+y)^2})
Then, when I make the product with (x+y)^2 I got -\pi\cos(\displaystyle\frac{\pi}{x+y})

I don't see what's wrong with it.
 
You're right. I didn't work the problems through, but it seemed that you were missing a factor on the second terms of your partials. Your work didn't show that intermediate step (before canceling), so I assumed you had not used the chain rule correctly.
 
Thanks. Why I have to use the definition of derivative in the second case?
 
No, I don't see why you would need to use the definition of the derivative. Since f(x, y) = 0 along the line y = -x, both partials are zero as well.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
12
Views
2K
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K