Applied Mathematics

Chapter 5
Differential Calculus

Bachelors Program in Machine Technology
Applied Mathematics   •   Bachelor

Differential Calculus

Introduction

Differential calculus studies how quantities change. In machine technology, change is rarely incidental: position changes with time, cutting speed changes with spindle speed, tool life changes with cutting conditions, and a dimension may change when a design parameter is altered. Differential calculus provides a precise language for describing these changes and a practical method for prediction, optimization, and control.

A derivative measures instantaneous rate of change. It can represent velocity when position changes with time, acceleration when velocity changes with time, material-removal sensitivity when a process parameter changes, or the slope of a geometric profile. The same mathematical idea therefore connects mechanics, manufacturing, design, and process engineering.

This chapter develops limits, continuity, derivatives, approximation, related rates, curvature, and extrema. Applications emphasize velocity, acceleration, machining parameters, and design sensitivity.

Learning Objectives

After studying this chapter, you should be able to:

  1. Explain limits and continuity and evaluate important limits.
  2. Interpret the derivative as a slope and an instantaneous rate of change.
  3. Differentiate algebraic, trigonometric, exponential, and composite functions.
  4. Use implicit differentiation and logarithmic differentiation where appropriate.
  5. Apply derivatives to velocity, acceleration, machining calculations, and design sensitivity.
  6. Estimate values using linearization and differentials.
  7. Solve related-rate problems with consistent units.
  8. Determine extrema and use the first- and second-derivative tests.
  9. Interpret curvature and its relevance to tool-path design.
  10. Recognize assumptions, measurement limitations, and safe engineering practice.

1. Functions and Limits

A function assigns each permitted input exactly one output. If a machine component’s displacement is described by s = f(t), then t is time and s is displacement. The set of permitted inputs is the domain, and the possible outputs form the range.

The limit of f(x) as x approaches a describes the value approached by the function, whether or not the function is defined at a. It is written as:

limx→a f(x) = L

Here, L is the limiting value. A two-sided limit exists only when the left-hand and right-hand limits agree:

limx→a f(x) = L if and only if limx→a^- f(x) = limx→a^+ f(x) = L

Limits are evaluated by direct substitution when the function is continuous. If substitution gives an indeterminate form such as 0/0, algebraic simplification, factoring, rationalization, or a standard limit may be required.

Worked Example 1: A removable discontinuity

Evaluate limx→2(x2−4)/(x−2).

Factoring gives:

(x²−4)/(x−2) = ((x−2)(x+2))/(x−2) = x+2, x ≠ 2

Therefore:

limx→2 (x²−4)/(x−2) = limx→2(x+2) = 4

The original expression is undefined at x=2, but its limit exists. This is a removable discontinuity.

Important limit laws

When the individual limits exist, sums, differences, products, and quotients obey the usual algebraic laws. Two frequently used trigonometric limits are:

limx→0 (sin x)/x = 1

and

limx→0 (1−cos x)/x = 0

Angles in these formulas must be measured in radians. Unit consistency is essential: a trigonometric argument is dimensionless.

2. Continuity

A function is continuous at x=a if all three conditions hold:

  1. f(a) is defined.
  2. limx→af(x) exists.
  3. limx→af(x)=f(a).

Polynomials, exponential functions, and trigonometric functions are continuous on their natural domains. Rational functions are continuous wherever their denominators are nonzero. Continuity is important in engineering models because it indicates that small input changes produce small output changes, although continuity alone does not guarantee a small rate of change.

The Intermediate Value Theorem states that if f is continuous on [a,b]], then every value between f(a) and f(b) is achieved somewhere in the interval. This supports numerical methods for locating dimensions, temperatures, or operating points that satisfy a specified condition.

3. The Derivative

The derivative is defined by the limit of the difference quotient:

f'(x) = limh→0 [f(x+h)−f(x)]/h

The variable h represents a small input change. The quotient is an average rate of change over an interval; the limit produces the instantaneous rate of change. Geometrically, f'(a) is the slope of the tangent line to the graph at x=a.

The units of a derivative are output units divided by input units. If displacement is measured in metres and time in seconds, then velocity has units m/s. If a cutting-force model gives force in newtons as a function of feed in mm/rev, the derivative has units N/(mm/rev).

The tangent-line equation at x=a is:

y−f(a) = f'(a)(x−a)

Derivative from first principles

For f(x)=x²,

f'(x) = limh→0 [(x+h)²−x²]/h
= limh→0 [2xh+h²]/h
= limh→0(2x+h) = 2x

Thus, the slope of y=x² at x=3 is 6.

4. Differentiation Rules

The following rules apply where the functions are differentiable.

Function or operationDerivative
Constant c0
xnnxn−1
cf(x)cf'(x)
f(x)±g(x)f'(x)±g'(x)
f(x)g(x)f'g+fg'
f/g(f'g−fg')/g², g≠0
sin xcos x
cos x−sin x
exex
ln x1/x, x>0

For a composite function, the chain rule is:

(d/dx) f(g(x)) = f'(g(x))g'(x)

Worked Example 2: Product and chain rules

Let y=(3x²+1)4 sin x. Define u=(3x²+1)4 and v=sin x. Then:

y' = u'v + uv'
= [24x(3x²+1)3]sin x + (3x²+1)4 cos x

The factor 24x results from the chain rule.

Implicit differentiation

Sometimes y is not isolated. If:

x² + y² = r²

where r is constant, differentiating with respect to x gives:

2x + 2y(dy/dx) = 0

Therefore:

dy/dx = −x/y, y ≠ 0

This is useful for circular profiles and constrained mechanisms.

5. Higher Derivatives and Motion

If position is s(t), velocity and acceleration are:

v(t) = ds/dt
a(t) = dv/dt = d²s/dt²

Position may be measured in m, velocity in m/s, and acceleration in m/s². If acceleration is positive, velocity is increasing; however, an object may be slowing down when velocity is negative and acceleration is positive. The signs must therefore be interpreted together.

Worked Example 3: Position, velocity, and acceleration

Suppose a tool carriage has position:

s(t)=0.02t³−0.30t²+2t metres

for time t in seconds. Then:

v(t)=0.06t²−0.60t+2 m/s

and

a(t)=0.12t−0.60 m/s²

At t=5 s:

v(5)=0.06(25)−0.60(5)+2=0.5 m/s
a(5)=0.12(5)−0.60=0 m/s²

The carriage is moving at 0.5 m/s and has zero instantaneous acceleration at that time.

6. Linearization and Differentials

When a function is differentiable near x=a, its tangent line provides a local approximation:

f(x) ≈ f(a)+f'(a)(x−a)

This is called linearization. It is reliable for sufficiently small changes and when the function has no sharp local curvature in the interval of interest.

The differential form is:

dy = f'(x)dx

For a small input error ∆x, the output error is approximately:

∆y ≈ f'(x)∆x

Worked Example 4: Approximation

Estimate √{4.08}. Choose f(x)=√x, a=4, so f(4)=2 and f'(x)=1/(2√x). Hence f'(4)=1/4.

√4.08 ≈ 2 + (1/4)(0.08) = 2.02

The actual value is approximately 2.0199, showing that the linear estimate is accurate in this case.

For measurement uncertainty, if diameter D has uncertainty ±0.02 mm and area is A=πD²/4, then:

dA/dD = πD/2

so the approximate area uncertainty is |∆A|≈(πD/2)|∆D|. This is an estimate, not a guarantee; it assumes small errors and a differentiable model.

7. Related Rates

A related-rate problem involves quantities that vary with a common independent variable, usually time. The method is:

  1. Define variables and units.
  2. Write a geometric or physical relationship.
  3. Differentiate with respect to time.
  4. Substitute known values only after differentiation.
  5. Check units and interpret the sign.

Worked Example 5: Changing cylindrical volume

A cylindrical coolant tank has fixed radius r=0.5 m. Its height increases at dh/dt=0.02 m/s. The volume is:

V=πr²h

Since r is constant:

dV/dt = πr²(dh/dt)

Thus:

dV/dt = π(0.5)²(0.02) = 0.005π ≈ 0.0157 m³/s

The units are cubic metres per second, as required.

If the radius also changes, the general result is:

dV/dt = 2πrh(dr/dt) + πr²(dh/dt)

Both contributions must then be included.

8. Machining Applications

Cutting speed and spindle speed

For turning, the cutting speed at the workpiece surface is commonly modeled by:

V = πDN/1000

when D is diameter in mm, N is spindle speed in rev/min, and V is cutting speed in m/min. The factor 1000 converts mm to m. This relationship assumes the relevant diameter is known and that spindle speed is sufficiently steady.

If diameter is fixed, the sensitivity of cutting speed to spindle speed is:

∂V/∂N = πD/1000

If spindle speed is fixed:

∂V/∂D = πN/1000

These partial derivatives quantify local sensitivity.

Feed rate

A simple milling feed-rate model is:

F = fz z N

where F is table feed in mm/min, fz is feed per tooth in mm/tooth, z is the number of teeth, and N is spindle speed in rev/min. This model assumes constant feed per tooth and effective engagement of the stated teeth.

For turning, a basic axial feed-rate relation is:

F = fN

where f is feed per revolution in mm/rev. Actual production planning must also consider tool geometry, workpiece material, machine power, rigidity, coolant, and tool-condition limits.

Worked Example 6: Sensitivity of cutting speed

A turning operation uses D=50 mm and N=1200 rev/min. Then:

V = π(50)(1200)/1000 = 60π ≈ 188.5 m/min

If spindle speed increases by 10 rev/min, the local change in cutting speed is:

∆V ≈ (πD/1000)∆N = (50π/1000)(10) = 0.5π ≈ 1.57 m/min

Because the relation is exactly linear in N, this change is exact for fixed diameter, not merely approximate.

9. Extrema and Optimization

A local maximum is a point where function values nearby are no greater; a local minimum is a point where nearby values are no smaller. An interior local extremum of a differentiable function must satisfy:

f'(c)=0

Such a point is called critical. Points where the derivative does not exist can also be critical, provided the function is defined there. To find absolute extrema on a closed interval [a,b], evaluate the function at all critical points in the interval and at both endpoints.

First-derivative test

If f' changes from positive to negative at c, the function has a local maximum. If it changes from negative to positive, it has a local minimum. If no sign change occurs, no local extremum is established.

Second-derivative test

If f'(c)=0 and f''(c)>0, then c is a local minimum. If f''(c)<0, it is a local maximum. If f''(c)=0, the test is inconclusive.

Worked Example 7: Minimum material for a container

Consider an open-top rectangular box with square base side x and fixed volume V. Its height is h=V/x². The surface area is:

A=x²+4xh=x²+4V/x, x>0

Differentiating:

dA/dx=2x−4V/x²

Set the derivative to zero:

2x−4V/x²=0 → 2x³=4V → x³=2V

Therefore:

x=(2V)1/3

Since d²A/dx²=2+8V/x³>0 for x>0, this is a minimum. In real design, sheet thickness, bend allowances, structural stiffness, tolerances, and manufacturing cost may alter the objective function.

10. Curvature and Tool-Path Design

The slope describes direction; curvature describes how rapidly direction changes. For a plane curve y=f(x), curvature is:

κ = |f''(x)|/[1+(f'(x))²]3/2

The radius of curvature is:

ρ=1/κ

where κ has units of inverse length and ρ has units of length. The formula assumes a twice-differentiable curve represented as y=f(x). Large curvature means a small radius of curvature and a sharper bend.

For a circular arc of radius R, curvature is constant:

κ=1/R

In CNC tool-path planning, excessive curvature can require rapid axis acceleration, reduce attainable feed rate, or cause contour error. A practical path should therefore satisfy machine limits on velocity, acceleration, jerk, tool radius, and surface-finish requirements. Mathematical smoothness alone does not guarantee manufacturability.

11. An Illustrative Case: Feed Optimization for a Finishing Pass

Background

A machine shop is finishing a mild-steel component. Increasing feed rate reduces cycle time but may increase surface roughness and tool wear. The process engineer uses a simplified performance index to identify a reasonable operating point.

Problem

Let the estimated cost index be:

C(f)=0.8/f + 0.04f², f>0

where f is feed in mm/rev and C is a dimensionless index combining time and wear penalties. This is an illustrative model, not a universal machining law.

Analysis

Differentiate:

C'(f)=−0.8/f²+0.08f

Set C'(f)=0:

0.08f = 0.8/f²
→ 0.08f³=0.8
→ f³=10
→ f≈2.154 mm/rev

The second derivative is:

C''(f)=1.6/f³+0.08>0 for f>0

Thus the stationary point is a minimum for this model. The result must be checked against allowable roughness, machine capability, tool manufacturer limits, spindle power, workholding rigidity, and safety procedures. A mathematically optimal value outside those constraints is not an acceptable process setting.

Outcome and learning points

The model identifies a candidate feed, but engineering validation requires cutting trials or validated process data. The case demonstrates that differentiation supports decisions; it does not replace experimentation, measurement, or professional judgment. It also illustrates the importance of stating the domain f>0 and treating the model as an approximation.

12. Limitations, Safety, and Professional Practice

Differential models are local descriptions. A derivative at one operating point may not predict behavior after a tool change, material change, thermal expansion, chatter onset, or control-system saturation. Data noise can make numerical derivatives unstable because differentiation amplifies high-frequency measurement errors. Filtering and calibrated sensors may be necessary, but excessive filtering can conceal real process changes.

Engineering calculations should use consistent units, retain sufficient significant figures during intermediate steps, and report realistic precision in final results. A calculated optimum must be bounded by machine specifications and risk controls. No derivative-based recommendation should override guarding, lockout procedures, tool ratings, or relevant standards.

Computer algebra, spreadsheets, and numerical software are valuable for differentiation and optimization, particularly for complex models. However, software output must be checked by dimensional analysis, limiting cases, independent calculation, and physical interpretation. AI-assisted tools can suggest formulas or code, but responsibility for assumptions, validation, traceability, and safe implementation remains with the engineer.

Chapter Summary

Differential calculus formalizes change through limits and derivatives. Limits define the behavior of functions near a point, while continuity ensures agreement between a function’s value and its limiting value. The derivative is both the tangent slope and instantaneous rate of change, with units determined by output divided by input.

Product, quotient, power, and chain rules make differentiation practical for engineering models. Higher derivatives describe acceleration and curvature. Linearization and differentials provide local approximations and error estimates. Related-rate analysis connects changing quantities through a common variable and requires careful timing of substitution and unit checking.

In machine technology, derivatives describe velocity, acceleration, cutting-speed sensitivity, feed-rate effects, dimensional error propagation, and tool-path curvature. Critical points and derivative tests support optimization, but results must be tested against physical constraints, measurement uncertainty, machine capability, safety requirements, and model validity.

Key Terms

Limit: The value a function approaches as its input approaches a specified point.

Continuity: The property that a function is defined, has a limit, and equals that limit at a point.

Derivative: The instantaneous rate of change or tangent slope of a function.

Difference quotient: The average rate of change used to define a derivative.

Tangent line: The straight line that locally approximates a curve at a point.

Chain rule: A rule for differentiating a composite function.

Implicit differentiation: Differentiation of an equation in which the dependent variable is not isolated.

Velocity: The derivative of position with respect to time.

Acceleration: The derivative of velocity with respect to time.

Linearization: Approximation of a function by its tangent line.

Differential: A small estimated change represented by a derivative times an input change.

Related rates: Analysis of rates of change connected by an equation.

Critical point: A point where the derivative is zero or does not exist, with the function defined.

Local maximum: A value no smaller than nearby function values.

Local minimum: A value no greater than nearby function values.

Curvature: A measure of how rapidly a curve changes direction.

Radius of curvature: The reciprocal of curvature.

Sensitivity: The change in an output associated with a small input change.

Linear model: A model in which output changes proportionally with an input, locally or globally.

Review Questions

Short Answer Questions

  1. Define the derivative using a limit and explain its geometric meaning.
  2. State the three conditions required for continuity at a point.
  3. Distinguish velocity from acceleration and give their SI units.
  4. What is the purpose of linearization?
  5. Why must units be checked in a related-rate calculation?

Long Answer Questions

  1. Explain the power, product, quotient, and chain rules, giving one engineering-oriented example of each.
  2. Derive the velocity and acceleration functions for a general cubic position function.
  3. Explain the first- and second-derivative tests and discuss when the second-derivative test is inconclusive.
  4. Derive the cutting-speed sensitivity with respect to spindle speed for turning.
  5. Discuss how curvature affects CNC tool-path planning and why mathematical optimization must be constrained by machine capability.

Analytical / Application Questions

  1. A carriage position is s(t)=0.05t³−0.4t²+1.5t m. Determine velocity and acceleration at t=4 s and interpret the signs.
  2. A turning operation uses a 40 mm diameter at 1500 rev/min. Calculate cutting speed and estimate the change in cutting speed for a 25 rev/min increase.
  3. For C(x)=x²+12/x, x>0, find the critical point, classify it, and explain one practical constraint that could make the mathematical optimum unsuitable.

Multiple Choice Questions with Answers

Question 1

Which expression defines the derivative of f at x?

A. limh→0[f(x+h)−f(x)]/h

B. limh→∞[f(x+h)−f(x)]/h

C. f(x)/x

D. f(x+h)+f(x)

Correct Answer: A. limh→0[f(x+h)−f(x)]/h

Question 2

If position is measured in metres and time in seconds, what are the units of the second derivative of position?

A. m

B. m/s

C. m/s²

D. s/m

Correct Answer: C. m/s²

Question 3

For V=πDN/1000, with D in mm and N in rev/min, what is the unit of V?

A. mm/rev

B. m/min

C. rev/m

D. m/s²

Correct Answer: B. m/min

Question 4

The derivative of sin x is:

A. −sin x

B. cos x

C. tan x

D. 1/sin x

Correct Answer: B. cos x

Question 5

If f'(c)=0 and f''(c)>0, the second-derivative test identifies:

A. A local maximum

B. A local minimum

C. A discontinuity

D. An inflection point necessarily

Correct Answer: B. A local minimum

Question 6

Using linearization of √x at x=4, what is the estimate of √4.08?

A. 1.98

B. 2.00

C. 2.02

D. 2.08

Correct Answer: C. 2.02

Question 7

A cylindrical tank has fixed radius. If its height increases, which relationship is used to find the volume rate?

A. V=πr²h

B. V=2πr

C. V=r/h

D. V=πr+h

Correct Answer: A. V=πr²h

Question 8

For a turning operation with D=50 mm and N=1200 rev/min, the cutting speed is approximately:

A. 37.7 m/min

B. 60.0 m/min

C. 188.5 m/min

D. 60000 m/min

Correct Answer: C. 188.5 m/min

Question 9

For y=x², the curvature at x=0 is:

A. 0

B. 1

C. 2

D. Undefined

Correct Answer: C. 2

Question 10

A derivative-based optimum is acceptable in production only when it:

A. Has the largest possible input value

B. Ignores machine limitations

C. Is validated against constraints and physical requirements

D. Uses no assumptions

Correct Answer: C. Is validated against constraints and physical requirements

Applied Mathematics
Chapter 5 of 15