1. Home
  2. Explore
  3. Mathematics
  4. Calculus in Engineering

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Calculus in Engineering

Calculus in Engineering: A Comprehensive Study Guide

This guide covers the fundamental principles of calculus and their direct application to real-world engineering problems. Calculus is the mathematical study of change, and it provides the framework for understanding how systems respond when conditions change.


📐 The Derivative and Differential Calculus

The Concept of Slope

The relationship between two changing quantities is best understood by plotting them on a graph. The slope of the graph, represented by a tangent line (a line that just touches the curve at one point), is a critical piece of information. The slope reveals how sensitive one quantity is to changes in another, and this sensitivity varies depending on the location on the curve.

The slope often carries a specific, physical meaning depending on what is plotted:

  • Displacement vs. Force: The slope represents the stiffness of an object (e.g., the spring constant of a spring).

  • Velocity vs. Time: The slope represents acceleration.

  • Voltage vs. Current: The slope represents electrical resistance.

Differentiating from First Principles

To extract slope information systematically, consider a function like y=x3y = x^3y=x3. To find the slope at a specific point:

  1. Pick a second point slightly to the right, at x+Δxx + \Delta xx+Δx. The line between these two points has a slope equal to ΔyΔx\frac{\Delta y}{\Delta x}ΔxΔy​, which is (x+Δx)3−x3Δx\frac{(x + \Delta x)^3 - x^3}{\Delta x}Δx(x+Δx)3−x3​.

  2. As Δx\Delta xΔx is shrunk towards zero, the line connecting the two points becomes a better approximation of the true tangent line.

  3. Taking the limit as Δx\Delta xΔx approaches zero yields the exact slope at that point.

This process yields a derivative, which is the function that gives the slope of the original function at any point. For y=x3y = x^3y=x3, the derivative is dydx=3x2\frac{dy}{dx} = 3x^2dxdy​=3x2. This derivative is zero at x=0x=0x=0 (where the original curve is flat) and increases in magnitude as we move away from zero.

This approach—starting with a line between two points and taking the limit as the change approaches zero—is called "differentiating from first principles." It is the foundational concept of differential calculus.

Notation and Variables

The derivative is written in several ways:

  • dydx\frac{dy}{dx}dxdy​: Represents the change in yyy per change in xxx.

  • f′(x)f'(x)f′(x) or y′y'y′: Pronounced "f-prime of x" or "y-prime".

In this framework:

  • xxx is the independent variable (the input you can choose).

  • yyy is the dependent variable (the output that depends on xxx).

When the independent variable is time (ttt), the derivative is dydt\frac{dy}{dt}dtdy​, and the dot notation (e.g., y˙\dot{y}y˙​) is often used.

Standard Derivatives

In practice, engineers do not derive everything from first principles. They use tables of standard derivatives for common functions. The derivative of xnx^nxn follows a simple pattern: multiply by the power (nnn) and reduce the power by one.

Key Rule: The derivative of xnx^nxn is nxn−1nx^{n-1}nxn−1.

Function

Derivative

Notes

Constant (ccc)

0

A constant has no slope.

Straight Line (mx+cmx + cmx+c)

Constant (mmm)

The slope is constant.

sin⁡(x)\sin(x)sin(x)

cos⁡(x)\cos(x)cos(x)

At peaks (maxima), the slope is zero. At zero crossings, the slope is steepest (positive or negative).

cos⁡(x)\cos(x)cos(x)

−sin⁡(x)-\sin(x)−sin(x)

The negative sign ensures the slope is positive where cosine rises and negative where it falls.

exe^xex

exe^xex

At every point, the slope equals the value of the function itself. The larger the value, the faster it grows.

ln⁡(x)\ln(x)ln(x)

1x\frac{1}{x}x1​


Exponential behavior (exe^xex) is significant because the rate of change depends on the current quantity. This arises in processes like capacitor charging and radioactive decay.

Differentiation Rules

Most engineering problems involve combinations of functions. Four key rules make differentiation manageable.

1. Linearity Rule

When two functions are added, the derivative of the sum is the sum of the derivatives:

ddx[f(x)+g(x)]=f′(x)+g′(x)\frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)dxd​[f(x)+g(x)]=f′(x)+g′(x)

2. Product Rule

When two functions are multiplied, their rates of change interact. The derivative of the product of two functions uuu and vvv is:

ddx[u(x)⋅v(x)]=u′(x)⋅v(x)+u(x)⋅v′(x)\frac{d}{dx}[u(x) \cdot v(x)] = u'(x) \cdot v(x) + u(x) \cdot v'(x)dxd​[u(x)⋅v(x)]=u′(x)⋅v(x)+u(x)⋅v′(x)

3. Quotient Rule

Used when one function is divided by another:

ddx[u(x)v(x)]=u′(x)v(x)−u(x)v′(x)[v(x)]2\frac{d}{dx}\left[\frac{u(x)}{v(x)}\right] = \frac{u'(x)v(x) - u(x)v'(x)}{[v(x)]^2}dxd​[v(x)u(x)​]=[v(x)]2u′(x)v(x)−u(x)v′(x)​

4. Chain Rule

Used when one function is nested inside another (a composite function). Differentiate the outer function as if the inner part were a single variable, then multiply by the derivative of the inner function:

ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)dxd​[f(g(x))]=f′(g(x))⋅g′(x)

Example: For the function y=sin⁡(3x)y = \sin(3x)y=sin(3x), the inner function u=3xu = 3xu=3x and the outer function v=sin⁡(u)v = \sin(u)v=sin(u). The derivative is cos⁡(3x)⋅3\cos(3x) \cdot 3cos(3x)⋅3, or 3cos⁡(3x)3\cos(3x)3cos(3x). The factor of 3 reflects that the input to the sine function increases three times faster, making the slope three times steeper.

Applications of the Derivative

Finding Maxima and Minima

Wherever the derivative is zero, the function is at a local minimum or maximum (a turning point). This occurs because the slope changes sign from negative to positive (minimum) or positive to negative (maximum) and must pass through zero. These points are called stationary points.

The Second Derivative

The second derivative (f′′(x)f''(x)f′′(x) or d2ydx2\frac{d^2y}{dx^2}dx2d2y​) is the derivative of the derivative. It tells us about the curvature of the function.

  • f′′(x)>0f''(x) > 0f′′(x)>0: Positive curvature (bending upwards) → Local minimum.

  • f′′(x)<0f''(x) < 0f′′(x)<0: Negative curvature (bending downwards) → Local maximum.

  • f′′(x)=0f''(x) = 0f′′(x)=0: Possible inflection point, where the curvature reverses. At a stationary inflection point, both the first and second derivatives are zero, and the second derivative changes sign.

Real-World Example: The Heat Equation

Consider a long nuclear fuel rod with a temperature distribution, T(x,t)T(x,t)T(x,t), that changes over time. The heat equation describes this:

∂T∂t=α∂2T∂x2\frac{\partial T}{\partial t} = \alpha \frac{\partial^2 T}{\partial x^2}∂t∂T​=α∂x2∂2T​

Here, α\alphaα is the material's thermal diffusivity. The equation states that the rate of temperature change at a point depends on the second derivative of temperature with respect to position. Heat flows away from local hot spots (where ∂2T∂x2<0\frac{\partial^2 T}{\partial x^2} < 0∂x2∂2T​<0) toward cooler regions (where ∂2T∂x2>0\frac{\partial^2 T}{\partial x^2} > 0∂x2∂2T​>0). It is the second derivative that determines the direction of heat flow.

Similar equations appear in many physical processes, such as Fick's second law of diffusion, which models the movement of atoms in a solid or the dispersion of contaminants in a liquid.

Partial Derivatives

Many real-world quantities depend on two or more variables. A "curly d" symbol (∂\partial∂) indicates a partial derivative. It shows how a function changes with respect to one variable while holding the other constant.

For example, for temperature in the fuel rod, T(x,t)T(x,t)T(x,t):

  • ∂T∂t\frac{\partial T}{\partial t}∂t∂T​: How temperature at a fixed point changes with time.

  • ∂T∂x\frac{\partial T}{\partial x}∂x∂T​: How temperature varies along the rod at a single instant in time.

To take the partial derivative with respect to xxx, treat ttt as a constant, and vice versa.


📈 Integration and Integral Calculus

Differentiation takes a function and gives the rate of change. Integration is the reverse process: given a rate of change, find the original function. It is the process of accumulating all infinitesimal changes to find the total quantity.

Integration as the Area Under a Curve

Graphically, integration corresponds to finding the area under a curve.

Consider a power consumption curve for an electric motor. Power (PPP) is the rate of energy consumption (joules per second), so it is the derivative of total energy (EEE) with respect to time. To find the total energy consumed over a set time period, we need to add up all the small, instantaneous changes.

  1. Imagine dividing the region under the curve into many thin vertical rectangles.

  2. Each rectangle has a width (dxdxdx) and a height (P(t)P(t)P(t)), so the area approximates a tiny contribution to the total (e.g., 1300 J/s consumed over 0.1 seconds is 130 J).

  3. To find the total accumulated quantity, add up all the tiny contributions up to that point.

  4. As the rectangles become infinitely thin, the approximation becomes exact.

Mathematically, integration is represented by the integral symbol:

∫f(x) dx\int f(x) \, dx∫f(x)dx

This means "integrate the function fff with respect to xxx." The result is a new function, the antiderivative or indefinite integral, which gives the total accumulated amount as a function of xxx.

When limits (aaa and bbb) are added to the integral symbol, it defines the interval over which you are integrating:

∫abf(x) dx\int_a^b f(x) \, dx∫ab​f(x)dx

This is a definite integral, equivalent to calculating the total accumulated change from x=ax=ax=a to x=bx=bx=b.

Standard Integrals and the Constant of Integration

Because integration is the reverse of differentiation, the same lookup tables are used but in reverse. The integral of xnx^nxn is found by adding 1 to the power and dividing by the new power.

Key Rule: The integral of xnx^nxn is xn+1n+1+C\frac{x^{n+1}}{n+1} + Cn+1xn+1​+C, for n≠−1n \neq -1n=−1.

The Constant of Integration (CCC): Information is lost during differentiation because any constant term has a slope of zero. Two functions like x4+10x^4 + 10x4+10 and x4−5x^4 - 5x4−5 are parallel curves with identical slopes at every point, so they both differentiate to 4x34x^34x3. Therefore, when integrating, an additional constant (CCC) must be added to account for any constant that might have been lost. If the value of the original function at a particular point is known, it can be used to find the value of CCC.

When calculating a definite integral (an integral between two limits), the constant of integration cancels out when taking the difference between the upper and lower limits:

∫abf(x) dx=F(b)−F(a)\int_a^b f(x) \, dx = F(b) - F(a)∫ab​f(x)dx=F(b)−F(a)

where F(x)F(x)F(x) is the antiderivative of f(x)f(x)f(x).

Integration Techniques

Integration by Parts

This is the reverse of the product rule. It is used to integrate the product of two functions. The formula is:

∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du∫udv=uv−∫vdu

To use it, split the integrand into two parts: one to differentiate (uuu) and the other to integrate (dvdvdv). It works well when one part is easy to differentiate and the other is easy to integrate. For example, to integrate xcos⁡(x)x\cos(x)xcos(x), set u=xu = xu=x and dv=cos⁡(x) dxdv = \cos(x) \, dxdv=cos(x)dx.

Integration by Substitution

This is the reverse of the chain rule. It is used when the integral can be written in a form that includes an outer function, an inner function, and the derivative of that inner function. By substituting a new variable (uuu) for the inner function, the integral is simplified and can often be easily integrated with respect to uuu. The expression for uuu is then substituted back in to get the final answer in terms of the original variable xxx.


📊 Differential Equations

The behavior of engineering systems is rarely governed by a single neat function. More often, systems are governed by differential equations—equations that define the relationship between a quantity and its derivatives. These equations appear everywhere in the physical world.

Examples in Engineering Systems

The Catenary: Cable Under Its Own Weight

A cable suspended between two points settles into a shape governed by a differential equation derived from the balance of forces acting on it. The equation involves the first and second derivatives of the cable's shape.

Beam Deflection

When a load is applied to a beam, it deforms. The second derivative of the vertical deflection (yyy) with respect to the distance along the beam (xxx) represents the beam's curvature. This curvature at any point depends on the bending moment produced by the load and two parameters describing the beam's stiffness:

  • Young's modulus (EEE): A measure of the material's stiffness.

  • Second moment of area (III): Reflects how the beam's cross-section resists bending.

The governing equation is used constantly by mechanical and civil engineers to design and analyze structures.

Vibrating Systems and RLC Circuits

The behavior of a mass-spring-damper system is described by a differential equation. Each term corresponds to a physical effect:

  • Inertial force: Proportional to acceleration (mx¨m\ddot{x}mx¨).

  • Damping force: Proportional to velocity (cx˙c\dot{x}cx˙).

  • Spring restoring force: Proportional to position (kxkxkx).

Similarly, an RLC circuit (resistor, inductor, capacitor in series) has current that doesn't respond instantly to a voltage change. The charge buildup or discharge is governed by a differential equation where each term represents a voltage drop across a component.

Classification of Differential Equations

To analyze differential equations effectively, they need to be classified.

Classification

Description

Example

Order

Determined by the highest derivative present. A first-order equation involves dydx\frac{dy}{dx}dxdy​; a second-order involves d2ydx2\frac{d^2y}{dx^2}dx2d2y​, and so on.

dydx=kx\frac{dy}{dx} = kxdxdy​=kx is first-order. d2ydx2+3dydx+2y=0\frac{d^2y}{dx^2} + 3\frac{dy}{dx} + 2y = 0dx2d2y​+3dxdy​+2y=0 is second-order.

Ordinary vs. Partial

An ordinary differential equation (ODE) has derivatives with respect to just one independent variable. A partial differential equation (PDE) has derivatives with respect to two or more independent variables (like the heat equation).

ODE: dydt=−ky\frac{dy}{dt} = -kydtdy​=−ky. PDE: ∂T∂t=α∂2T∂x2\frac{\partial T}{\partial t} = \alpha \frac{\partial^2 T}{\partial x^2}∂t∂T​=α∂x2∂2T​.

Linear vs. Non-linear

An equation is non-linear if the dependent variable or its derivatives are raised to a power, multiplied by each other, or appear inside non-linear functions (like sin⁡(y)\sin(y)sin(y)). The heat equation and beam equation are linear.

d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0dx2d2y​+y=0 is linear. d2ydx2+y2=0\frac{d^2y}{dx^2} + y^2 = 0dx2d2y​+y2=0 or d2ydx2+sin⁡(y)=0\frac{d^2y}{dx^2} + \sin(y) = 0dx2d2y​+sin(y)=0 are non-linear.

Homogeneous vs. Non-homogeneous

An equation is non-homogeneous if there is a term that does not include the dependent variable or its derivatives. This means the equation would be non-zero if the dependent variable were set to zero.

x¨+ω2x=0\ddot{x} + \omega^2 x = 0x¨+ω2x=0 is homogeneous. x¨+ω2x=F(t)\ddot{x} + \omega^2 x = F(t)x¨+ω2x=F(t) is non-homogeneous (the term F(t)F(t)F(t) is the forcing function).

Autonomous vs. Non-autonomous

An equation is autonomous if the independent variable (usually time) does not appear explicitly in the equation. The system's evolution depends only on its current state, not on the independent variable itself.

dydt=−ky\frac{dy}{dt} = -kydtdy​=−ky is autonomous. dydt=−kty\frac{dy}{dt} = -k t ydtdy​=−kty is non-autonomous (time, ttt, appears explicitly).

Example of a Complex Classification: The following is a second-order, ordinary, non-linear, non-homogeneous, non-autonomous differential equation:

d2udt2+sin⁡(u)=cos⁡(ωt)\frac{d^2u}{dt^2} + \sin(u) = \cos(\omega t)dt2d2u​+sin(u)=cos(ωt)

Solving Differential Equations

Direct Integration

This method is used when a derivative of any order appears by itself, and the other side depends only on the independent variable. The unknown variable does not appear separately. To solve, integrate repeatedly until the original function is obtained. Each integration introduces a constant of integration, which can be found using boundary conditions.

Example: The beam deflection equation can often be solved by direct integration.

Separation of Variables

This method is applied to first-order equations that contain both the dependent and independent variables. The idea is to rearrange the equation so that all terms involving the dependent variable (including its differential, dydydy) are on one side, and all terms involving the independent variable (dxdxdx) are on the other. Both sides can then be integrated independently.

Example: For dydx=x2y\frac{dy}{dx} = x^2 ydxdy​=x2y, separating variables gives 1ydy=x2dx\frac{1}{y} dy = x^2 dxy1​dy=x2dx. Integrating both sides yields ln⁡∣y∣=x33+C\ln|y| = \frac{x^3}{3} + Cln∣y∣=3x3​+C, which can be solved for yyy.

Other powerful techniques include the integrating factor method, complementary and particular solutions, and the Laplace transform approach.

Numerical Methods

Many real-world equations, especially non-linear ones, cannot be solved analytically. In such cases, engineers use numerical methods to find approximate solutions.

Euler's Method is one of the simplest numerical methods. Starting from an initial value, it repeatedly calculates the slope of the curve from the differential equation, multiplies that slope by a chosen time step, and adds the result to the previous value to trace out an approximate solution. The smaller the step size, the more accurate the solution. More advanced methods, like the Runge-Kutta method, provide even greater accuracy.

A famous example is the Navier-Stokes equations, a system of non-linear partial differential equations that describe fluid motion. They have no known analytical solution. The entire field of computational fluid dynamics is based on applying numerical methods to simulate fluid flow.


🚁 Calculus in Control Systems: The PID Controller

A critical engineering application of calculus is in control systems, which manage the behavior of a machine using feedback and sensor data.

Consider a quadcopter drone. To design a system that maneuvers and stabilizes it, engineers must first understand the physics via differential equations. For example, the relationship between the torque applied by the motors and the resulting pitch angle (θ\thetaθ) is:

θ¨=τI\ddot{\theta} = \frac{\tau}{I}θ¨=Iτ​

where τ\tauτ is the torque and III is the mass moment of inertia. Integrating this equation twice gives the pitch angle over time. Similar equations govern roll and yaw.

In flight, the on-board flight controller uses sensor feedback in a control algorithm called a PID controller. The controller continuously calculates the error (e(t)e(t)e(t)) between the desired and actual position, and adjusts motor speeds to reduce that error. The controller has three parts, each relying on calculus:

  • Proportional Term (PPP): Reacts to the current error. A larger error produces a stronger correction (Kpe(t)K_p e(t)Kp​e(t)).

  • Integral Term (III): Takes the integral of the error over time (Ki∫e(t)dtK_i \int e(t) dtKi​∫e(t)dt). This eliminates steady-state drift by increasing the correction for any persistent error.

  • Derivative Term (DDD): Takes the derivative of the error with respect to time (KddedtK_d \frac{de}{dt}Kd​dtde​). This responds to how quickly the error is changing, helping to dampen oscillations and avoid overshoot.

Without these foundational concepts—derivatives, integrals, and differential equations—it would be impossible to simulate a drone's behavior or design a controller capable of stable flight.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent