MathemagiciansLibraryExplorationsDeep Dives
← Physics · Pre-University
PhysicsPre-University

Variable forces — using F=ma with calculus

PP1 — Mechanics Advanced › PP1.2 — Forces with CalculusLecture 3 of 3~2560 words

A force that depends on the answer

A small ball of mass 0.2 kg is let go from rest in a tall jar of thick oil. Gravity pulls it down with N. The oil pushes back with a resistance of newtons, where is the speed in m s⁻¹. How fast is the ball moving after 0.1 s?

Try the old method. At the start, , so there is no resistance, and . SUVAT then gives . This lecture will show that the ball can never move faster than about 0.49 m s⁻¹. The SUVAT answer is about twice a speed the ball can never reach.

The mistake is not in the arithmetic. It is in the assumption. SUVAT needs a constant acceleration, and here the acceleration changes all the time. As the ball speeds up, the resistance grows, so the acceleration falls. The force depends on the speed. But the speed is the thing you are trying to find. The force depends on the answer.

The last lecture kept every force constant. This lecture lets the force change during the motion, and that is where calculus joins in.

Three kinds of changing force

Newton's second law along a line, with calculus, reads

When changes, this is a differential equation: an equation that contains the derivative of the quantity you want. Solving it means finding itself, not just its rate of change.

The method depends on one question: what does the force depend on? In mechanics there are three common answers.

Each one needs a different first move. Get the move right, and the rest is integration you already know.

A force that depends on time: integrate twice

This is the easy case. Divide by the mass, and is an acceleration given as a function of time. That is exactly the kinematics of the first lectures of this course. The lecture on velocity and acceleration as derivatives said that two integrations and two initial conditions give the whole motion. Here is that promise used.

Worked Example 1 — A push that grows and fades

A 0.5 kg puck rests at the origin on smooth ice. From to s, it is pushed along the ice by a force N ( in seconds). Find its velocity and position at s. (This is an invented situation.)

Acceleration. .

Integrate once. . The puck starts from rest, so at , and .

Integrate again. . It starts at the origin, so .

At s. and m.

Check by impulse. The area under the force–time graph is the impulse: N s. Impulse equals the change in momentum, so and . Both routes agree.

Look at what the check did. Integrating over time gives . That is the impulse–momentum theorem from the Upper Secondary lecture on impulse. It was not a separate law. It is Newton's second law, integrated over time.

A force that depends on position: a = v dv/dx

Now suppose the force is given as . The equation is .

Stop and think

Why can you not simply integrate both sides with respect to , as in Worked Example 1?

Show the answer

To integrate with respect to , you would need to know as a function of . But is the motion you are trying to find. The right-hand side is written in the wrong variable. You need an equation in which every quantity is a function of .

The fix is to write the acceleration in terms of . The step-through below builds it one move at a time. The key move is step 3. Read its reason before you go on.

Step through — from F = ma to the work–energy theorem

Press Next to add one step. Read the reason before you go on.

Each step gives one line and the reason it is allowed.

  1. . Newton's second law, with a force that depends on position.
  2. We want as a function of , not of . Every quantity must be written in .
  3. . For small finite changes this is exact, because cancels. Let shrink to zero, and it becomes (the chain rule).
  4. , so . The acceleration is now written in terms of position.
  5. . Substitute into Newton's second law.
  6. . Integrate both sides with respect to . As runs from to , the velocity runs from to .
  7. . The power rule, with as the variable.

Conclusion: . The left side is the work done by the force. The right side is the change in kinetic energy.

That is it. That is the whole idea. Step 4 turns a force of position into an equation you can integrate. Step 7 shows what the integral means. is the work done by the force, and the result is the work–energy theorem. You met it in Upper Secondary as a separate statement. Here it falls out of . It is Newton's second law, integrated over distance. The next lecture studies the work integral itself.

Notice the starting kinetic energy, . Work equals kinetic energy only when the object starts from rest. In general, work equals the change in kinetic energy.

Newton's second law for a changing force

Force depends on time: . Integrate with respect to .

Force depends on position: . Integrate with respect to .

Force depends on velocity: . Terminal velocity is where .

Every integration needs its constant, found from an initial condition.

Worked Example 2 — A push that weakens with distance

A 2 kg block starts from rest at on a smooth floor. A force N ( in metres) acts on it along the floor. Find its speed at m, its greatest speed, and where it comes to rest. (This is an invented situation.)

Set up. , so .

Integrate with respect to : . At , , so .

At . , so and .

Greatest speed. The block speeds up while the force is positive, up to , where . Then , so .

Comes to rest when : , so or m. After , the force points backwards and slows the block, which stops at m.

Check by work. From 0 to 10 m, . The work done is zero, so the kinetic energy at 10 m equals the kinetic energy at the start: zero. Both routes agree.

A force that depends on velocity: terminal velocity

Now return to the ball in oil. Take down as positive. The resultant force is , with . This model ignores the upthrust of the oil, or treats it as already taken off the weight. A resistance proportional to is a good model for small, slow objects in a thick liquid. For fast objects in air, a resistance proportional to is closer.

Worked Example 3 — The ball in oil

Mass 0.2 kg, resistance N, . (a) Find the terminal velocity. (b) Find the acceleration when .

(a) At terminal velocity the resultant force is zero: . So .

(b) Resultant N downwards. So downwards.

Check with a general form. Divide by , and use : . At , . The acceleration falls in a straight line, from at the start to zero at .

0.10.20.30.40.5246810v in m s⁻¹a in m s⁻²(0.3, 3.81)terminal velocity ≈ 0.49g = 9.81 at the start
Acceleration against velocity for the ball in oil. The acceleration starts at g and falls in a straight line to zero at the terminal velocity.
Stop and think

Does the ball ever actually reach 0.4905 m s⁻¹?

Show the answer

Not in this model. The closer gets to , the smaller the resultant force, so the slower grows. When the ball is 1% below , its acceleration is only 1% of . The gap keeps shrinking but never closes. Terminal velocity is a limit that the velocity approaches. In practice, after a short time the difference is too small to measure.

Terminal velocity needed no calculus. But the original question, the speed after 0.1 s, does. The equation can be solved exactly, and a later Mathematics lecture on differential equations shows how. Its answer is , where s. At s this gives .

You can reach the same answer without that method. The lecture on non-uniform acceleration described stepping forward in time, Euler's method. Work out from the present . Then add to . Repeat. The simulation below does exactly this, with a step of 0.0001 s.

Simulate — a ball falling through oil

Press Play, or Step to move on by 0.01 s. Watch the arrows on the ball and the shape of the graph. Then change the mass or the resistance constant k, and predict the new terminal velocity before you play again.


The table shows the ball's velocity, found by stepping forward in time, for three settings. The terminal velocity is .

m, kv at 0.05 sv at 0.1 sv at 0.2 s
0.2 kg, 4 N s m⁻¹0.49050.3100.4240.482
0.1 kg, 4 N s m⁻¹0.24530.2120.2410.245
0.4 kg, 2 N s m⁻¹1.9620.4340.7721.240

Velocities in m s⁻¹. A heavier ball, or a smaller k, gives a larger terminal velocity, and takes longer to approach it. The time scale is : after one , the ball has reached about 63% of , and after three, about 95%.

You should have seen the curve rise steeply at first and then flatten against the dashed line. The blue arrow grows until it almost matches the weight. At 0.1 s the readout gives about 0.424 m s⁻¹, the same as the exact formula, and far below the SUVAT answer of 0.98. A heavier ball has a larger terminal velocity, , and it also takes longer to get close, because the time scale is .

A force that depends on position: the spring

The most important force of position in physics is the spring. Measure from the equilibrium position, where the spring is neither stretched nor squashed. Then the spring pulls back with a force of size , always towards . With signs, . Here is the spring constant, in N m⁻¹. It is a different constant from the of the oil.

mx = 0xkx towards x = 0equilibrium
A block on a smooth floor, joined to a wall by a spring. At displacement x from equilibrium, the spring pulls the block back towards x = 0 with a force of size kx.
Worked Example 4 — A block on a spring

A 0.5 kg block on a smooth floor is joined to a spring with . It is pulled to m and let go from rest. Find its speed at m and at .

Set up with : .

Integrate: . At , , so . Multiply by 2: .

Look at that line. It says . The kinetic energy plus the elastic potential energy stays the same. Conservation of energy for a spring has come straight out of .

At . , so and .

At . , so , the greatest speed.

Check. At : J. At the start: J. Both agree.

Now write the same law with the second derivative, , so

The acceleration is proportional to the displacement and points the opposite way. This is the defining equation of simple harmonic motion, the subject of PP1.6. Its solution is , with , when the block starts from rest at . The check needs the derivative of cosine, , which the Mathematics calculus lectures prove. Differentiate twice and you get , which is the equation. For this block, . The greatest speed is , the same as the energy method gave. A stiffer spring makes larger, so the block swings faster. A heavier block makes it smaller.

Three classic mistakes

Trap 1 — Integrating a force of position with respect to time

Writing treats as a constant. It is not: changes with . When the force is written in , use and integrate with respect to .

Trap 2 — Forgetting the starting kinetic energy

is true only from rest. In general, the work equals . Find the constant of integration from the initial condition every time.

Trap 3 — Using SUVAT with a changing force

SUVAT needs a constant acceleration. With the starting acceleration, the ball in oil gave 0.98 m s⁻¹ after 0.1 s, twice its terminal velocity. Using an "average" force fails too, because you do not know the average until you have solved the motion.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck. Use .

  1. A 3 kg trolley moves along a straight track. At it is at the origin, moving at 2 m s⁻¹. A force N acts along the track for 3 s. Find its velocity and position at s.

    Hint 1

    The force depends on time. Find , then integrate twice.

    Hint 2

    . At , and .

    Full answer

    , and at , so . At : . Then , with . At : m. Check by impulse: N s, so the change in velocity is , from 2 to 8.

  2. A 2 kg block starts from rest at on a smooth floor. A force N acts along the floor. Where is its speed greatest, and what is that speed?

    Hint 1

    The speed is greatest where the force changes from speeding the block up to slowing it down.

    Hint 2

    Use and integrate with respect to .

    Full answer

    when , so at m (the block moves in the positive direction). Integrating: , and from the start. At : , so . Check by work: J, and J.

  3. A 75 kg skydiver falls with air resistance N. Find her terminal velocity, and her acceleration when . Is her acceleration at half the terminal velocity equal to ?

    Hint 1

    At terminal velocity, .

    Hint 2

    In general, . Put in .

    Full answer

    . At 30 m s⁻¹: . At , the resistance is of the weight, so , not . The straight-line rule of Worked Example 3 belongs to the model only. Check: measured terminal speeds for a skydiver lying flat are about 55 m s⁻¹, close to this model.

  4. A 1000 kg boat moves at 6 m s⁻¹ when its engine is switched off. The water resists with a force N. How far does the boat glide? How fast is it moving 10 s later? (This is an invented situation.)

    Hint 1

    For the distance, use , even though the force depends on . See what happens to the .

    Hint 2

    , so .

    Full answer

    Dividing by gives , so . The boat stops when , at m. In time, , the same shape as the oil equation, with solution . After 10 s, . Here is the surprise: in this model the boat covers a finite 30 m but never quite stops, because the time to reach is endless. Check: the speed falls by 0.2 m s⁻¹ for every metre, so 6 m s⁻¹ is used up in 30 m. Real water also has other resistances, which bring a real boat to a stop.

The bigger idea

This lecture used one law three ways. Integrated over time, gives the impulse–momentum theorem. Integrated over distance, with , it gives the work–energy theorem. Applied to a spring, it gives both energy conservation and simple harmonic motion. These are not separate laws to learn. They are what Newton's second law becomes when you integrate it.

When the equation cannot be integrated by hand, physics does not stop. It steps forward in time, as the simulation did: find the force from the present state, find the acceleration, update the velocity and the position, repeat. The force can depend on time, position and velocity all at once, and the loop does not care. This is how the paths of spacecraft are calculated today. The equations come from the physics; the steps come from the calculus.

Key concepts in this lesson