Differentiating the equation for the mechanical energy of a spring

  • Thread starter Callumnc1
  • Start date
  • #1
Callumnc1
915
106
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!
 

Answers and Replies

  • #2
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
39,571
8,837
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##?
 
  • #3
Frabjous
Gold Member
1,048
1,176
Chain rule. x and v are functions of t.
 
  • #4
erobz
Gold Member
1,916
874
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:
  • #5
Callumnc1
915
106
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
Callumnc1
915
106
  • #7
Callumnc1
915
106
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 !
 
  • #8
erobz
Gold Member
1,916
874
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##
 
  • #9
Callumnc1
915
106
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
erobz
Gold Member
1,916
874
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##.
 
  • #11
Callumnc1
915
106
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} ##
 
  • #12
erobz
Gold Member
1,916
874
Thank you for your reply @erobz! I think it would be ## y = (2x)\frac {dx}{dt} ##
Do you see how it works out?
 
  • #13
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
39,571
8,837
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:
  • #14
erobz
Gold Member
1,916
874
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 Callumnc1 and haruspex
  • #15
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
39,571
8,837
last line typo:

$$ \frac{dy}{dx}= 2x $$
thanks - corrected,
 
  • #16
Callumnc1
915
106
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!
 

Suggested for: Differentiating the equation for the mechanical energy of a spring

  • Last Post
Replies
13
Views
537
Replies
7
Views
605
Replies
12
Views
341
  • Last Post
Replies
4
Views
463
Replies
6
Views
294
Replies
4
Views
376
Replies
25
Views
490
  • Last Post
Replies
6
Views
520
Replies
23
Views
559
Replies
8
Views
410
Top