Lesson 3 of 18
Work by Variable Force
Work by Variable Force
When force varies with position, work is the integral of force over displacement:
Physical Interpretation
- is the force (in Newtons) at position (in meters)
- Work is measured in Joules (N·m)
- Constant force: (special case where F is uniform)
Hooke's Law (Spring)
A spring with stiffness exerts force when stretched by :
W = int_0^d kx , dx = rac{k cdot d^2}{2}
Example: spring constant , stretched :
Lifting Variable-Weight Loads
A chain of linear density being lifted: where is chain length. The work to lift the full chain:
ho(L-x) , dx = rac{ ho L^2}{2}$$ ### Your Task Implement `double work(double (*force)(double), double a, double b, int n)` using the midpoint rule.TCC compiler loading...
Loading...
Click "Run" to execute your code.