Question about calculating the gradient of a composite function r=(x,y)=xi+yj ∥r∥=sqrt(x^2+y^2) Let's assume that r≠0 We now define f(x,y)=rm What is the right expression for ∇f?

Martin Hart

Martin Hart

Answered question

2022-10-31

Question about calculating the gradient of a composite function
r = ( x , y ) = x i + y j
r = x 2 + y 2
Let's assume that r 0
We now define f ( x , y ) = r m
What is the right expression for f?
1. m r m 1 r
2. m r m 2 r
3. m r m 1
4. m r 0.5 m 1 r
Reasoning was that it should be number 1:
the derivative of f according to x comes out as m r m 1 ( x x 2 + y 2 ), while the derivative of f according to y comes out as m r m 1 ( y x 2 + y 2 ). x 2 + y 2 = r = 1, and therefore this is equal to m r m 1 r .

Answer & Explanation

Phoebe Medina

Phoebe Medina

Beginner2022-11-01Added 17 answers

Nothing in what you have written suggests that r = 1. What you have shown is that
f x = m r m 1 x r = m r m 2 x
and
f y = m r m 1 y r = m r m 2 y .
So,
f = f x i + f y j =

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?