Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 68 ยท Getting Started

What Is Engineering Mathematics?

See why engineers rely on calculus, how limits, derivatives, integrals and differential equations fit together, and set up sympy, numpy and matplotlib.

A bridge sags under load, a capacitor charges, a rocket burns fuel and gets lighter, a phone filters noise out of your voice. Every one of these systems changes, and engineers must say how fast it changes, how much has built up, and what happens next. Engineering mathematics is the toolkit for exactly those questions, and its centre is calculus.

This course teaches calculus the way engineers use it: every idea comes with a picture, a formula, and a short program you can run in your browser. You will not just differentiate by hand; you will also check your answer with a computer, plot it, and see where it breaks. No installation is needed. If you already know some programming, you will feel at home; if not, the examples are short enough to read as you go.

Four questions calculus answers

Almost everything in the course grows from four questions about a quantity that changes:

  1. Where is it heading? This is a limit: the value a function approaches.
  2. How fast is it changing right now? This is a derivative: a rate, a slope.
  3. How much has piled up? This is an integral: accumulation, area, total.
  4. What rule governs the change, and what does it predict? This is a differential equation: a relation between a quantity and its own rate.
flowchart LR
    L["Limits<br/>where is it heading?"] --> D["Derivatives<br/>how fast is it changing?"]
    L --> I["Integrals<br/>how much has accumulated?"]
    D <--> I
    D --> E["Differential equations<br/>what will happen next?"]
    I --> E

Limits support both derivatives and integrals; the Fundamental Theorem links those two; together they let us write and solve equations of motion.

The later chapters extend these ideas to several variables (a temperature that depends on x, y and z), to series and transforms (breaking a signal into sine waves), and to linear algebra and statistics, which engineers combine with calculus daily.

A first taste: rate and total

Suppose a tank is filling and you record the water level every minute. The rate of filling is how much the level rises per minute; the total is the level itself. Going from level to rate is differentiation; going from rate to level is integration. Here is that idea in a few lines of NumPy.

Python Rate and total from data

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

np.diff is a crude derivative and np.cumsum a crude integral. They undo each other, which is a preview of the Fundamental Theorem of Calculus. The rate here grows by 2 litres every minute, so something accelerating is going on; calculus will give you exact language for that.

Your toolkit: sympy, numpy and matplotlib

You will meet three Python libraries throughout the course, and each has a clear job.

Library Job Typical call
sympy Exact symbolic algebra and calculus diff(x**2, x)
numpy Fast numeric arrays np.linspace(0, 1, 5)
matplotlib Plots plt.plot(x, y)

All three run in the in-browser Python on this site. The first time you press Run on an example that imports one of them, the browser downloads it, so that first run is slower; later runs are fast. Figures from matplotlib appear as images in the output.

Python Check that the toolkit works

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The three printed lines are exact answers: 3*x**2 - 2 and x**4/4 - x**2. The plot is built from 200 sample points, an approximation of the smooth curve. That contrast is the next idea.

Symbolic versus numeric thinking

Engineers switch constantly between two ways of working.

  • Symbolic work keeps letters and produces formulas. sympy finds that the derivative of x**3 is 3*x**2, valid for every x, and you can reason about the formula: where is it zero, what happens for large x?
  • Numeric work plugs in numbers and produces approximate values. numpy evaluates a function at thousands of points in a blink, and works even when no neat formula exists.

Neither is better. A formula gives insight; numbers give answers when formulas run out. Most real problems, such as the shape of airflow over a wing, have no closed-form solution, so engineers solve them numerically. Yet they check their solvers against the few cases that do have formulas. You will practise exactly that habit: derive, compute, compare.

Python Exact versus approximate

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The exact area is 2. The sum of 1000 thin rectangles lands very near it, with an error under one millionth. You will see in the integral chapters why that happens, and how to shrink the error further.

How to work through this course

  • Predict, then run. Before pressing Run, guess the output. Wrong guesses teach the most.
  • Edit the examples. Change a number, break a line, see the message. The editors are yours to experiment in.
  • Check by hand and by machine. Do a derivative on paper, then confirm with sympy. When they disagree, find out which one slipped.
  • Mind the units. Engineers measure metres, seconds and volts. A formula that mixes units is wrong even if the algebra is fine.

If your algebra feels rusty, the next two lessons rebuild what you need: Functions and Graphs and The Algebra Toolkit. For Python basics, see the Python tutorial.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which calculus idea measures how fast a quantity is changing at one instant?

    The derivative is the instantaneous rate of change, the slope of the graph at a point. The integral measures accumulation instead.
  2. 2. In the tank example, which NumPy function played the role of a crude derivative?

    np.diff subtracts neighbouring values, giving the change per step, which approximates a derivative. np.cumsum adds the changes back up, approximating an integral.
  3. 3. Why do engineers often solve problems numerically instead of symbolically?

    Real systems such as airflow or heat in odd shapes rarely have neat formulas. Numerical methods give approximate answers anyway, and exact cases are used to check them.
  4. 4. Which library gives you exact answers such as 3*x2 for the derivative of x3?

    sympy does symbolic algebra and calculus. numpy and math work with numbers, and matplotlib draws plots.

Summary

  • Calculus answers four questions about change: where it heads (limits), how fast (derivatives), how much accumulates (integrals), and what comes next (differential equations).
  • Differentiation and integration are inverse operations, previewed by np.diff and np.cumsum.
  • sympy gives exact symbolic results, numpy fast numeric ones, and matplotlib the pictures.
  • Good engineers cross-check formulas against numbers, and watch units.

Next: Functions and Graphs.