Second Derivative of a Composition of Functions

In summary, the conversation discusses deriving an expression for the composition of two functions using the chain rule and product rule. The final expression for the second derivative is d2y/dx2 = df/dg * d2g/dx2 + dg/dx * d2f/dg2. The conversation also touches on the notation for higher order derivatives and the confusion it can cause.
  • #1
skyline01
3
0

Homework Statement


Derive an expression for the composition of 2 functions.


Homework Equations





The Attempt at a Solution


I started with supposing that y(x) = f(g(x)). I know that dy/dx = df/dg * dg/dx (via the chain rule). Doing the derivative again, I started with the product rule:
d2y/dx2 = d/dx (df/dg * dg/dx) = df/dg * d2g/dx2 + dg/dx * d/dx (df/dg).

I don't know what d/dx (df/dg) means. I think I'm supposed to do the chain rule again on this part, but I'm not totally clear. Thanks!
 
Physics news on Phys.org
  • #2
skyline01 said:

Homework Statement


Derive an expression for the composition of 2 functions.

Homework Equations



The Attempt at a Solution


I started with supposing that y(x) = f(g(x)). I know that dy/dx = df/dg * dg/dx (via the chain rule). Doing the derivative again, I started with the product rule:
d2y/dx2 = d/dx (df/dg * dg/dx) = df/dg * d2g/dx2 + dg/dx * d/dx (df/dg).

I don't know what d/dx (df/dg) means. I think I'm supposed to do the chain rule again on this part, but I'm not totally clear. Thanks!
Hello skyline01. Welcome to PF !

One suggestion is to to look at some specific examples, such as y(x) = sin(x5).

Then f(x) = sin(x), g(x) = x5 .
 
  • #3
Thank you, SammyS! I tried the sample function you suggested, but I'm still not sure if I am expressing d/dx (df/dg) correctly. Here is how your sample function worked out:

y(x) = sin(x5)
So, f(x) = sin(x) and g(x) = x5.
Therefore,
dy/dx = cos(x5) 5x4
and
d2y/dx2 = cos(x5) 20x3 + 5x4 (-sin(x5)) 5x4.

Generalizing this to any composition of 2 functions, we have
d2y/dx2 = df/dg * d2g/dx2 + dg/dx * d2f/dg2.

Does this look right?
 
  • #4
skyline01 said:
Thank you, SammyS! I tried the sample function you suggested, but I'm still not sure if I am expressing d/dx (df/dg) correctly. Here is how your sample function worked out:

y(x) = sin(x5)
So, f(x) = sin(x) and g(x) = x5.
Therefore,
dy/dx = cos(x5) 5x4
and
d2y/dx2 = cos(x5) 20x3 + 5x4 (-sin(x5)) 5x4.

Generalizing this to any composition of 2 functions, we have
d2y/dx2 = df/dg * d2g/dx2 + dg/dx * d2f/dg2.

Does this look right?
Almost correct.

d2y/dx2 = df/dg * d2g/dx2 + (dg/dx)2 * d2f/dg2.
 
  • #5
Yes, you are correct. Thank you for catching that. So,
d/dx(df/dg) = dg/dx * d2f/dg2.

I find it strange that in every calculus book I have ever read (including real analysis books), they always stop at the first derivative when discussing the chain rule.
 
  • #6
Yes, that is strange.

The notation can be confusing, even for 1st derivatives, but as you mentioned in your initial post, it gets quite a bit more confusing with higher order derivatives. That's why I suggested differentiating a concrete example.

Here's a link from Wikipedia: http://en.wikipedia.org/wiki/Chain_rule#Higher_derivatives.

Have a good one !
SammyS
 

FAQ: Second Derivative of a Composition of Functions

What is the second derivative of a composition of functions?

The second derivative of a composition of functions is the derivative of the first derivative of the composition of functions. This means taking the derivative of the derivative, or the rate of change of the rate of change.

How do you find the second derivative of a composition of functions?

To find the second derivative, you can use the chain rule. First, find the first derivative of the composition of functions. Then, take the derivative of that result using the chain rule.

Why is the second derivative of a composition of functions important?

The second derivative can tell us about the concavity, or curvature, of a function. It can also help us find inflection points, where the concavity changes. Additionally, the second derivative can be used to optimize functions in economics and physics.

How does the second derivative relate to the first derivative?

The second derivative is the rate of change of the first derivative. This means that it tells us how fast the slope, or rate of change, of the original function is changing at a specific point. It can also tell us about the shape of the graph, such as whether it is concave up or concave down.

Can the second derivative be negative?

Yes, the second derivative can be negative. This means that the first derivative is decreasing. In terms of the original function, this indicates that the slope is getting smaller and the graph is concave down. This can also tell us about the direction of acceleration in physics problems.

Similar threads

Back
Top