Integral Calculus and the Fundamental TheoremIntroductionDifferential calculus describes instantaneous change; integral calculus describes accumulation. In mechatronics, accumulation appears whenever a quantity is obtained by adding many small contributions: position from velocity, charge from current, energy from power, mass from flow rate, or total error from a control signal. Integral calculus provides both a conceptual language for accumulation and computational tools for evaluating it. This chapter develops antiderivatives, definite and indefinite integrals, Riemann sums, properties of integration, substitution, and the Fundamental Theorem of Calculus. Particular attention is given to interpretation, assumptions, units, and engineering applications. Learning ObjectivesBy the end of this chapter, you should be able to: - Explain integration as accumulation and as the inverse of differentiation.
- Approximate accumulated quantities using Riemann sums.
- Distinguish definite and indefinite integrals.
- Apply basic integration rules and properties.
- Use substitution to evaluate composite-function integrals.
- State and apply both parts of the Fundamental Theorem of Calculus.
- Interpret integrals in mechatronics and verify answers using units and physical reasoning.
1. Accumulation and AntiderivativesSuppose a robot moves with velocity v(t) metres per second. Over a short interval of duration ∆t, its displacement is approximately v(t)∆t. If velocity varies, the total displacement over [a,b ] is found by adding many such contributions. An antiderivative reverses differentiation. A function F(x) is an antiderivative of f(x) on an interval if F′(x) = f(x) For example, since d(x3/3)/dx = x2, an antiderivative of x2 is x3/3. However, it is not the only one: every function F(x) = x³/3 + C has derivative x2, where C is an arbitrary constant. The constant is essential because differentiation removes constants. Basic antiderivative rulesFor a constant k and exponent n ≠ −1, ∫ kxⁿ dx = kxⁿ⁺¹/(n+1) + C Other important rules are: ∫ 1/x dx = ln|x| + C ∫ eˣ dx = eˣ + C ∫ cos x dx = sin x + C ∫ sin x dx = −cos x + C The power rule does not apply when n = −1; that case produces a logarithm. In trigonometric formulas, angles are measured in radians. Integration is linear: ∫ [αf(x) + βg(x)] dx = α∫ f(x) dx + β∫ g(x) dx where α and β are constants and the functions are integrable on the domain under consideration. Worked Example 1: An antiderivativeFind all antiderivatives of f(t) = 6t2 − 4t + 5. Integrating term by term gives F(t) = 2t³ − 2t² + 5t + C Differentiation verifies the result: F′(t) = 6t² − 4t + 5 If a physical initial condition is supplied, it determines C. For example, if position is s(0) = 2 metres and velocity is v(t) = 6t² − 4t + 5 metres per second, then s(t) = 2t³ − 2t² + 5t + C and s(0)=C=2. Thus s(t)=2t³−2t²+5t+2 metres. 2. Definite Integrals and Riemann SumsA definite integral represents net accumulation over a closed interval. Let f be bounded on [a,b]]. Divide the interval into n subintervals of equal width ∆x = (b−a)/n Choose a sample point xi^* in each subinterval. The corresponding Riemann sum is Σᵢ₌₁ⁿ f(xᵢ*)∆x If these sums approach a unique limit as n → ∞, the function is Riemann integrable and ∫ₐᵇ f(x) dx = limₙ→∞ Σᵢ₌₁ⁿ f(xᵢ*)∆x The symbol dx indicates the limiting width of the small intervals. The definite integral is a number, not a family of functions. If f(x) has units of metres per second and dx has units of seconds, then ∫ f(x)dx has units of metres. A definite integral is signed. Regions below the horizontal axis contribute negatively. Consequently, it gives net signed area or net accumulation, not necessarily total geometric area. Total area requires integration of |f(x)| or a suitable partition at zeros of f]. Left, right, and midpoint approximationsFor a partition with width ∆x, the left approximation uses left endpoints, the right approximation uses right endpoints, and the midpoint approximation uses subinterval midpoints. For smooth functions, midpoint approximations are often more accurate than left or right approximations for the same number of subintervals, although exact error depends on the function. Worked Example 2: A Riemann-sum estimateApproximate ∫₀² t² dt using a right-endpoint sum with n=4. Here ∆t=0.5, and the right endpoints are 0.5, 1, 1.5, 2. Therefore, R₄ = 0.5[(0.5)² + 1² + (1.5)² + 2²] R₄ = 0.5[0.25 + 1 + 2.25 + 4] = 3.75 The exact value, obtained later using the Fundamental Theorem, is 8/3 ≈ 2.667. The right sum overestimates because t² is increasing on [0,2]]. 3. Definite and Indefinite IntegralsThe indefinite integral ∫ f(x) dx = F(x) + C denotes the family of all antiderivatives of f. It is a function family and includes an arbitrary constant. The definite integral ∫ₐᵇ f(x) dx is a single accumulated value. It has no arbitrary constant because constants cancel when endpoint values are subtracted. The two concepts are connected by the Fundamental Theorem of Calculus. Important properties include: ∫ₐᵃ f(x) dx = 0 ∫ₐᵇ f(x) dx = −∫ᵇₐ f(x) dx ∫ₐᶜ f(x) dx = ∫ₐᵇ f(x) dx + ∫ᵇᶜ f(x) dx The last property holds whenever the integrals exist and is useful for splitting a process into stages. If f(x) ≤ g(x) throughout [a,b]], then ∫ₐᵇ f(x) dx ≤ ∫ₐᵇ g(x) dx Also, if m ≤ f(x) ≤ M on the interval, then m(b−a) ≤ ∫ₐᵇ f(x) dx ≤ M(b−a) These inequalities provide useful engineering bounds and plausibility checks. 4. The Fundamental Theorem of CalculusThe Fundamental Theorem has two related parts. Part I: Differentiating an accumulation functionIf f is continuous on an interval containing a and x, define G(x) = ∫ₐˣ f(t) dt Then G′(x) = f(x) The variable t is a dummy variable of integration; x is the variable endpoint. This theorem states that accumulation from a fixed starting point has instantaneous rate equal to the current integrand. More generally, if u(x) is differentiable and f is continuous, then d/dx [∫ₐᵘ⁽ˣ⁾ f(t)dt] = f(u(x))u′(x) This is the chain rule applied to an accumulation function. Part II: Evaluating a definite integralIf F is any antiderivative of continuous f on [a,b]], then ∫ₐᵇ f(x) dx = F(b) − F(a) This result converts a limiting accumulation problem into endpoint evaluation. Worked Example 3: Evaluation by the theoremEvaluate ∫₁³ (2x + 1) dx An antiderivative is F(x)=x²+x. Hence ∫₁³ (2x+1)dx = [x²+x]₁³ = (9+3)−(1+1)=10 If x is measured in seconds and 2x+1 in metres per second, the result is 10 metres. Worked Example 4: Variable upper limitLet H(x) = ∫₂ˣ (t³ + 4t)dt Because the integrand is continuous, H′(x) = x³ + 4x No full integration is needed to find the derivative. 5. SubstitutionSubstitution is the integration counterpart of the chain rule. Suppose u=g(x) is differentiable. Then du=g′(x)dx, and ∫ f(g(x))g′(x) dx = ∫ f(u) du For a definite integral, the limits must also be changed when the variable changes: ∫ₐᵇ f(g(x))g′(x) dx = ∫g(a)g(b) f(u) du Alternatively, one may substitute back to x before applying the original limits, but mixing variables and limits is an error. Worked Example 5: Indefinite substitutionEvaluate ∫ 2x cos(x²) dx Set u=x². Then du=2x dx, so ∫ 2x cos(x²)dx = ∫ cos u du = sin u + C = sin(x²)+C Worked Example 6: Definite substitutionEvaluate ∫₀¹ 2x ex² dx Let u=x². The limits become u=0 and u=1. Therefore, ∫₀¹ 2x ex²dx = ∫₀¹ eᵘdu = [eᵘ]₀¹ = e−1 Changing the limits avoids the need to substitute back. 6. Applications in MechatronicsPosition, velocity, and accelerationThe relationships among position s(t), velocity v(t), and acceleration a(t) are v(t) = ds/dt a(t) = dv/dt = d²s/dt² Thus, s(t₂)−s(t₁) = ∫t₁t₂ v(t)dt and v(t₂)−v(t₁) = ∫t₁t₂ a(t)dt Displacement is signed. Distance travelled is obtained by integrating speed |v(t)|: Distance = ∫t₁t₂ |v(t)|dt Electrical charge and currentIf current i(t) is measured in amperes, then charge accumulated between t₁ and t₂ is q(t₂)−q(t₁) = ∫t₁t₂ i(t)dt Since one ampere equals one coulomb per second, the units are coulombs. If i(t) is constant, this reduces to ∆q=i∆t. Energy and powerIf power P(t) is measured in watts, energy is E(t₂)−E(t₁) = ∫t₁t₂ P(t)dt Because one watt equals one joule per second, the result has units of joules when time is in seconds. For a motor, integrating measured electrical power estimates energy consumption; integrating mechanical power estimates delivered mechanical energy. Sensor data and numerical integrationReal control systems often provide sampled data rather than an exact function. For samples separated by constant interval ∆t, a trapezoidal estimate is ∫t₀tₙ f(t)dt ≈ ∆t[½f(t₀) + f(t₁)+⋯+f(tₙ₋₁)+½f(tₙ)] This formula assumes equally spaced samples. For nonuniform samples, each interval must use its own width: ∫ f(t)dt ≈ Σᵢ [(tᵢ₊₁−tᵢ)(fᵢ+fᵢ₊₁)/2] Sampling rate, sensor noise, bias, saturation, and numerical drift affect the result. Integration of a small constant bias can grow steadily with time, which is why inertial navigation systems require calibration and sensor fusion. 7. Illustrative Case: Estimating Robot Travel from Encoder DataBackgroundConsider a mobile robot whose wheel encoder estimates forward velocity during a 4-second interval. The measured velocities are: | Time (s) | 0 | 1 | 2 | 3 | 4 |
|---|
| Velocity (m/s) | 0.0 | 0.8 | 1.4 | 1.2 | 0.5 |
ProblemEstimate the forward displacement using the trapezoidal rule and assess the meaning of the result. Analysis and solutionThe sampling interval is 1 second. Applying the formula, s ≈ 1[½(0.0)+0.8+1.4+1.2+½(0.5)] s ≈ 0.8+1.4+1.2+0.25 = 3.65 m All velocities are nonnegative, so displacement and distance are both approximately 3.65 m. If the robot had reversed direction, signed velocity would have produced net displacement, while distance would require integrating the absolute velocity. Engineering interpretationThe estimate is not exact because velocity between samples is approximated by straight-line segments. Accuracy can be improved by increasing the sampling rate, using calibrated sensors, and checking the result against an independent measurement such as wheel rotation or an optical position sensor. A constant encoder bias of 0.02 m/s over 4 seconds would contribute approximately 0.08 m of displacement error, illustrating how integration accumulates bias. Learning points- A velocity integral produces displacement.
- Units provide a direct validation: (m/s)×s=m.
- Numerical integration is an approximation whose quality depends on sampling and signal quality.
- Net displacement and total distance are different quantities.
8. Common Errors, Limitations, and Best PracticesConfusing area with signed accumulationAn integral below the axis is negative. Do not report it as positive area unless the problem specifically requests geometric area or distance. Omitting the constant of integrationThe constant C must appear in an indefinite integral. It is determined by an initial or boundary condition. Mishandling substitution limitsWhen changing from x to u, either change the limits or substitute back before evaluating. Do not use old limits with the new variable. Ignoring continuity and integrabilityThe Fundamental Theorem applies directly when the integrand is continuous on the relevant interval. Some discontinuous functions remain integrable, but improper integrals and singularities require separate analysis. Ignoring units and initial conditionsAn integral cannot be physically interpreted without identifying the variable of integration and its units. Initial conditions are necessary to reconstruct an absolute state from a rate. Numerical limitationsNumerical integration may suffer from truncation error, round-off error, noisy measurements, nonuniform sampling, and accumulated bias. In embedded systems, engineers should document the integration method, sampling period, numerical precision, and reset or correction strategy. Chapter SummaryIntegral calculus formalizes accumulation. An antiderivative reverses differentiation and is determined up to an arbitrary constant. A definite integral is the limit of Riemann sums and represents signed accumulation over an interval. Its properties include linearity, interval splitting, reversal of limits, and order preservation. The Fundamental Theorem of Calculus connects the two viewpoints: differentiating an accumulation function returns the integrand, and evaluating a definite integral requires subtracting antiderivative values at the endpoints. Substitution extends integration to composite functions and follows from the chain rule. In mechatronics, integration converts velocity to displacement, acceleration to velocity change, current to charge, and power to energy. Real systems use numerical methods such as the trapezoidal rule, where sampling quality, sensor bias, units, and initial conditions must be considered carefully. Key TermsAntiderivative: A function whose derivative equals a specified function. Accumulation: The total obtained by adding contributions over an interval. Definite integral: A signed accumulated value between two bounds. Indefinite integral: The family of all antiderivatives, including an arbitrary constant. Riemann sum: A finite sum used to approximate an integral. Partition: A division of an interval into subintervals. Integrand: The function being integrated. Dummy variable: A variable, such as t, whose name may be changed without altering an integral. Net displacement: Final position minus initial position, obtained by integrating signed velocity. Distance travelled: The integral of speed or absolute velocity. Fundamental Theorem of Calculus: The theorem connecting differentiation and definite integration. Substitution: A change of variable used to simplify an integral. Continuity: The property that a function has no breaks or jumps at a point or interval. Trapezoidal rule: A numerical integration method based on trapezoid-shaped approximations. Sampling interval: The time or spatial separation between successive measurements. Bias: A persistent systematic measurement error. Initial condition: A known value used to determine an integration constant. Signed area: Accumulation in which values below the axis contribute negatively. Review Questions5 Short Answer Questions- What is an antiderivative, and why does an indefinite integral include C?
- Define a Riemann sum and explain what happens as the number of subintervals increases.
- State the two parts of the Fundamental Theorem of Calculus.
- What is the difference between displacement and distance travelled?
- Why must limits be changed when substitution is used directly in a definite integral?
5 Long Answer Questions- Explain definite and indefinite integrals, including their notation, interpretation, and engineering units.
- Derive the relationship between position, velocity, and acceleration through integration, including the role of initial conditions.
- Explain the Fundamental Theorem of Calculus and illustrate both parts with suitable examples.
- Compare left-endpoint, right-endpoint, midpoint, and trapezoidal approximations in terms of interpretation and practical use.
- Discuss the effects of sampling rate, sensor noise, and bias when integrating measured mechatronic signals.
3 Analytical / Application Questions- A motor shaft has angular velocity ω(t)=4t−t² rad/s for 0≤t≤3. Determine its angular displacement and explain whether angular distance equals angular displacement.
- A current sensor records i(t)=2+0.5t amperes for 6 seconds. Calculate the charge delivered and verify the units.
- A robot's acceleration is measured numerically over a fixed interval. Design a calculation procedure for estimating velocity change using sampled data, and identify two sources of error and one method of correction.
Multiple Choice Questions with AnswersQuestion 1Which expression represents all antiderivatives of 6x2? A. 2x3+C B. 6x3+C C. 3x2+C D. 2x2+C Correct Answer: A. 2x3+C Question 2What is the exact value of ∫₀² x dx? A. 1 B. 2 C. 3 D. 4 Correct Answer: B. 2 Question 3If F′(x)=f(x), which expression equals ∫ₐᵇ f(x)dx? A. F(a)+F(b) B. F(a)−F(b) C. F(b)−F(a) D. F′(b)−F′(a) Correct Answer: C. F(b)−F(a) Question 4If G(x)=∫₁ˣ (t²+3)dt, what is G′(x)? A. 2x+3 B. x²+3 C. x³/3+3x D. 1²+3 Correct Answer: B. x²+3 Question 5Evaluate ∫ 2x cos(x²)dx. A. cos(x²)+C B. 2sin(x²)+C C. sin(x²)+C D. x² sin(x²)+C Correct Answer: C. sin(x²)+C Question 6If velocity is measured in metres per second, what are the units of ∫ v(t)dt? A. Metres B. Metres per second squared C. Seconds per metre D. Metres squared Correct Answer: A. Metres Question 7For f(x)≥0 on [a,b], what does ∫ₐᵇ f(x)dx represent? A. Only the maximum value of f B. The signed area, which is nonnegative here C. The derivative of f D. The average value without multiplying by interval length Correct Answer: B. The signed area, which is nonnegative here Question 8Using a right-endpoint sum with n=2, what is the approximation to ∫₀² x²dx? A. 1 B. 2 C. 4 D. 5 Correct Answer: C. 4 Question 9Which substitution is most suitable for ∫ 3x² ex³dx? A. u=3x² B. u=x² C. u=ex³ D. u=x³ Correct Answer: D. u=x³ Question 10If current is integrated with respect to time, the result is electrical: A. Power B. Resistance C. Charge D. Voltage Correct Answer: C. Charge
|