Subject: Civil Engineering Chapter: Engineering Mathematics Topic: 1.4 Differential Calculus
Differential calculus is the branch of mathematics that studies the rate of change of one quantity with respect to another. For a civil engineer, differentiation is the language in which the behaviour of structures, materials and flows is described: the slope of a beam at any section is the rate of change of its deflection, the bending moment at a section is related to the derivative of the shear force, and the stress at a point is the limit of the ratio of force to area as the area tends to zero. Competitive examinations in civil engineering test differentiation heavily, both as direct questions on rules and as applied problems on maxima and minima, tangents and normals, and rates of change in physical situations.
The fundamental concept of the derivative is the limit of the ratio of the change in the function to the change in the independent variable as the latter tends to zero. If y is a function of x, then the derivative of y with respect to x, written dy/dx or y prime, measures how sensitively y responds to small changes in x. Geometrically, the derivative at a point is the slope of the tangent line to the curve at that point, and it is the essential idea behind the calculation of gradients in every field of engineering. The process of finding the derivative is called differentiation, and it obeys a small number of standard rules that together cover every function met in practice.
In this chapter we will study the derivative from first principles, the standard formulas for elementary functions, the product rule, quotient rule and chain rule, the differentiation of implicit and parametric functions, and higher-order derivatives. We will then apply differentiation to the finding of tangents and normals, to the determination of maxima and minima, and to problems of rates of change and small errors, which are directly relevant to structural analysis and surveying. Worked numerical examples in the examination style will ensure that the candidate not only knows the rules but can apply them rapidly and correctly under time pressure.
The derivative of a function y = f(x) with respect to x is defined as the limit, as h tends to zero, of [f(x + h) - f(x)] divided by h. This definition, called differentiation from first principles, is the source of all the standard formulas. The derivative of x to the power n is n times x to the power (n - 1), which is the single most used formula in all of calculus. The derivative of a constant is zero, and the derivative of a constant times a function is the constant times the derivative of the function. Differentiation is a linear operation, so the derivative of a sum of functions is the sum of their derivatives.
The standard derivatives of elementary functions must be memorised perfectly. The derivative of sine x is cosine x, and the derivative of cosine x is negative sine x. The derivative of tangent x is secant squared x, the derivative of cotangent x is negative cosecant squared x, the derivative of secant x is secant x tangent x, and the derivative of cosecant x is negative cosecant x cotangent x. The derivative of e to the power x is e to the power x itself, which is the unique function that equals its own derivative, and the derivative of a to the power x is a to the power x times log base e of a. The derivative of log base e of x is 1/x, the derivative of log base a of x is 1/(x log base e of a), and the derivative of the square root of x is 1 divided by 2 times the square root of x.
Three general rules extend these basic formulas to composite expressions. The product rule states that the derivative of u times v is u times the derivative of v plus v times the derivative of u. The quotient rule states that the derivative of u divided by v is (v times the derivative of u minus u times the derivative of v) divided by v squared. The chain rule states that if y is a function of u and u is a function of x, then dy/dx equals dy/du times du/dx, which is the rule that makes the differentiation of composite functions systematic. In addition, the derivative of a function of a function such as sine of x squared uses the chain rule, and logarithmic differentiation is a powerful shortcut for complicated products and quotients of functions.
Example 1: Differentiate f(x) = x cubed - 3 x squared + 5 x - 7. Solution: Applying the power rule term by term, f prime(x) = 3 x squared - 6 x + 5.
Example 2: Differentiate y = x squared sine x. Solution: Using the product rule with u = x squared and v = sine x, dy/dx = x squared cosine x + 2 x sine x.
Example 3: Differentiate y = (2 x + 1) to the power 10. Solution: Using the chain rule with u = 2x + 1, dy/dx = 10(2x + 1) to the power 9 times 2 = 20(2x + 1) to the power 9.
The second derivative of y with respect to x is the derivative of the first derivative, written d squared y/dx squared, and it measures the rate of change of the slope. Geometrically, the second derivative determines whether a curve is concave upward or downward at a point, which is the key to classifying stationary points as maxima or minima. Higher derivatives of order n are written d to the power n y/dx to the power n, and they appear in the Taylor series expansion, in the differential equations of beam bending where the fourth derivative of deflection equals the distributed load divided by flexural rigidity, and in the analysis of vibrating systems.
An implicit function is one in which y is not expressed explicitly in terms of x, but x and y are related by an equation such as x squared + y squared = 25. To differentiate an implicit function, we differentiate every term of the equation with respect to x, treating y as a function of x and using the chain rule wherever y appears, so that the derivative of y squared becomes 2 y times dy/dx. We then solve the resulting equation for dy/dx. This technique is essential for the differentiation of curves such as circles and conics, and it is used in the derivation of the slope of the bending moment diagram and the shear force diagram at any section.
A parametric function is one in which x and y are both expressed in terms of a third variable, the parameter, such as x = a cosine theta and y = a sine theta for a circle, or x = a t squared and y = 2 a t for a parabola. The derivative dy/dx is found as the ratio (dy/dt) divided by (dx/dt), provided dx/dt is not zero. The second derivative is then found by differentiating dy/dx with respect to t and dividing by dx/dt. Parametric equations are the natural description of curves set out on the ground in surveying, of the trajectory of a projectile, and of the motion of machinery, so this technique is directly applicable to engineering problems.
Example 4: Find dy/dx for the implicit function x squared + y squared = 25. Solution: Differentiating both sides with respect to x gives 2x + 2y dy/dx = 0, so dy/dx = -x/y.
Example 5: Find dy/dx for the parametric equations x = t squared, y = t cubed. Solution: dx/dt = 2t and dy/dt = 3 t squared. Hence dy/dx = (3 t squared)/(2t) = (3t)/2.
The most important application of the derivative is the determination of maxima and minima, because a civil engineer constantly optimises quantities such as the volume of concrete, the cost of materials, the most economical section of a beam, and the least settlement of a foundation. A point at which the derivative is zero is called a stationary point. To decide whether it is a maximum or a minimum, we use the second derivative test: if the second derivative is positive at the stationary point, the function has a local minimum; if it is negative, the function has a local maximum; and if it is zero, the test is inconclusive and we examine the sign of the first derivative on both sides. The global maximum or minimum over a closed interval is found by evaluating the function at all stationary points and at the endpoints.
The tangent to a curve at a point is the straight line through that point with slope equal to the derivative at that point, and the normal is the line perpendicular to the tangent. If the slope of the tangent is m, the slope of the normal is negative 1 divided by m. The equations of the tangent and the normal are written using the point-slope form of a straight line. This application connects calculus to coordinate geometry and is tested as a standard one-mark question in many examinations. The tangent concept also underlies the computation of the slope of a road, the gradient of an embankment, and the angle of internal friction calculations in soil mechanics.
Problems on rates of change connect the derivative to physical quantities. If the radius of a circular concrete slab is increasing at a known rate, the rate of increase of its area is the derivative of the area with respect to radius multiplied by the rate of change of the radius. Such problems use the chain rule in a practical setting, and they appear in the study of discharge from a reservoir, the movement of a construction crane, and the filling of a settling tank. Related-rates problems require the candidate to identify the given rate, express the required quantity in terms of the variable, differentiate with respect to time, and substitute the numerical values.
Example 6: Find the maximum and minimum values of f(x) = x cubed - 3 x + 2. Solution: f prime(x) = 3 x squared - 3 = 3(x squared - 1), which is zero at x = 1 and x = -1. f double prime(x) = 6x. At x = 1, f double prime = 6, positive, so f(1) = 0 is a local minimum. At x = -1, f double prime = -6, negative, so f(-1) = 4 is a local maximum.
Example 7: A stone is dropped from a tower so that its height in metres is h = 100 - 5 t squared after t seconds. Find the velocity after 2 seconds. Solution: Velocity v = dh/dt = -10 t. At t = 2, v = -20 m/s, meaning the stone moves downward at 20 m/s.
| Function f(x) | Derivative f prime(x) |
|---|---|
| x n | n x (n-1) |
| e x | e x |
| a x | a x log a |
| log base e x | 1/x |
| sine x | cosine x |
| cosine x | -sine x |
| tangent x | secant squared x |
| cotangent x | -cosecant squared x |
| secant x | secant x tangent x |
| cosecant x | -cosecant x cotangent x |
| Rule / Test | Formula or Result |
|---|---|
| Product rule | d(uv)/dx = u dv/dx + v du/dx |
| Quotient rule | d(u/v)/dx = (v du/dx - u dv/dx)/v2 |
| Chain rule | dy/dx = dy/du x du/dx |
| Stationary point | dy/dx = 0 |
| Second derivative test | f double prime > 0 minimum, < 0 maximum |
| Tangent slope | m = dy/dx at the point |
| Normal slope | -1/m |
flowchart TD
A[Differential Calculus] --> B[First principles]
A --> C[Standard formulas]
A --> D[Differentiation rules]
A --> E[Higher and implicit derivatives]
A --> F[Applications]
B --> B1[Limit definition of dy/dx]
C --> C1[Power rule]
C --> C2[Trigonometric derivatives]
C --> C3[Exponential and logarithmic]
D --> D1[Product rule]
D --> D2[Quotient rule]
D --> D3[Chain rule]
E --> E1[Second derivative]
E --> E2[Implicit functions]
E --> E3[Parametric functions]
F --> F1[Tangents and normals]
F --> F2[Maxima and minima]
F --> F3[Rates of change]
The following diagrams illustrate the geometric meaning of the derivative as the slope of the tangent, and the classification of stationary points.
Differential calculus is the mathematics of change, and it is indispensable to the civil engineer, whose structures deflect, whose beams bend, whose foundations settle and whose water flows. In this chapter we have studied the derivative from first principles, the standard formulas for elementary functions, the product, quotient and chain rules, higher-order, implicit and parametric differentiation, and the three great applications of tangents and normals, maxima and minima, and rates of change. Worked numerical examples have connected every rule to the style of competitive examination problems, and the quick revision tables and mind map consolidate the results for rapid revision. The concepts of this chapter reappear constantly in later topics such as integral calculus, differential equations, numerical methods and the analysis of beams and columns, where bending moment and slope are obtained by repeated differentiation of the deflection curve. A candidate who masters differentiation will find that the analytical speed and conceptual clarity gained here are among the strongest assets in the entire mathematics section of civil engineering examinations.