Differentiating f(2x+g(x)): Which is Correct?

In summary: = 5/3 (x^3+...)^2/3 * (3x^2+...) = 5/3 (x^3+...)^2/3 * 3x^2+... .f`(2x+g(x)) * (2x+g(x))` = f'(2x+g(x)) * 5/3 [ (x^3+...)^2/3 * 3x^2+... +2 ]
  • #1
ggcheck
87
0

Homework Statement


hi, I am supposed to differentiate the following:

f(2x+g(x))

I think the problem should be solved as follows:

f`(2x+g(x)) * (2x+g(x))` * g(x)`



but, my ta said to do the following:

f`(2x+g(x)) * (2x+g(x))`


please tell me, physicsforums, which is the correct way?

why?
 
Physics news on Phys.org
  • #2
Your TA is right.

Suppose you had f(h(x)). What would you say the derivative (with respect to x) is?

Got an answer?

OK, now let h(x)=2x+g(x).
 
  • #3
"Suppose you had f(h(x)). What would you say the derivative (with respect to x) is?"

"OK, now let h(x)=2x+g(x)."

I am confused, but luckily I know where I am confused so I guess there is hope.

f`(h(x)) where h(x) = 2x+g(x)

wouldn't we have: df/dh * dh/dg * dg/dx ?
 
  • #4
Let me try that again. Consider f(x^2). What is the derivative with respect to x?
 
  • #5
f` * (x^2)`
?
 
  • #6
OK, good. A clearer way to write this is f'(x^2)*(x^2)' And of course (x^2)'=2x.

Now consider a more general function h(x) as the argument of f: f(h(x)). The derivative of this with respect to x is f'(h(x))*h'(x).

Now, h(x) can be *any* function. It could be, for example, x^3. Or it could be x^3 + 2x. It doesn't matter what it is; we ALWAYS apply the formula f'(h(x))*h'(x).

So, if h(x)=g(x)+2x, we STILL apply the SAME formula. We don't multiply again by g'(x).
 
  • #7
yeah, but I thought because it has another function inside of it (g(x)), we apply the chain rule again. sort of like we do with sin(cos(sinx)))
 
  • #8
No, because g(x) is not inside of g(x)+2; that would mean something like f(g(g(x))+2x), with an extra "nesting".
 
  • #9
Avodyne said:
with an extra "nesting".
this "nesting" is where I am confused? how exactly can I determine if there is a "nesting"?
 
  • #10
ggcheck said:
this "nesting" is where I am confused? how exactly can I determine if there is a "nesting"?

ggcheck said:
yeah, but I thought because it has another function inside of it (g(x)), we apply the chain rule again. sort of like we do with sin(cos(sinx)))
This is an example of "nesting". The second sin(x) is "inside" (an argument of) the function cosine (and the whole assembly is a function of sine again).
[sin(cos(sin(x)))]' = cos(cos(sin(x)))[-sin(sin(x))][cos(x)]

If instead, you had sin(cos(x)+ sin(x)), the second sine is NOT "nested"- it is not an argument of the function cosine. The sum of the two functions is an argument of the sine function.
[sin(cos(x)+ sin(x))]'= cos(cos(x)+ sin(x))[-sin(x)+ cos(x)]
 
  • #11
HallsofIvy said:
This is an example of "nesting". The second sin(x) is "inside" (an argument of) the function cosine (and the whole assembly is a function of sine again).
[sin(cos(sin(x)))]' = cos(cos(sin(x)))[-sin(sin(x))][cos(x)]

If instead, you had sin(cos(x)+ sin(x)), the second sine is NOT "nested"- it is not an argument of the function cosine. The sum of the two functions is an argument of the sine function.
[sin(cos(x)+ sin(x))]'= cos(cos(x)+ sin(x))[-sin(x)+ cos(x)]
but in : f(2x+g(x))

since g(x) is inside the argument of f(x) isn't g(x) nesting?
 
  • #12
ggcheck said:
but in : f(2x+g(x))

since g(x) is inside the argument of f(x) isn't g(x) nesting?

It is not just g(x) but the whole 2x+g(x) that is inside f- you need to use the chain rule once, not twice: df(2x+g(x))/dx = (df/du)(du/dx) where u= 2x+ g(x). that is df/dx=f'(2x+g(x))(2+ g'(x)), exactly the same as the f`(2x+g(x)) * (2x+g(x))` your TA said- as long as you understand the " ' " to mean differentiation with respect to "the" variable- 2x+g(x) in f' and x in (2x+g(x))'. The point is that you have already used the chain rule in muliplying by (2x+ g(x))"- there is no reason to multiply by g'(x) again.
 
  • #13
so we would only need to use the chain rule a second time if there was something "nesting" inside of g(x)?
 
  • #14
Yes, if the argument of g(x) was something other than x, then we would need the chain rule a second time.
 
  • #15
so it doesn't matter what g(x) is... it only matters what is in the argument of g(x)

g(x) could = (x^3+(x-1)^1/2 - 35x^14)^5/3 ... etc...

as long as only x is in the argument?
 
  • #16
Yes!
 
  • #17
Ok, so to sum things up... if we have:

f(2x+g(x))

and g(x)=(x^3+(x-1)^1/2 - 35x^14)^5/3 (copied from the last hypothetical)

then f`(2x+g(x))= f`(2x+g(x)) * (2x+g(x))` =
f`(2x+g(x)) * 5/3(x^3 +(x-1)1/2 - 35x^14)^2/3
 
  • #18
The first line is correct. But then you did not compute (2x+g(x))' correctly.

(2x+g(x))' = 2 + g'(x), and

g(x) = h(x)^5/3, where h(x) = x^3+..., so

g'(x) = 5/3 h(x)^2/3 * h'(x)
 

FAQ: Differentiating f(2x+g(x)): Which is Correct?

What is the purpose of differentiating f(2x+g(x))?

The purpose of differentiating f(2x+g(x)) is to find the derivative of this composite function. This will allow us to understand how the output of the function changes as the input values change, and to analyze the behavior of the function at different points.

What is the correct way to differentiate f(2x+g(x))?

The correct way to differentiate f(2x+g(x)) is to use the chain rule, which states that we must multiply the derivative of the outer function by the derivative of the inner function. In this case, the outer function is f and the inner function is 2x+g(x).

Can we differentiate f(2x+g(x)) using the product rule?

No, the product rule is used to differentiate the product of two functions, while f(2x+g(x)) is a composite function. The chain rule must be used in this case.

Is it necessary to simplify f(2x+g(x)) before differentiating?

Yes, it is recommended to simplify the function before differentiating to make the process easier and avoid mistakes. In some cases, simplifying the function may also reveal a simpler form that can be differentiated more easily.

How do we differentiate f(2x+g(x)) if the inner function is not given?

If the inner function is not explicitly given, we can use the chain rule by considering the inner function as a variable. This means we differentiate f with respect to the entire expression 2x+g(x) and multiply it by the derivative of this expression, which can be found using the sum and constant multiple rules.

Similar threads

Replies
2
Views
1K
Replies
1
Views
790
Replies
8
Views
1K
Replies
3
Views
1K
Replies
8
Views
11K
Replies
14
Views
2K
Back
Top