- #1
MethAngel
- 3
- 0
Hey guys. In my mechanics course, we have began discussing calculus of variations, and I don't really understand what's going on, entirely. Any help understanding would be great. Our professor gave us an easy problem, but I feel like I am just missing something.
Consider the function f(y,y',x)=3yy' + x^2 where y(x)=2x^2-3x+1. Compute df/dx and ∂f/∂x
So our text says df/dx=df{y,y',x}/dx= (∂f/∂y)(dy/dx) + (∂f/∂y')(dy'/dx) + (∂f/∂x) = y'(∂f/∂y') + y''(∂f/∂y') + (∂f/∂x)
So, maybe I am oversimplifying it, but here's what confuses me from his lectures. Is y'=d(y)/dx and y''=d(y')/dx=d^2(y)/dx^2 ? In class, sometimes he leaves y' and sometimes he doesn't, because he knows how to get to the answer or objective, but I am just not sure what to do about them.
Assuming the answer to my above question, what I did was...
y'=4x-3 y''=4 (∂f/∂y)=3y' and (∂f/∂y')=3y
It makes sense to go on to to ∂f/∂x, since it is needed for df/dx, so I got ∂f/∂x=∂(3yy' + x^2)/∂x, plugging in and doing some adding/multiplying, I finally go ∂f/∂x=72x^2-106x+39
Then, df/dx= y'(∂f/∂y') + y''(∂f/∂y') + (∂f/∂x) = (after multiplying and adding) 144x^2 - 214x +78.
I know I skipped a lot in the end there, but my questions arise before the simple algebra, I can easily do that, but this stuff here is causing me a lot of grief. Any help at all would be great. I have searched around and found nothing really that helped.
Homework Statement
Consider the function f(y,y',x)=3yy' + x^2 where y(x)=2x^2-3x+1. Compute df/dx and ∂f/∂x
Homework Equations
So our text says df/dx=df{y,y',x}/dx= (∂f/∂y)(dy/dx) + (∂f/∂y')(dy'/dx) + (∂f/∂x) = y'(∂f/∂y') + y''(∂f/∂y') + (∂f/∂x)
So, maybe I am oversimplifying it, but here's what confuses me from his lectures. Is y'=d(y)/dx and y''=d(y')/dx=d^2(y)/dx^2 ? In class, sometimes he leaves y' and sometimes he doesn't, because he knows how to get to the answer or objective, but I am just not sure what to do about them.
The Attempt at a Solution
Assuming the answer to my above question, what I did was...
y'=4x-3 y''=4 (∂f/∂y)=3y' and (∂f/∂y')=3y
It makes sense to go on to to ∂f/∂x, since it is needed for df/dx, so I got ∂f/∂x=∂(3yy' + x^2)/∂x, plugging in and doing some adding/multiplying, I finally go ∂f/∂x=72x^2-106x+39
Then, df/dx= y'(∂f/∂y') + y''(∂f/∂y') + (∂f/∂x) = (after multiplying and adding) 144x^2 - 214x +78.
I know I skipped a lot in the end there, but my questions arise before the simple algebra, I can easily do that, but this stuff here is causing me a lot of grief. Any help at all would be great. I have searched around and found nothing really that helped.