Want help regarding my classical mechanics assignment

AI Thread Summary
To determine if a force F(x) is conservative, the condition is that the curl of the force must equal zero, which means the coefficients of the vector components must be zero. In the context of the provided function F(x) = ax^n + bx^(n-1) + ..., if the force only depends on x, it is inherently conservative regardless of the coefficients. However, for a complete analysis, the force should also consider y and z components to fully assess conservativeness in three-dimensional space. The discussion emphasizes the importance of incorporating multiple dimensions to accurately evaluate the conservative nature of the force. Understanding these principles is crucial for successfully completing the C program simulation.
Dr.Brain
Messages
537
Reaction score
2

Homework Statement



I need to write a C program to simulate physics problems. My job is to write a code , in which I give the user a function F(x) = ax^n + bx^(n-1) + ... , and user inputs the coefficients a,b,c ... and my computer code should tell whether the given force F(x) is conservative or not.

Please tell me what is the condition for any f(x) to be conservative , I am good at C , but i have no idea about the condition .Please help me formulate this problem.

Thanks.
 
Physics news on Phys.org
Look at the definition of curl as given in cartesian coordinates:

http://mathworld.wolfram.com/Curl.html

for a force to be conservative, the vector needs to be 0... ie the coefficient of \hat{x}, \hat{y} and \hat{z} are each equal to 0.

In your formula, there are only x's... so I presume the force is acting in the x-direction... and depends only on the x-value... in that case the force is conservative already... no matter what coefficients you give...

I think you need to incorporate y, z etc...
 
Thread 'Collision of a bullet on a rod-string system: query'
In this question, I have a question. I am NOT trying to solve it, but it is just a conceptual question. Consider the point on the rod, which connects the string and the rod. My question: just before and after the collision, is ANGULAR momentum CONSERVED about this point? Lets call the point which connects the string and rod as P. Why am I asking this? : it is clear from the scenario that the point of concern, which connects the string and the rod, moves in a circular path due to the string...
Back
Top