Skip to content
Tutorials Center
My learning

Topics

Lesson 68 of 68 ยท Practice and Review

Cheat Sheet

A compact calculus and engineering maths cheat sheet: derivative and integral tables, Taylor series, Laplace and Fourier pairs, plus sympy and scipy one-liners.

This page is a reference, not a lesson. Keep it open while you work through problems or check a formula. Every table links back to the lesson that explains where the rule comes from, and the runnable blocks let you confirm entries with sympy instead of trusting memory. Where a rule needs conditions (a domain, a convergence region), the condition is listed next to it.

Throughout, a and n are constants, u and v are functions of x, and C is the constant of integration.

Derivative rules

See differentiation rules and the chain rule.

Rule Formula
Constant multiple (c u)' = c u'
Sum (u + v)' = u' + v'
Product (u v)' = u' v + u v'
Quotient (u / v)' = (u' v - u v') / v**2
Chain (f(g(x)))' = f'(g(x)) g'(x)
Power (x**n)' = n x**(n-1)
Inverse function (f^-1)'(y) = 1 / f'(x) where y = f(x)
Logarithmic differentiation for y = u**v: y' = y (v' ln u + v u'/u)

Standard derivatives

See derivatives of exponentials, logs and trig functions.

f(x) f'(x)
e**x e**x
a**x a**x ln a
ln x (x > 0) 1/x
log_a x 1 / (x ln a)
sin x cos x
cos x -sin x
tan x sec(x)**2
arcsin x 1 / sqrt(1 - x**2)
arccos x -1 / sqrt(1 - x**2)
arctan x 1 / (1 + x**2)
sinh x cosh x
cosh x sinh x
tanh x 1 - tanh(x)**2

Standard integrals

See the fundamental theorem and integration techniques. Add + C to each.

Integrand Antiderivative
x**n (n not -1) x**(n+1) / (n+1)
1/x ln abs(x)
e**(a x) e**(a x) / a
a**x a**x / ln a
sin x -cos x
cos x sin x
sec(x)**2 tan x
1 / (1 + x**2) arctan x
1 / sqrt(1 - x**2) arcsin x
1 / (x**2 - a**2) (1/(2a)) ln abs((x - a)/(x + a))
tan x -ln abs(cos x)
ln x x ln x - x

Techniques at a glance:

  • Substitution: the integral of f(g(x)) g'(x) dx becomes the integral of f(u) du with u = g(x).
  • By parts: the integral of u dv equals u v minus the integral of v du. Choose u by the order logs, algebraic, trig, exponential.
  • Partial fractions: split a proper rational function into simple fractions, one per factor.
  • Trig substitution: sqrt(a**2 - x**2) suggests x = a sin t; sqrt(a**2 + x**2) suggests x = a tan t.

Identities worth knowing

Name Identity
Pythagorean sin(x)**2 + cos(x)**2 = 1
Double angle sin 2x = 2 sin x cos x, cos 2x = cos(x)**2 - sin(x)**2
Power reduction sin(x)**2 = (1 - cos 2x)/2, cos(x)**2 = (1 + cos 2x)/2
Euler e**(i x) = cos x + i sin x
Hyperbolic cosh(x)**2 - sinh(x)**2 = 1
Log laws ln(ab) = ln a + ln b, ln(a**b) = b ln a

Maclaurin series

See Taylor and Maclaurin series.

Function Series Converges for
e**x 1 + x + x**2/2! + x**3/3! + ... all x
sin x x - x**3/3! + x**5/5! - ... all x
cos x 1 - x**2/2! + x**4/4! - ... all x
ln(1 + x) x - x**2/2 + x**3/3 - ... -1 < x <= 1
1/(1 - x) 1 + x + x**2 + x**3 + ... abs(x) < 1
arctan x x - x**3/3 + x**5/5 - ... abs(x) <= 1
(1 + x)**n 1 + n x + n(n-1)/2! x**2 + ... abs(x) < 1

Taylor polynomial around a: f(a) + f'(a)(x - a) + f''(a)/2! (x - a)**2 + .... Linearization is the first two terms.

Series and convergence tests

See sequences and infinite series and improper integrals.

  • Divergence test: if terms do not tend to 0, the series diverges.
  • Geometric: the sum of a r**k is a/(1 - r) when abs(r) < 1.
  • p-series: the sum of 1/k**p converges exactly when p > 1.
  • Ratio test: with L the limit of abs(a_{k+1}/a_k), converges if L < 1, diverges if L > 1, inconclusive at 1.
  • Alternating series: converges if terms decrease to 0.
  • Improper integrals: the integral of 1/x**p from 1 to infinity converges exactly when p > 1.

Applications of integrals

See applications of integrals.

Quantity Formula
Area between curves integral of (top - bottom) dx
Volume by discs pi times the integral of R(x)**2 dx
Volume by shells integral of 2 pi x f(x) dx
Arc length integral of sqrt(1 + f'(x)**2) dx
Average value (1/(b - a)) times the integral of f
Work integral of F(x) dx
Centre of mass x_bar = (integral of x rho dx) / (integral of rho dx)

Multivariable and vector calculus

See partial derivatives and vector calculus.

Object Definition or rule
Gradient grad f = (f_x, f_y, f_z); points toward steepest increase
Directional derivative grad f . u for a unit vector u
Hessian test all eigenvalues positive: minimum; all negative: maximum; mixed: saddle
Lagrange multipliers solve grad f = lambda grad g together with g = 0
Polar area element dA = r dr dtheta
Cylindrical volume element dV = r dr dtheta dz
Spherical volume element dV = rho**2 sin(phi) d rho d phi d theta
Divergence div F = P_x + Q_y + R_z
Curl curl F = (R_y - Q_z, P_z - R_x, Q_x - P_y)
Green line integral of P dx + Q dy around a curve = double integral of (Q_x - P_y) dA
Divergence theorem flux of F out of a closed surface = triple integral of div F
Stokes circulation around a boundary = flux of curl F through the surface

Differential equations

See ODE basics, first-order ODEs and second-order ODEs.

Type Method and solution
Separable y' = f(x) g(y) divide by g(y), integrate both sides
Linear y' + p(x) y = q(x) integrating factor mu = e**(integral of p); (mu y)' = mu q
Growth/decay y' = k y y = y0 e**(k t)
Newton cooling T(t) = T_env + (T0 - T_env) e**(-k t)
Second order a y'' + b y' + c y = 0 roots of a r**2 + b r + c = 0
Distinct real roots y = C1 e**(r1 x) + C2 e**(r2 x)
Repeated root y = (C1 + C2 x) e**(r x)
Complex roots alpha +- i beta y = e**(alpha x)(C1 cos beta x + C2 sin beta x)
Spring-mass m x'' + c x' + k x = 0 undamped frequency omega0 = sqrt(k/m); damping ratio zeta = c / (2 sqrt(m k))

Laplace transform pairs

See the Laplace transform. Valid for t >= 0 with s large enough.

f(t) F(s)
1 1/s
t**n n! / s**(n+1)
e**(a t) 1/(s - a)
sin(w t) w / (s**2 + w**2)
cos(w t) s / (s**2 + w**2)
e**(a t) sin(w t) w / ((s - a)**2 + w**2)
delta(t) 1
f'(t) s F(s) - f(0)
f''(t) s**2 F(s) - s f(0) - f'(0)
integral of f from 0 to t F(s)/s
f(t - T) shifted (for t > T) e**(-s T) F(s)

Fourier series and transform

See Fourier series, the Fourier transform and the FFT and complex numbers and phasors.

  • Series on period 2L: f(x) = a0/2 + sum of (a_n cos(n pi x / L) + b_n sin(n pi x / L)), with a_n = (1/L) times the integral of f cos(n pi x / L) over one period, and b_n likewise with sine.
  • Even functions have only cosine terms; odd functions only sine terms.
  • Parseval: energy in time equals energy in frequency.
  • Gibbs phenomenon: partial sums overshoot a jump by about 9 percent, however many terms you keep.
  • Sampling: frequencies above half the sampling rate fold back (aliasing).
Pair Transform
Pure tone sin(2 pi f0 t) two spikes at +-f0
Rectangular pulse sinc-shaped spectrum
Gaussian Gaussian (narrow in time means wide in frequency)
Convolution in time multiplication in frequency

sympy one-liners

Python Calculus toolbox in sympy

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.

numpy and scipy one-liners

Python Numerical toolbox in numpy and scipy

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.

Common numeric values

  • e = 2.71828..., pi = 3.14159..., sqrt(2) = 1.41421..., ln 2 = 0.69315...
  • Limits: sin(x)/x -> 1, (1 - cos x)/x**2 -> 1/2, (1 + 1/n)**n -> e, (e**x - 1)/x -> 1.
  • Gaussian: the integral of e**(-x**2) over all x is sqrt(pi).
  • Rule of thumb for step size: halving the step cuts the error by 4 for the trapezoid rule and by 16 for Simpson's rule.
flowchart TD
    A["Need an answer"] --> B{"Closed form exists?"}
    B -->|"yes"| C["sympy: diff, integrate, dsolve"]
    B -->|"no"| D["scipy: quad, solve_ivp, minimize"]
    C --> E["Check numerically"]
    D --> F["Check step size and tolerance"]

Symbolic first when a closed form exists, numeric when it does not, and always cross-check one against the other.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the derivative of tan x?

    tan x = sin x / cos x, and the quotient rule gives 1 / cos(x)**2, which is sec(x)**2.
  2. 2. The Laplace transform of f''(t) is:

    Applying the derivative rule twice gives s**2 F(s) minus s f(0) minus f'(0).
  3. 3. For which p does the integral of 1/x**p from 1 to infinity converge?

    For p greater than 1 the antiderivative x**(1-p)/(1-p) tends to 0 at infinity, so the integral is finite. At p = 1 it is ln x, which diverges.
  4. 4. Which tool is the better first choice for the integral of exp(-x**2) over the whole real line?

    There is no elementary antiderivative, but sympy knows the definite integral is sqrt(pi) and quad gives the same value numerically.

Summary

  • Memorize the small core: power, product, quotient and chain rules, plus derivatives of e**x, ln x, sin and cos; everything else follows.
  • Integrals are antiderivatives; the techniques (substitution, parts, partial fractions) mirror the differentiation rules in reverse.
  • Maclaurin series of e**x, sin, cos, ln(1 + x) and 1/(1 - x) cover most approximation needs.
  • Laplace and Fourier tables turn calculus into algebra; the derivative rules are the key entries.
  • sympy gives exact answers, scipy and numpy give numeric ones; use each to check the other.

Back to the start: What Is Engineering Mathematics?.