Differentiating the equation for the mechanical energy of a spring

In summary, the conversation discussed differentiating ##E = \frac {1}{2}mv^2 + \frac {1}{2}kx^2## with respect to time and the resulting answer being ##\frac {dE}{dt} = mva + kxv##. It was clarified that the correct derivative is ##\frac{dE}{dt}=mva+kxv##, and it was explained that this is due to the chain rule. The conversation also touched on the derivative of ##x^2## with respect to x, which is ##2x##, and how this relates to the chain rule in differentiating the original equation.
  • #1
ChiralSuperfields
1,305
138
Homework Statement
Please see below
Relevant Equations
## E = \frac {1}{2}mv^2 + \frac {1}{2}kx^2 ##
Why when we differentiate ## E = \frac {1}{2}mv^2 + \frac {1}{2}kx^2 ## with respect to time the answer is ## \frac {dE}{dt} = mva + kxv ##?

I though it would be ##\frac {dE}{dt} = ma + kv ##.

Many thanks!
 
Physics news on Phys.org
  • #2
Callumnc1 said:
Homework Statement:: Please see below
Relevant Equations:: ## E = \frac {1}{2}mv^2 + \frac {1}{2}kx^2 ##

Why when we differentiate ## E = \frac {1}{2}mv^2 + \frac {1}{2}kx^2 ## with respect to time the answer is ## \frac {dE}{dt} = mva + kxv ##?

I though it would be ##\frac {dE}{dt} = ma + kv ##.

Many thanks!
What is the derivative of ##x^2## wrt ##x##?
 
  • Like
Likes ChiralSuperfields
  • #3
Chain rule. x and v are functions of t.
 
  • Like
Likes ChiralSuperfields
  • #4
The time rate of change in energy is power.

With what you thought it would be the units on the RHS are Force added to Force per unit time. Not only are neither of them power, they are also dimensionally inconsistent with each other.
 
Last edited:
  • Like
Likes ChiralSuperfields
  • #5
haruspex said:
What is the derivative of ##x^2## wrt ##x##?
Thank you for your reply @haruspex ! I don't think I've ever taken the derivative of ##x^2## wrt ##x##. I think I've only the derivative of ##y## wrt ##x##. How would I take the derivative?
 
  • #6
Frabjous said:
Chain rule. x and v are functions of t.
Thank you for your reply @Frabjous !
 
  • Like
Likes Frabjous
  • #7
erobz said:
The time rate of change in energy is power.

With what you thought it would be the units on the RHS are Force added to Force per unit time. Not only are neither of them power, they are also dimensionally inconsistent with each other.
Thank you for your reply @erobz !
 
  • Like
Likes erobz
  • #8
Callumnc1 said:
Thank you for your reply @haruspex ! I don't think I've ever taken the derivative of ##x^2## wrt ##x##. I think I've only the derivative of ##y## wrt ##x##. How would I take the derivative?
You almost certainly have, you just don’t realize it. ##y=x^2##
 
  • Like
Likes ChiralSuperfields
  • #9
erobz said:
You almost certainly have, you just don’t realize it. ##y=x^2##
Thanks for your reply @erobz!

Oh I thought that was taking the derivative of y with respect to x to get ##2x##?
 
  • #10
Callumnc1 said:
Thanks for your reply @erobz!

Oh I thought that was taking the derivative of y with respect to x to get ##2x##?
That’s correct. Then you apply the chain rule. First differentiate ##y =x^2 ## wrt ##x##, then ##x## wrt ##t##.
 
  • Like
Likes ChiralSuperfields
  • #11
erobz said:
That’s correct. Then you apply the chain rule. First differentiate ##y =x^2 ## wrt ##x##, then ##x## wrt ##t##.
Thank you for your reply @erobz! I think it would be ## y = (2x)\frac {dx}{dt} ##
 
  • Like
Likes erobz
  • #12
Callumnc1 said:
Thank you for your reply @erobz! I think it would be ## y = (2x)\frac {dx}{dt} ##
Do you see how it works out?
 
  • Like
Likes ChiralSuperfields
  • #13
Callumnc1 said:
Thank you for your reply @erobz! I think it would be ## y = (2x)\frac {dx}{dt} ##
Not quite. You must do the same to each side of an equation.
The derivative of y wrt x is ##\frac{dy}{dx}##.
The derivative of ##x^2## wrt x is ##\frac{d(x^2)}{dx}=2x##.
So differentiating both sides of ##y=x^2## wrt x gives
##\frac{dy}{dx}=2x##.
 
Last edited:
  • Like
Likes ChiralSuperfields
  • #14
haruspex said:
Not quite. You must do the same to each side of an equation.
The derivative of y wrt x is ##\frac{dy}{dx}##.
The derivative of ##x^2## wrt x is ##\frac{d(x^2)}{dx}=2x##.
So differentiating both sides of ##y=x^2## wrt x gives
##\frac{dy}{dx}=x^2##.
last line typo:

$$ \frac{dy}{dx}= 2x $$
 
  • Like
Likes ChiralSuperfields and haruspex
  • #15
erobz said:
last line typo:

$$ \frac{dy}{dx}= 2x $$
thanks - corrected,
 
  • Like
Likes ChiralSuperfields
  • #16
haruspex said:
Not quite. You must do the same to each side of an equation.
The derivative of y wrt x is ##\frac{dy}{dx}##.
The derivative of ##x^2## wrt x is ##\frac{d(x^2)}{dx}=2x##.
So differentiating both sides of ##y=x^2## wrt x gives
##\frac{dy}{dx}=2x##.
Thank you for your replies @erobz and haruspex! Sorry, that was a silly mistake I should not have made!
 

Similar threads

  • Introductory Physics Homework Help
Replies
22
Views
544
  • Introductory Physics Homework Help
Replies
3
Views
414
  • Introductory Physics Homework Help
Replies
15
Views
341
  • Introductory Physics Homework Help
Replies
12
Views
2K
  • Introductory Physics Homework Help
Replies
24
Views
1K
  • Introductory Physics Homework Help
Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
827
  • Introductory Physics Homework Help
Replies
7
Views
900
  • Introductory Physics Homework Help
Replies
20
Views
2K
  • Introductory Physics Homework Help
Replies
14
Views
413
Back
Top