Module 5/5 · Weeks 13–15 · 27 h

Elementary calculus of motion

DRT 111 Applied Mathematics for Technology

About 90 minDraft, awaiting reviewLast updated 26 September 2026

Lesson

By the end of this module you will be able to

  1. Explain the derivative as a rate of change and as the slope of a tangent line
  2. Differentiate polynomials with the power rule and find maxima and minima
  3. Estimate velocity from flight-log position data with finite differences
  4. Explain the integral as the area under a graph and estimate it with the trapezoidal rule
  5. Calculate charge consumed and explain the drift that comes from integrating IMU data

Prerequisites: DRT 111 Module 1 (functions and graphs)

The mathematics of change

Every number in a flight log changes over time. Altitude rises, the battery drains, speed wobbles in the wind. The important questions are not only “what is the value now?” but also “how fast is it changing?” and “how much has built up so far?”

Calculus answers these with two tools. The derivative gives the rate of change at an instant. The integral gives the total accumulated over an interval. The two are inverses of each other. This module focuses on understanding and on calculating with real data rather than on formal proofs.

Rate of change and the derivative

Average velocity

If a drone is at position at time and at at time , its average velocity is

On a position–time graph this is the slope of the straight line through the two points.

Instantaneous velocity

If we shrink the interval towards zero, the line through two points becomes a tangent that touches the graph at a single point. Its slope is the instantaneous velocity, called the derivative of position with respect to time:

Position–time curve with a pink tangent line at one point and a small triangle showing delta t and delta x
Figure 1. The slope of the tangent to the position graph is the velocity at that instant

Likewise, the derivative of velocity is acceleration, .

The power rule

You do not have to compute a limit every time. For polynomials, use the power rule:

together with two simple rules: the derivative of a constant is zero, and the derivative of a sum is the sum of the derivatives.

Example 1. Position, velocity, acceleration

A drone accelerates horizontally with position metres.

  • Velocity ; at s, m/s
  • Acceleration m/s², constant throughout

Finding maxima and minima

At the highest or lowest point of a smooth graph the tangent is horizontal, so the derivative is zero. We can use this to find maximum values.

Example 2. Maximum height

An object launched upward has height metres.

  • s
  • Maximum height m

Derivatives from real data

Flight-log data are samples in time, not formulas, so we estimate derivatives with finite differences:

Example 3. Climb rate from a log

A log records altitude every 0.5 s: 10.0, 11.2, 12.5, 13.6 m.

  • First interval m/s
  • Second interval m/s
  • Third interval m/s

The average climb rate is about 2.4 m/s.

Watch out

Differentiating amplifies noise. If altitude readings carry random errors of ±0.1 m and s, the computed velocity can swing by up to ±20 m/s even when the drone is barely moving. In practice, filter the signal first or use a longer interval.

The integral: accumulation

If we know velocity over time and want total distance, we do the reverse of differentiation: we accumulate velocity times time over many small intervals. This sum equals the area under the velocity–time graph and is written as an integral:

Velocity–time graph with the area underneath divided into several trapezoid strips
Figure 2. The area under the velocity graph, approximated with trapezoid strips

The trapezoidal rule

With sampled data, approximate the area with trapezoid strips. Each strip’s area is the average of its two edges times its width:

Example 4. Distance from velocity

Velocity recorded every 1 s is 0, 2, 4, 4, 3 m/s.

Charge consumed

A drone’s current sensor computes “mAh used” as the integral of current, , in exactly the same way.

Example 5. How much battery is left?

A drone hovers at 20 A for 6 minutes, then flies fast at 30 A for 3 minutes.

  • First phase Ah
  • Second phase Ah
  • Total 3.5 Ah, or 3500 mAh

With a 5000 mAh battery and an 80% usage limit of 4000 mAh, only 500 mAh remain: time to fly home.

Why an IMU alone cannot navigate for long

An accelerometer measures acceleration. Integrate once for velocity, again for position, and it seems you could navigate without GNSS. But real sensors have a small constant offset called bias (). After two integrations, the position error grows with the square of time:

Example 6. A tiny bias

A bias of m/s² looks tiny, but after 60 seconds the position error is m.

This is why autopilots fuse IMU data with GNSS, barometer or camera data using a Kalman filter (EKF), which you will study in DRT 335.

Common mistakes

Watch out

  • Confusing average and instantaneous velocity.
  • Forgetting time units. With current in A and time in minutes, convert to hours before getting Ah.
  • Differentiating noisy data without filtering.
  • Assuming integration error grows linearly. It grows with the square of time.

Summary

  • The derivative is the instantaneous rate of change, equal to the slope of the tangent.
  • Velocity is the derivative of position and acceleration the derivative of velocity; the power rule is .
  • Maxima and minima occur where the derivative is zero.
  • The integral is accumulation, the area under a graph; with real data, use the trapezoidal rule.
  • Charge used is the integral of current, and IMU bias causes position error of .

Check your understanding

  1. Differentiate .
  2. A drone is at 20 m at s and at 35 m at s. What is its average velocity?
  3. Find when is at its maximum, and the maximum value.
  4. Current logged every 60 s is 18, 22, 20 A. Estimate the charge used in mAh with the trapezoidal rule.
  5. An IMU has a bias of 0.02 m/s². What is the position error after 30 s?
Answers
  1. m/s
  2. s and m
  3. A·s; divided by 3600 gives 0.683 Ah, about 683 mAh
  4. m

Key formulas

Average velocity
Derivative
Power rule
Finite difference
Trapezoidal rule
Charge consumed
Error from bias

Key references

  1. Strang, G., & Herman, E. (2016). Calculus volume 1. OpenStax. link
  2. Stroud, K. A., & Booth, D. J. (2020). Engineering mathematics (8th ed.). Bloomsbury.
  3. Groves, P. D. (2013). Principles of GNSS, inertial, and multisensor integrated navigation systems (2nd ed.). Artech House.

Further reading

Study the assigned knowledge units in advance, review media and take the module quiz

In class / field

Lecture, case discussion and in-class problem solving

Learning evidence: Quiz results and submitted exercises

Module quiz

This is a formative self-check, not a graded exam

Knowledge domain: Mathematics, physics and statistics · Automation, robotics and swarms · Control, autopilot and navigation