<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.physicsbook.gatech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MillerL</id>
	<title>Physics Book - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.physicsbook.gatech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MillerL"/>
	<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/Special:Contributions/MillerL"/>
	<updated>2026-04-25T23:13:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.7</generator>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47464</id>
		<title>Work Done By A Nonconstant Force</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47464"/>
		<updated>2025-12-01T00:54:06Z</updated>

		<summary type="html">&lt;p&gt;MillerL: /* Work Done By A Nonconstant Force */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work Done By A Nonconstant Force =&lt;br /&gt;
&#039;&#039;&#039;Claimed by Miller Lindsley – Fall 2025&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page explains how to calculate work done when the force applied is not constant. It includes conceptual explanations, worked examples, mathematical and computational models, and embedded simulations to make this concept easier to understand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Main Idea ==&lt;br /&gt;
Before we understand nonconstant force, let&#039;s review constant force.&lt;br /&gt;
&lt;br /&gt;
For constant force:&lt;br /&gt;
: &#039;&#039;&#039;Work = Force × Distance&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;math&amp;gt;W = F \cdot d&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ConstantForce.png|thumb|center|300px|Work as the area under a constant force graph]]&lt;br /&gt;
&lt;br /&gt;
In real-life, however, forces often vary over distance. In that case, we use:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_{x_1}^{x_2} F(x) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This integral calculates the total work as the area under the curve on a Force vs. Distance graph.&lt;br /&gt;
&lt;br /&gt;
== Mathematical Model ==&lt;br /&gt;
Work done by a varying force is found by breaking the motion into tiny intervals:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \sum \vec{F}_i \cdot \Delta \vec{r}_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the interval becomes very small, it becomes a definite integral:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int \vec{F} \cdot d\vec{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Spring Example ===&lt;br /&gt;
If &amp;lt;math&amp;gt;F = kx&amp;lt;/math&amp;gt;, we derive:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_0^x kx \, dx = \frac{1}{2}kx^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:WorkIntegral.png|thumb|center|300px|Work done by a spring force]]&lt;br /&gt;
&lt;br /&gt;
== Computational Model ==&lt;br /&gt;
Computational models can approximate work using many tiny time steps. Below is Python code modeling a vertical spring in VPython:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#initialize conditions&lt;br /&gt;
L = ball.pos - spring.pos&lt;br /&gt;
&lt;br /&gt;
Lhat = norm(L)&lt;br /&gt;
&lt;br /&gt;
s = mag(L) - L0&lt;br /&gt;
&lt;br /&gt;
Fspring = -(ks * s) * Lhat&lt;br /&gt;
&lt;br /&gt;
#momentum principle&lt;br /&gt;
ball.p = ball.p + (Fspring + Fgravity) * deltat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interactive Model ==&lt;br /&gt;
Try out this Trinket simulation of spring motion:  &lt;br /&gt;
[https://trinket.io/glowscript/49f7c0f35f View the simulation on Trinket]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A person pushes a box and slowly loses strength after ten seconds. It can be described using this formula: F(x) = 20 - 2x. How much work was applied to the box?&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = 1/2 \cdot 10 \cdot 20 = 100 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
[[File:NonWork.jpg|center|Example Graphic]]&lt;br /&gt;
&lt;br /&gt;
=== Middling ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A spring with &amp;lt;math&amp;gt;k = 70 \, N/m&amp;lt;/math&amp;gt; is stretched 10 cm.  &lt;br /&gt;
[[File:NonSpring.jpg|center|Spring stretching setup]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = \frac{1}{2} k x^2 = \frac{1}{2}(70)(0.1)^2 = 0.35 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Difficult ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
How much work is done by Earth’s gravity on an asteroid falling from distance &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; to radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
Start with Newton’s law of gravitation:&lt;br /&gt;
: &amp;lt;math&amp;gt;F = \frac{GMm}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then integrate:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_R^d \frac{GMm}{r^2} \, dr = GMm \left( \frac{1}{R} - \frac{1}{d} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectedness ==&lt;br /&gt;
Understanding work by nonconstant forces is key in many fields:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Springs&#039;&#039;&#039;: Used in trampolines, shock absorbers, and mechanical pens  &lt;br /&gt;
* &#039;&#039;&#039;Engineering&#039;&#039;&#039;: Fluid tanks fill unevenly, requiring nonconstant work  &lt;br /&gt;
* &#039;&#039;&#039;Energy&#039;&#039;&#039;: Hydroelectric turbines rely on variable water flow  &lt;br /&gt;
* &#039;&#039;&#039;Space physics&#039;&#039;&#039;: Rockets and satellites feel variable gravity&lt;br /&gt;
&lt;br /&gt;
An interesting industrial example of work done by a non-constant force is the operation of a car engine. The torque produced by an internal-combustion engine is not constant, it depends on the engine speed (RPM). As the RPM changes, the engine’s torque follows a characteristic “torque curve,” rising to a peak and then decreasing. Because the driving force on the wheels is proportional to engine torque, the force applied to the car varies continuously, making it a real-world industrial example of work done by a non-constant force.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Gaspard-Gustave de Coriolis was the first to define &amp;quot;work&amp;quot; as force over distance. Later physicists used calculus to model work by nonconstant forces.&lt;br /&gt;
&lt;br /&gt;
== Further Reading &amp;amp; External Links ==&lt;br /&gt;
&lt;br /&gt;
=== Book ===&lt;br /&gt;
* Chabay &amp;amp; Sherwood – &#039;&#039;Matter and Interactions&#039;&#039; (4th ed.)&lt;br /&gt;
&lt;br /&gt;
=== Articles ===&lt;br /&gt;
* [https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Classical_Mechanics_(Dourmashkin)/13%3A_Energy_Kinetic_Energy_and_Work/13.05%3A_Work_done_by_Non-Constant_Forces Nonconstant Force]&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Iterative Spring-Mass Simulation]&lt;br /&gt;
&lt;br /&gt;
=== Simulations ===&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Spring-Mass Trinket Model]&lt;br /&gt;
&lt;br /&gt;
=== Refrences ===&lt;br /&gt;
* [https://ateupwithmotor.com/terms-technology-definitions/horsepower-vs-torque/\ Torque Curve Refrence]&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47412</id>
		<title>Work Done By A Nonconstant Force</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47412"/>
		<updated>2025-11-29T22:46:01Z</updated>

		<summary type="html">&lt;p&gt;MillerL: /* Further Reading &amp;amp; External Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work Done By A Nonconstant Force =&lt;br /&gt;
&#039;&#039;&#039;Claimed by Matt McCrory – Spring 2025&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page explains how to calculate work done when the force applied is not constant. It includes conceptual explanations, worked examples, mathematical and computational models, and embedded simulations to make this concept easier to understand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Main Idea ==&lt;br /&gt;
Before we understand nonconstant force, let&#039;s review constant force.&lt;br /&gt;
&lt;br /&gt;
For constant force:&lt;br /&gt;
: &#039;&#039;&#039;Work = Force × Distance&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;math&amp;gt;W = F \cdot d&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ConstantForce.png|thumb|center|300px|Work as the area under a constant force graph]]&lt;br /&gt;
&lt;br /&gt;
In real-life, however, forces often vary over distance. In that case, we use:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_{x_1}^{x_2} F(x) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This integral calculates the total work as the area under the curve on a Force vs. Distance graph.&lt;br /&gt;
&lt;br /&gt;
== Mathematical Model ==&lt;br /&gt;
Work done by a varying force is found by breaking the motion into tiny intervals:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \sum \vec{F}_i \cdot \Delta \vec{r}_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the interval becomes very small, it becomes a definite integral:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int \vec{F} \cdot d\vec{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Spring Example ===&lt;br /&gt;
If &amp;lt;math&amp;gt;F = kx&amp;lt;/math&amp;gt;, we derive:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_0^x kx \, dx = \frac{1}{2}kx^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:WorkIntegral.png|thumb|center|300px|Work done by a spring force]]&lt;br /&gt;
&lt;br /&gt;
== Computational Model ==&lt;br /&gt;
Computational models can approximate work using many tiny time steps. Below is Python code modeling a vertical spring in VPython:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#initialize conditions&lt;br /&gt;
L = ball.pos - spring.pos&lt;br /&gt;
&lt;br /&gt;
Lhat = norm(L)&lt;br /&gt;
&lt;br /&gt;
s = mag(L) - L0&lt;br /&gt;
&lt;br /&gt;
Fspring = -(ks * s) * Lhat&lt;br /&gt;
&lt;br /&gt;
#momentum principle&lt;br /&gt;
ball.p = ball.p + (Fspring + Fgravity) * deltat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interactive Model ==&lt;br /&gt;
Try out this Trinket simulation of spring motion:  &lt;br /&gt;
[https://trinket.io/glowscript/49f7c0f35f View the simulation on Trinket]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A person pushes a box and slowly loses strength after ten seconds. It can be described using this formula: F(x) = 20 - 2x. How much work was applied to the box?&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = 1/2 \cdot 10 \cdot 20 = 100 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
[[File:NonWork.jpg|center|Example Graphic]]&lt;br /&gt;
&lt;br /&gt;
=== Middling ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A spring with &amp;lt;math&amp;gt;k = 70 \, N/m&amp;lt;/math&amp;gt; is stretched 10 cm.  &lt;br /&gt;
[[File:NonSpring.jpg|center|Spring stretching setup]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = \frac{1}{2} k x^2 = \frac{1}{2}(70)(0.1)^2 = 0.35 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Difficult ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
How much work is done by Earth’s gravity on an asteroid falling from distance &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; to radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
Start with Newton’s law of gravitation:&lt;br /&gt;
: &amp;lt;math&amp;gt;F = \frac{GMm}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then integrate:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_R^d \frac{GMm}{r^2} \, dr = GMm \left( \frac{1}{R} - \frac{1}{d} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectedness ==&lt;br /&gt;
Understanding work by nonconstant forces is key in many fields:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Springs&#039;&#039;&#039;: Used in trampolines, shock absorbers, and mechanical pens  &lt;br /&gt;
* &#039;&#039;&#039;Engineering&#039;&#039;&#039;: Fluid tanks fill unevenly, requiring nonconstant work  &lt;br /&gt;
* &#039;&#039;&#039;Energy&#039;&#039;&#039;: Hydroelectric turbines rely on variable water flow  &lt;br /&gt;
* &#039;&#039;&#039;Space physics&#039;&#039;&#039;: Rockets and satellites feel variable gravity&lt;br /&gt;
&lt;br /&gt;
An interesting industrial example of work done by a non-constant force is the operation of a car engine. The torque produced by an internal-combustion engine is not constant, it depends on the engine speed (RPM). As the RPM changes, the engine’s torque follows a characteristic “torque curve,” rising to a peak and then decreasing. Because the driving force on the wheels is proportional to engine torque, the force applied to the car varies continuously, making it a real-world industrial example of work done by a non-constant force.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Gaspard-Gustave de Coriolis was the first to define &amp;quot;work&amp;quot; as force over distance. Later physicists used calculus to model work by nonconstant forces.&lt;br /&gt;
&lt;br /&gt;
== Further Reading &amp;amp; External Links ==&lt;br /&gt;
&lt;br /&gt;
=== Book ===&lt;br /&gt;
* Chabay &amp;amp; Sherwood – &#039;&#039;Matter and Interactions&#039;&#039; (4th ed.)&lt;br /&gt;
&lt;br /&gt;
=== Articles ===&lt;br /&gt;
* [https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Classical_Mechanics_(Dourmashkin)/13%3A_Energy_Kinetic_Energy_and_Work/13.05%3A_Work_done_by_Non-Constant_Forces Nonconstant Force]&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Iterative Spring-Mass Simulation]&lt;br /&gt;
&lt;br /&gt;
=== Simulations ===&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Spring-Mass Trinket Model]&lt;br /&gt;
&lt;br /&gt;
=== Refrences ===&lt;br /&gt;
* [https://ateupwithmotor.com/terms-technology-definitions/horsepower-vs-torque/\ Torque Curve Refrence]&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47411</id>
		<title>Work Done By A Nonconstant Force</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47411"/>
		<updated>2025-11-29T22:43:28Z</updated>

		<summary type="html">&lt;p&gt;MillerL: /* Connectedness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work Done By A Nonconstant Force =&lt;br /&gt;
&#039;&#039;&#039;Claimed by Matt McCrory – Spring 2025&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page explains how to calculate work done when the force applied is not constant. It includes conceptual explanations, worked examples, mathematical and computational models, and embedded simulations to make this concept easier to understand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Main Idea ==&lt;br /&gt;
Before we understand nonconstant force, let&#039;s review constant force.&lt;br /&gt;
&lt;br /&gt;
For constant force:&lt;br /&gt;
: &#039;&#039;&#039;Work = Force × Distance&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;math&amp;gt;W = F \cdot d&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ConstantForce.png|thumb|center|300px|Work as the area under a constant force graph]]&lt;br /&gt;
&lt;br /&gt;
In real-life, however, forces often vary over distance. In that case, we use:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_{x_1}^{x_2} F(x) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This integral calculates the total work as the area under the curve on a Force vs. Distance graph.&lt;br /&gt;
&lt;br /&gt;
== Mathematical Model ==&lt;br /&gt;
Work done by a varying force is found by breaking the motion into tiny intervals:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \sum \vec{F}_i \cdot \Delta \vec{r}_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the interval becomes very small, it becomes a definite integral:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int \vec{F} \cdot d\vec{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Spring Example ===&lt;br /&gt;
If &amp;lt;math&amp;gt;F = kx&amp;lt;/math&amp;gt;, we derive:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_0^x kx \, dx = \frac{1}{2}kx^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:WorkIntegral.png|thumb|center|300px|Work done by a spring force]]&lt;br /&gt;
&lt;br /&gt;
== Computational Model ==&lt;br /&gt;
Computational models can approximate work using many tiny time steps. Below is Python code modeling a vertical spring in VPython:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#initialize conditions&lt;br /&gt;
L = ball.pos - spring.pos&lt;br /&gt;
&lt;br /&gt;
Lhat = norm(L)&lt;br /&gt;
&lt;br /&gt;
s = mag(L) - L0&lt;br /&gt;
&lt;br /&gt;
Fspring = -(ks * s) * Lhat&lt;br /&gt;
&lt;br /&gt;
#momentum principle&lt;br /&gt;
ball.p = ball.p + (Fspring + Fgravity) * deltat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interactive Model ==&lt;br /&gt;
Try out this Trinket simulation of spring motion:  &lt;br /&gt;
[https://trinket.io/glowscript/49f7c0f35f View the simulation on Trinket]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A person pushes a box and slowly loses strength after ten seconds. It can be described using this formula: F(x) = 20 - 2x. How much work was applied to the box?&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = 1/2 \cdot 10 \cdot 20 = 100 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
[[File:NonWork.jpg|center|Example Graphic]]&lt;br /&gt;
&lt;br /&gt;
=== Middling ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A spring with &amp;lt;math&amp;gt;k = 70 \, N/m&amp;lt;/math&amp;gt; is stretched 10 cm.  &lt;br /&gt;
[[File:NonSpring.jpg|center|Spring stretching setup]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = \frac{1}{2} k x^2 = \frac{1}{2}(70)(0.1)^2 = 0.35 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Difficult ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
How much work is done by Earth’s gravity on an asteroid falling from distance &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; to radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
Start with Newton’s law of gravitation:&lt;br /&gt;
: &amp;lt;math&amp;gt;F = \frac{GMm}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then integrate:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_R^d \frac{GMm}{r^2} \, dr = GMm \left( \frac{1}{R} - \frac{1}{d} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectedness ==&lt;br /&gt;
Understanding work by nonconstant forces is key in many fields:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Springs&#039;&#039;&#039;: Used in trampolines, shock absorbers, and mechanical pens  &lt;br /&gt;
* &#039;&#039;&#039;Engineering&#039;&#039;&#039;: Fluid tanks fill unevenly, requiring nonconstant work  &lt;br /&gt;
* &#039;&#039;&#039;Energy&#039;&#039;&#039;: Hydroelectric turbines rely on variable water flow  &lt;br /&gt;
* &#039;&#039;&#039;Space physics&#039;&#039;&#039;: Rockets and satellites feel variable gravity&lt;br /&gt;
&lt;br /&gt;
An interesting industrial example of work done by a non-constant force is the operation of a car engine. The torque produced by an internal-combustion engine is not constant, it depends on the engine speed (RPM). As the RPM changes, the engine’s torque follows a characteristic “torque curve,” rising to a peak and then decreasing. Because the driving force on the wheels is proportional to engine torque, the force applied to the car varies continuously, making it a real-world industrial example of work done by a non-constant force.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Gaspard-Gustave de Coriolis was the first to define &amp;quot;work&amp;quot; as force over distance. Later physicists used calculus to model work by nonconstant forces.&lt;br /&gt;
&lt;br /&gt;
== Further Reading &amp;amp; External Links ==&lt;br /&gt;
&lt;br /&gt;
=== Book ===&lt;br /&gt;
* Chabay &amp;amp; Sherwood – &#039;&#039;Matter and Interactions&#039;&#039; (4th ed.)&lt;br /&gt;
&lt;br /&gt;
=== Articles ===&lt;br /&gt;
* [https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Classical_Mechanics_(Dourmashkin)/13%3A_Energy_Kinetic_Energy_and_Work/13.05%3A_Work_done_by_Non-Constant_Forces Nonconstant Force]&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Iterative Spring-Mass Simulation]&lt;br /&gt;
&lt;br /&gt;
=== Simulations ===&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Spring-Mass Trinket Model]&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47410</id>
		<title>Work Done By A Nonconstant Force</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47410"/>
		<updated>2025-11-29T22:30:54Z</updated>

		<summary type="html">&lt;p&gt;MillerL: /* Middling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work Done By A Nonconstant Force =&lt;br /&gt;
&#039;&#039;&#039;Claimed by Matt McCrory – Spring 2025&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page explains how to calculate work done when the force applied is not constant. It includes conceptual explanations, worked examples, mathematical and computational models, and embedded simulations to make this concept easier to understand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Main Idea ==&lt;br /&gt;
Before we understand nonconstant force, let&#039;s review constant force.&lt;br /&gt;
&lt;br /&gt;
For constant force:&lt;br /&gt;
: &#039;&#039;&#039;Work = Force × Distance&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;math&amp;gt;W = F \cdot d&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ConstantForce.png|thumb|center|300px|Work as the area under a constant force graph]]&lt;br /&gt;
&lt;br /&gt;
In real-life, however, forces often vary over distance. In that case, we use:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_{x_1}^{x_2} F(x) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This integral calculates the total work as the area under the curve on a Force vs. Distance graph.&lt;br /&gt;
&lt;br /&gt;
== Mathematical Model ==&lt;br /&gt;
Work done by a varying force is found by breaking the motion into tiny intervals:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \sum \vec{F}_i \cdot \Delta \vec{r}_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the interval becomes very small, it becomes a definite integral:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int \vec{F} \cdot d\vec{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Spring Example ===&lt;br /&gt;
If &amp;lt;math&amp;gt;F = kx&amp;lt;/math&amp;gt;, we derive:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_0^x kx \, dx = \frac{1}{2}kx^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:WorkIntegral.png|thumb|center|300px|Work done by a spring force]]&lt;br /&gt;
&lt;br /&gt;
== Computational Model ==&lt;br /&gt;
Computational models can approximate work using many tiny time steps. Below is Python code modeling a vertical spring in VPython:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#initialize conditions&lt;br /&gt;
L = ball.pos - spring.pos&lt;br /&gt;
&lt;br /&gt;
Lhat = norm(L)&lt;br /&gt;
&lt;br /&gt;
s = mag(L) - L0&lt;br /&gt;
&lt;br /&gt;
Fspring = -(ks * s) * Lhat&lt;br /&gt;
&lt;br /&gt;
#momentum principle&lt;br /&gt;
ball.p = ball.p + (Fspring + Fgravity) * deltat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interactive Model ==&lt;br /&gt;
Try out this Trinket simulation of spring motion:  &lt;br /&gt;
[https://trinket.io/glowscript/49f7c0f35f View the simulation on Trinket]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A person pushes a box and slowly loses strength after ten seconds. It can be described using this formula: F(x) = 20 - 2x. How much work was applied to the box?&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = 1/2 \cdot 10 \cdot 20 = 100 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
[[File:NonWork.jpg|center|Example Graphic]]&lt;br /&gt;
&lt;br /&gt;
=== Middling ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A spring with &amp;lt;math&amp;gt;k = 70 \, N/m&amp;lt;/math&amp;gt; is stretched 10 cm.  &lt;br /&gt;
[[File:NonSpring.jpg|center|Spring stretching setup]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = \frac{1}{2} k x^2 = \frac{1}{2}(70)(0.1)^2 = 0.35 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Difficult ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
How much work is done by Earth’s gravity on an asteroid falling from distance &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; to radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
Start with Newton’s law of gravitation:&lt;br /&gt;
: &amp;lt;math&amp;gt;F = \frac{GMm}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then integrate:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_R^d \frac{GMm}{r^2} \, dr = GMm \left( \frac{1}{R} - \frac{1}{d} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectedness ==&lt;br /&gt;
Understanding work by nonconstant forces is key in many fields:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Springs&#039;&#039;&#039;: Used in trampolines, shock absorbers, and mechanical pens  &lt;br /&gt;
* &#039;&#039;&#039;Engineering&#039;&#039;&#039;: Fluid tanks fill unevenly, requiring nonconstant work  &lt;br /&gt;
* &#039;&#039;&#039;Energy&#039;&#039;&#039;: Hydroelectric turbines rely on variable water flow  &lt;br /&gt;
* &#039;&#039;&#039;Space physics&#039;&#039;&#039;: Rockets and satellites feel variable gravity&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Gaspard-Gustave de Coriolis was the first to define &amp;quot;work&amp;quot; as force over distance. Later physicists used calculus to model work by nonconstant forces.&lt;br /&gt;
&lt;br /&gt;
== Further Reading &amp;amp; External Links ==&lt;br /&gt;
&lt;br /&gt;
=== Book ===&lt;br /&gt;
* Chabay &amp;amp; Sherwood – &#039;&#039;Matter and Interactions&#039;&#039; (4th ed.)&lt;br /&gt;
&lt;br /&gt;
=== Articles ===&lt;br /&gt;
* [https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Classical_Mechanics_(Dourmashkin)/13%3A_Energy_Kinetic_Energy_and_Work/13.05%3A_Work_done_by_Non-Constant_Forces Nonconstant Force]&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Iterative Spring-Mass Simulation]&lt;br /&gt;
&lt;br /&gt;
=== Simulations ===&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Spring-Mass Trinket Model]&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:NonSpring.jpg&amp;diff=47409</id>
		<title>File:NonSpring.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:NonSpring.jpg&amp;diff=47409"/>
		<updated>2025-11-29T22:29:33Z</updated>

		<summary type="html">&lt;p&gt;MillerL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47408</id>
		<title>Work Done By A Nonconstant Force</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47408"/>
		<updated>2025-11-29T22:16:20Z</updated>

		<summary type="html">&lt;p&gt;MillerL: /* Simple */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work Done By A Nonconstant Force =&lt;br /&gt;
&#039;&#039;&#039;Claimed by Matt McCrory – Spring 2025&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page explains how to calculate work done when the force applied is not constant. It includes conceptual explanations, worked examples, mathematical and computational models, and embedded simulations to make this concept easier to understand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Main Idea ==&lt;br /&gt;
Before we understand nonconstant force, let&#039;s review constant force.&lt;br /&gt;
&lt;br /&gt;
For constant force:&lt;br /&gt;
: &#039;&#039;&#039;Work = Force × Distance&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;math&amp;gt;W = F \cdot d&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ConstantForce.png|thumb|center|300px|Work as the area under a constant force graph]]&lt;br /&gt;
&lt;br /&gt;
In real-life, however, forces often vary over distance. In that case, we use:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_{x_1}^{x_2} F(x) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This integral calculates the total work as the area under the curve on a Force vs. Distance graph.&lt;br /&gt;
&lt;br /&gt;
== Mathematical Model ==&lt;br /&gt;
Work done by a varying force is found by breaking the motion into tiny intervals:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \sum \vec{F}_i \cdot \Delta \vec{r}_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the interval becomes very small, it becomes a definite integral:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int \vec{F} \cdot d\vec{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Spring Example ===&lt;br /&gt;
If &amp;lt;math&amp;gt;F = kx&amp;lt;/math&amp;gt;, we derive:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_0^x kx \, dx = \frac{1}{2}kx^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:WorkIntegral.png|thumb|center|300px|Work done by a spring force]]&lt;br /&gt;
&lt;br /&gt;
== Computational Model ==&lt;br /&gt;
Computational models can approximate work using many tiny time steps. Below is Python code modeling a vertical spring in VPython:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#initialize conditions&lt;br /&gt;
L = ball.pos - spring.pos&lt;br /&gt;
&lt;br /&gt;
Lhat = norm(L)&lt;br /&gt;
&lt;br /&gt;
s = mag(L) - L0&lt;br /&gt;
&lt;br /&gt;
Fspring = -(ks * s) * Lhat&lt;br /&gt;
&lt;br /&gt;
#momentum principle&lt;br /&gt;
ball.p = ball.p + (Fspring + Fgravity) * deltat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interactive Model ==&lt;br /&gt;
Try out this Trinket simulation of spring motion:  &lt;br /&gt;
[https://trinket.io/glowscript/49f7c0f35f View the simulation on Trinket]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A person pushes a box and slowly loses strength after ten seconds. It can be described using this formula: F(x) = 20 - 2x. How much work was applied to the box?&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = 1/2 \cdot 10 \cdot 20 = 100 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
[[File:NonWork.jpg|center|Example Graphic]]&lt;br /&gt;
&lt;br /&gt;
=== Middling ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A spring with &amp;lt;math&amp;gt;k = 70 \, N/m&amp;lt;/math&amp;gt; is stretched 10 cm.  &lt;br /&gt;
[[File:Middle1.JPG|thumb|center|200px|Spring stretching setup]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = \frac{1}{2} k x^2 = \frac{1}{2}(70)(0.1)^2 = 0.35 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Difficult ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
How much work is done by Earth’s gravity on an asteroid falling from distance &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; to radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
Start with Newton’s law of gravitation:&lt;br /&gt;
: &amp;lt;math&amp;gt;F = \frac{GMm}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then integrate:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_R^d \frac{GMm}{r^2} \, dr = GMm \left( \frac{1}{R} - \frac{1}{d} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectedness ==&lt;br /&gt;
Understanding work by nonconstant forces is key in many fields:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Springs&#039;&#039;&#039;: Used in trampolines, shock absorbers, and mechanical pens  &lt;br /&gt;
* &#039;&#039;&#039;Engineering&#039;&#039;&#039;: Fluid tanks fill unevenly, requiring nonconstant work  &lt;br /&gt;
* &#039;&#039;&#039;Energy&#039;&#039;&#039;: Hydroelectric turbines rely on variable water flow  &lt;br /&gt;
* &#039;&#039;&#039;Space physics&#039;&#039;&#039;: Rockets and satellites feel variable gravity&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Gaspard-Gustave de Coriolis was the first to define &amp;quot;work&amp;quot; as force over distance. Later physicists used calculus to model work by nonconstant forces.&lt;br /&gt;
&lt;br /&gt;
== Further Reading &amp;amp; External Links ==&lt;br /&gt;
&lt;br /&gt;
=== Book ===&lt;br /&gt;
* Chabay &amp;amp; Sherwood – &#039;&#039;Matter and Interactions&#039;&#039; (4th ed.)&lt;br /&gt;
&lt;br /&gt;
=== Articles ===&lt;br /&gt;
* [https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Classical_Mechanics_(Dourmashkin)/13%3A_Energy_Kinetic_Energy_and_Work/13.05%3A_Work_done_by_Non-Constant_Forces Nonconstant Force]&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Iterative Spring-Mass Simulation]&lt;br /&gt;
&lt;br /&gt;
=== Simulations ===&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Spring-Mass Trinket Model]&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:NonWork.jpg&amp;diff=47407</id>
		<title>File:NonWork.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:NonWork.jpg&amp;diff=47407"/>
		<updated>2025-11-29T22:15:50Z</updated>

		<summary type="html">&lt;p&gt;MillerL: MillerL uploaded a new version of File:NonWork.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
For Non-Work Page&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:NonWork.jpg&amp;diff=47406</id>
		<title>File:NonWork.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:NonWork.jpg&amp;diff=47406"/>
		<updated>2025-11-29T22:06:01Z</updated>

		<summary type="html">&lt;p&gt;MillerL: For Non-Work Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
For Non-Work Page&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47405</id>
		<title>Work Done By A Nonconstant Force</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Work_Done_By_A_Nonconstant_Force&amp;diff=47405"/>
		<updated>2025-11-29T21:41:40Z</updated>

		<summary type="html">&lt;p&gt;MillerL: /* Computational Model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work Done By A Nonconstant Force =&lt;br /&gt;
&#039;&#039;&#039;Claimed by Matt McCrory – Spring 2025&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This page explains how to calculate work done when the force applied is not constant. It includes conceptual explanations, worked examples, mathematical and computational models, and embedded simulations to make this concept easier to understand.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Main Idea ==&lt;br /&gt;
Before we understand nonconstant force, let&#039;s review constant force.&lt;br /&gt;
&lt;br /&gt;
For constant force:&lt;br /&gt;
: &#039;&#039;&#039;Work = Force × Distance&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;math&amp;gt;W = F \cdot d&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:ConstantForce.png|thumb|center|300px|Work as the area under a constant force graph]]&lt;br /&gt;
&lt;br /&gt;
In real-life, however, forces often vary over distance. In that case, we use:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_{x_1}^{x_2} F(x) \, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This integral calculates the total work as the area under the curve on a Force vs. Distance graph.&lt;br /&gt;
&lt;br /&gt;
== Mathematical Model ==&lt;br /&gt;
Work done by a varying force is found by breaking the motion into tiny intervals:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \sum \vec{F}_i \cdot \Delta \vec{r}_i&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the interval becomes very small, it becomes a definite integral:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int \vec{F} \cdot d\vec{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Spring Example ===&lt;br /&gt;
If &amp;lt;math&amp;gt;F = kx&amp;lt;/math&amp;gt;, we derive:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_0^x kx \, dx = \frac{1}{2}kx^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:WorkIntegral.png|thumb|center|300px|Work done by a spring force]]&lt;br /&gt;
&lt;br /&gt;
== Computational Model ==&lt;br /&gt;
Computational models can approximate work using many tiny time steps. Below is Python code modeling a vertical spring in VPython:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#initialize conditions&lt;br /&gt;
L = ball.pos - spring.pos&lt;br /&gt;
&lt;br /&gt;
Lhat = norm(L)&lt;br /&gt;
&lt;br /&gt;
s = mag(L) - L0&lt;br /&gt;
&lt;br /&gt;
Fspring = -(ks * s) * Lhat&lt;br /&gt;
&lt;br /&gt;
#momentum principle&lt;br /&gt;
ball.p = ball.p + (Fspring + Fgravity) * deltat&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interactive Model ==&lt;br /&gt;
Try out this Trinket simulation of spring motion:  &lt;br /&gt;
[https://trinket.io/glowscript/49f7c0f35f View the simulation on Trinket]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A box is pushed 10 m east by a 40 N force, then 8 m north by a 60 N force.  &lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = 40 \cdot 10 + 60 \cdot 8 = 880 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Middling ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
A spring with &amp;lt;math&amp;gt;k = 70 \, N/m&amp;lt;/math&amp;gt; is stretched 10 cm.  &lt;br /&gt;
[[File:Middle1.JPG|thumb|center|200px|Spring stretching setup]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
: &amp;lt;math&amp;gt;W = \frac{1}{2} k x^2 = \frac{1}{2}(70)(0.1)^2 = 0.35 \, J&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Difficult ===&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039;  &lt;br /&gt;
How much work is done by Earth’s gravity on an asteroid falling from distance &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; to radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;  &lt;br /&gt;
Start with Newton’s law of gravitation:&lt;br /&gt;
: &amp;lt;math&amp;gt;F = \frac{GMm}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then integrate:&lt;br /&gt;
: &amp;lt;math&amp;gt;W = \int_R^d \frac{GMm}{r^2} \, dr = GMm \left( \frac{1}{R} - \frac{1}{d} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectedness ==&lt;br /&gt;
Understanding work by nonconstant forces is key in many fields:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Springs&#039;&#039;&#039;: Used in trampolines, shock absorbers, and mechanical pens  &lt;br /&gt;
* &#039;&#039;&#039;Engineering&#039;&#039;&#039;: Fluid tanks fill unevenly, requiring nonconstant work  &lt;br /&gt;
* &#039;&#039;&#039;Energy&#039;&#039;&#039;: Hydroelectric turbines rely on variable water flow  &lt;br /&gt;
* &#039;&#039;&#039;Space physics&#039;&#039;&#039;: Rockets and satellites feel variable gravity&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Gaspard-Gustave de Coriolis was the first to define &amp;quot;work&amp;quot; as force over distance. Later physicists used calculus to model work by nonconstant forces.&lt;br /&gt;
&lt;br /&gt;
== Further Reading &amp;amp; External Links ==&lt;br /&gt;
&lt;br /&gt;
=== Book ===&lt;br /&gt;
* Chabay &amp;amp; Sherwood – &#039;&#039;Matter and Interactions&#039;&#039; (4th ed.)&lt;br /&gt;
&lt;br /&gt;
=== Articles ===&lt;br /&gt;
* [https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Classical_Mechanics_(Dourmashkin)/13%3A_Energy_Kinetic_Energy_and_Work/13.05%3A_Work_done_by_Non-Constant_Forces Nonconstant Force]&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Iterative Spring-Mass Simulation]&lt;br /&gt;
&lt;br /&gt;
=== Simulations ===&lt;br /&gt;
* [https://trinket.io/glowscript/49f7c0f35f Spring-Mass Trinket Model]&lt;/div&gt;</summary>
		<author><name>MillerL</name></author>
	</entry>
</feed>