Want help regarding my classical mechanics assignment

In summary, the conversation is about writing a C program to simulate physics problems, specifically determining if a given force F(x) is conservative or not. The condition for a force to be conservative is that the vector needs to be 0, meaning the coefficients of \hat{x}, \hat{y} and \hat{z} are each equal to 0. If the force only acts in the x-direction and depends only on the x-value, it is already conservative regardless of the coefficients given. Other variables such as y and z need to be incorporated for a more accurate determination. The definition of curl in cartesian coordinates is also referenced.
  • #1
Dr.Brain
538
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
  • #2
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 [tex]\hat{x}[/tex], [tex]\hat{y}[/tex] and [tex]\hat{z}[/tex] 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...
 
  • #3


I understand your need for assistance with your classical mechanics assignment. The condition for a function to be conservative is that it must satisfy the property of path independence. This means that the work done by the force in moving an object from one point to another must be the same regardless of the path taken. In mathematical terms, this can be expressed as the integral of the force over a closed path being equal to 0. In order to determine if a given function is conservative, you can use this property to check if it holds true for the given function. I suggest researching more on the concept of conservative forces and path independence to gain a better understanding of the condition. Additionally, you can also consult with your professor or peers for further clarification. Good luck with your assignment!
 

Related to Want help regarding my classical mechanics assignment

1. What is classical mechanics?

Classical mechanics is a branch of physics that deals with the behavior of macroscopic objects under the influence of forces. It is based on the laws of motion and gravitation developed by Sir Isaac Newton in the 17th century.

2. What are some common topics covered in a classical mechanics assignment?

Common topics in a classical mechanics assignment may include kinematics, dynamics, energy, momentum, and rotational motion. Other topics may include oscillations, waves, and fluid mechanics.

3. How can I approach solving problems in classical mechanics?

The best approach to solving problems in classical mechanics is to first understand the basic principles and equations involved. Then, carefully read the problem and identify what is given and what is being asked. From there, use the appropriate equations and solve for the unknown variables.

4. What are some common mistakes to avoid when working on a classical mechanics assignment?

Some common mistakes to avoid when working on a classical mechanics assignment include not properly identifying and labeling variables, using incorrect equations or units, and not showing all steps in the solution process. It is important to double check your work and make sure it aligns with the given problem and principles.

5. Are there any online resources that can help me with my classical mechanics assignment?

Yes, there are many online resources such as educational websites, forums, and video tutorials that can provide additional guidance and practice problems for classical mechanics assignments. Your professor or textbook may also have recommended resources for further assistance.

Similar threads

  • Introductory Physics Homework Help
Replies
13
Views
1K
  • Introductory Physics Homework Help
Replies
10
Views
703
  • Introductory Physics Homework Help
Replies
6
Views
770
  • Introductory Physics Homework Help
Replies
15
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
316
  • Introductory Physics Homework Help
Replies
7
Views
238
  • Introductory Physics Homework Help
Replies
4
Views
1K
  • Introductory Physics Homework Help
Replies
4
Views
667
  • Introductory Physics Homework Help
Replies
2
Views
298
  • Introductory Physics Homework Help
Replies
6
Views
1K
Back
Top