Mathematical and Algebraic FoundationsIntroductionDynamic systems in mechatronics are commonly represented by differential equations, difference equations, transfer functions, and state-space models. All of these representations depend on a small set of mathematical ideas: numbers may be complex, variables may be related through functions, approximations may be expressed as series, and multivariable relationships may be organized using matrices and vectors. Eigenvalues and eigenvectors then reveal important system properties such as natural modes, stability, resonance, and decoupling. This chapter reviews these foundations with emphasis on interpretation and engineering use. The focus is not merely computational. A mechatronics engineer must also know when a mathematical operation is valid, what assumptions it makes, and how its result relates to a physical system. Learning ObjectivesBy the end of this chapter, you should be able to: - Represent and manipulate complex numbers in Cartesian, polar, and exponential form.
- Use Euler’s formula to connect exponential, trigonometric, and sinusoidal descriptions.
- Classify functions and explain limits, continuity, and composition.
- Use power and Taylor series to approximate functions and assess convergence.
- Perform matrix operations and calculate determinants and inverses.
- Explain vector spaces, subspaces, span, basis, dimension, and linear independence.
- Determine matrix rank and interpret it in terms of independent information.
- Calculate and interpret eigenvalues and eigenvectors.
- Diagonalize suitable matrices and identify cases in which diagonalization fails.
- Apply these concepts to a dynamic mechatronic system.
1. Complex NumbersThe real-number system is insufficient for solving some polynomial equations. For example, the equation x2 + 1 = 0 has no real solution. The imaginary unit is defined by i = √(-1), i2 = -1 A complex number has the form z = a + bi where a and b are real numbers. The real part is Re(z) = a, and the imaginary part is Im(z) = b. Two complex numbers are equal only when their real and imaginary parts are separately equal. ArithmeticFor z1 = a + bi and z2 = c + di, z1 + z2 = (a + c) + (b + d)i z1z2 = (ac - bd) + (ad + bc)i The complex conjugate of z = a + bi is z^* = a - bi. Since zz^* = a2 + b2, division can be performed by multiplying numerator and denominator by the conjugate: (a + bi)/(c + di) = [(a + bi)(c - di)]/(c2 + d2), c2 + d2 ≠ 0 The modulus, or magnitude, is |z| = √(a2 + b2) It is a nonnegative real number and may be interpreted geometrically as the distance from the origin to the point (a,b) in the complex plane. Polar and exponential formsIf z = a + bi and θ is the argument measured from the positive real axis, then z = r(cos θ + i sin θ) where r = |z|. Euler’s formula states that eiθ = cos θ + i sin θ Thus, z = reiθ The angle must be selected with the correct quadrant, commonly using θ = atan2(b,a). Polar form makes multiplication and division especially simple: z1z2 = r1r2ei(θ1 + θ2) z1/z2 = (r1/r2)ei(θ1 - θ2), r2 ≠ 0 De Moivre’s theorem follows directly: (reiθ)n = rneinθ for integer n. Worked Example 1: Complex representation of a sinusoidConsider z = 3 - 4i. Its magnitude is r = √(32 + (-4)2) = 5 The argument is θ = atan2(-4,3) ≈ -0.927 rad. Therefore, z = 5e-i0.927 = 5(cos(-0.927) + i sin(-0.927)) In electrical and control engineering, a sinusoidal signal may be represented by the real part of a complex exponential: x(t) = Re{Xeiωt} where X is a complex amplitude and ω is angular frequency in rad/s. This is a computational representation; the physical signal remains real. 2. Functions and Their Engineering InterpretationA function assigns each permitted input exactly one output. In notation, y = f(x) The set of permitted inputs is the domain, and the set of possible outputs is the range. In dynamic systems, functions may map time to displacement, input voltage to motor torque, or a vector of states to a derivative vector. Important categories include: - A scalar function maps scalar inputs to scalar outputs.
- A vector-valued function maps a scalar or vector input to a vector output.
- A linear function satisfies f(αx + βy) = αf(x) + βf(y) for all permitted scalars α,β and vectors x,y.
- A nonlinear function violates this superposition property.
- A time-invariant relation does not change when the time origin is shifted.
For example, f(x) = 3x - 2 is affine but not linear because f(0) = -2 ≠ 0. The function f(x) = 3x is linear. Composition and inverse functionsIf g maps x to u and f maps u to y, their composition is (f ∘ g)(x) = f(g(x)) An inverse function f-1 exists on a specified domain when f is one-to-one. Then f-1(f(x)) = x. Care is required: a function may have an inverse only after its domain is restricted. Limits and continuityThe statement limx→a f(x) = L means that values of f(x) approach L as x approaches a. A function is continuous at a when limx→a f(x) = f(a) Continuity is important in physical modeling because abrupt mathematical discontinuities may represent switching, impacts, saturation, or idealized control actions. Such features should be identified rather than inadvertently introduced. 3. Sequences and SeriesA sequence is an ordered list {an}, while a series is the sum of sequence terms: ∑n=0∞ an A series converges if its partial sums approach a finite limit. Convergence is essential when an infinite expansion is used to approximate a physical or computational quantity. Common seriesThe geometric series satisfies ∑n=0∞ rn = 1/(1-r), |r| < 1 The condition |r| < 1 is essential. If |r| ≥ 1, the series does not converge to the stated value. The exponential, sine, and cosine functions have Maclaurin series: ex = ∑n=0∞ xn/n! = 1 + x + x2/2! + x3/3! + ⋯ sin x = ∑n=0∞ (-1)n x2n+1/(2n+1)! cos x = ∑n=0∞ (-1)n x2n/(2n)! These series converge for every real x. For a general function, the Taylor expansion about x = a is f(x) = ∑n=0∞ [f(n)(a)/n!](x-a)n provided the function is sufficiently differentiable and the series converges to the function in the region being used. Truncation produces an approximation, not an identity. Worked Example 2: Local approximationFor small x, cos x ≈ 1 - x2/2 At x = 0.2 rad, this gives cos(0.2) ≈ 1 - 0.04/2 = 0.98. The actual value is approximately 0.98007, so the absolute error is about 0.00007. The approximation is effective because the omitted fourth-order term is small. The angle must be in radians for these series formulas. In engineering, series expansions support linearization, numerical algorithms, sensor calibration, and approximations of nonlinear models near an operating point. 4. Matrices and DeterminantsA matrix is a rectangular arrangement of numbers or symbols. An m × n matrix has m rows and n columns: A = [aij], i = 1,…,m; j = 1,…,n A vector is often treated as a one-column matrix. Matrix notation makes coupled equations compact. For example, [2 1; 1 3][x; y] = [5; 7] represents two simultaneous equations. OperationsAddition requires equal dimensions and is element-by-element. Multiplication AB is defined when the number of columns of A equals the number of rows of B. Its entries are (AB)ij = ∑k=1n aikbkj In general, AB ≠ BA. The identity matrix I satisfies AI = IA = A for compatible dimensions. The transpose is AT, obtained by interchanging rows and columns. Determinants and inversesFor a 2 × 2 matrix, det([a b; c d]) = ad - bc A square matrix is invertible if and only if its determinant is nonzero. For the same 2 × 2 matrix, [a b; c d]-1 = 1/(ad-bc)[d -b; -c a] provided ad - bc ≠ 0. For larger matrices, determinants may be computed by cofactor expansion or elimination, although numerical software generally uses more stable factorization methods. A system Ax = b has a unique solution when A is square and nonsingular. If A is singular, the system may have no solution or infinitely many solutions, depending on b. Worked Example 3: Solving a coupled systemLet A = [2 1; 1 3], b = [5; 7] The determinant is 2×3 - 1×1 = 5, so the matrix is invertible. Its inverse is A-1 = 1/5[3 -1; -1 2] Therefore, x = A-1b = 1/5[3 -1; -1 2][5; 7] = 1/5[8; 9] = [1.6; 1.8] Substitution gives 2(1.6)+1.8=5 and 1.6+3(1.8)=7, confirming the result. 5. Vector Spaces, Span, and Linear IndependenceA vector space is a set closed under vector addition and scalar multiplication and satisfying the standard algebraic rules for these operations. Examples include ℝn, polynomial spaces, and spaces of continuous functions. The span of vectors v1,…,vk is the set of all linear combinations: span{v1,…,vk} = {c1v1 + ⋯ + ckvk : cj are scalars} The vectors are linearly independent if c1v1 + ⋯ + ckvk = 0 implies c1 = ⋯ = ck = 0. If a nonzero combination produces the zero vector, the vectors are dependent. A basis is a linearly independent spanning set. The number of vectors in any basis is the dimension of the vector space. In state-space modeling, a basis corresponds to a choice of state coordinates. Different bases may describe the same physical system. A subspace is a subset that is itself a vector space. The null space of A is N(A) = {x : Ax = 0} and the column space is the span of the columns of A. 6. Rank and Gaussian EliminationThe rank of a matrix is the dimension of its column space; equivalently, it is the maximum number of linearly independent rows or columns. Row reduction to echelon form reveals the rank through the number of pivots. For an m × n matrix, rank(A) ≤ min(m,n) The rank-nullity theorem states rank(A) + nullity(A) = n where n is the number of columns and nullity is the dimension of the null space. Rank has practical meaning. It indicates how many independent directions or constraints are present. In a sensor system, deficient rank may mean that measurements cannot distinguish all states. In a mechanism, it may indicate a kinematic constraint or singular configuration. For a square matrix, full rank is equivalent to invertibility. For a rectangular system Ax=b, consistency requires that b belong to the column space of A. 7. Eigenvalues and EigenvectorsFor a square matrix A, a nonzero vector v is an eigenvector if Av = λv where λ is the corresponding eigenvalue. Rearranging gives (A - λI)v = 0 A nonzero solution exists only when det(A - λI) = 0 This is the characteristic equation. Its roots are the eigenvalues. Eigenvalues may be real or complex, even when A has only real entries. For a real matrix, nonreal eigenvalues occur in conjugate pairs. Worked Example 4: EigenanalysisLet A = [2 1; 1 2] The characteristic equation is det([2-λ 1; 1 2-λ]) = (2-λ)2 - 1 = 0 Thus λ1 = 3 and λ2 = 1. For λ1=3, (A-3I)v = [-1 1; 1 -1]v = 0 which gives an eigenvector proportional to v1=[1;1]. For λ2=1, an eigenvector is v2=[1;-1]. Direct multiplication verifies Av1=3v1 and Av2=v2. In continuous-time linear systems ẋ = Ax, eigenvalues describe modal behavior eλt. A mode with negative real part decays, one with positive real part grows, and one with zero real part requires further analysis. In discrete-time systems xk+1=Axk, stability is associated with eigenvalues inside the unit circle, |λ|<1, under the usual asymptotic-stability conditions. 8. DiagonalizationA matrix is diagonalizable if there is an invertible matrix P such that A = PDP-1 where D is diagonal. The columns of P are eigenvectors, and the corresponding diagonal entries of D are eigenvalues. Equivalently, P-1AP = D Diagonalization is useful because powers and exponentials become simpler: Ak = PDkP-1 and, when defined, eAt = PeDtP-1 For diagonal D = diag(λ1,…,λn), Dk = diag(λ1k,…,λnk). An n × n matrix with n linearly independent eigenvectors is diagonalizable. Distinct eigenvalues guarantee independent eigenvectors, but repeated eigenvalues do not guarantee them. For example, A = [1 1; 0 1] has only the eigenvalue λ=1 and only one independent eigenvector direction, so it is not diagonalizable. Such matrices require Jordan-form methods or direct matrix-exponential techniques. 9. Applied Case: A Two-State Mechatronic ModelBackgroundConsider an illustrative linearized model of a coupled positioning mechanism with state vector x=[x1;x2]. The first state may represent a normalized displacement and the second a normalized velocity or an interacting actuator state. Around an operating point, suppose the discrete-time model is xk+1 = Axk, A = [0.8 0.2; 0.1 0.7] The entries are dimensionless transition coefficients for a chosen sampling interval. ProblemDetermine whether the unforced model is asymptotically stable and identify its dominant mode. AnalysisThe characteristic equation is det(A-λI) = (0.8-λ)(0.7-λ)-0.02 Expanding, λ2 - 1.5λ + 0.54 = 0 The roots are λ1=0.9 and λ2=0.6. Both satisfy |λ|<1, so the model is asymptotically stable in discrete time. The eigenvalue 0.9 is closest to the unit circle and therefore represents the slow, dominant decay mode. For λ1=0.9, an eigenvector satisfies [-0.1 0.2; 0.1 -0.2]v = 0 so one choice is v1=[2;1]. For λ2=0.6, one choice is v2=[1;-1]. With P = [2 1; 1 -1], D = [0.9 0; 0 0.6] we have A=PDP-1. In modal coordinates z=P-1x, the system becomes zk+1=Dzk, so the two coupled states are represented as two independent modal sequences. Outcome and engineering interpretationAny initial condition can be decomposed into the two eigenvector directions. The component along v1 decays as 0.9k, while the component along v2 decays faster as 0.6k. This analysis helps estimate settling behavior and identify which mode a controller must suppress most strongly. This is an illustrative case, not a complete physical design. A real model would require units, sampling-period information, actuator limits, sensor noise, parameter uncertainty, and validation against experimental data. 10. Limitations, Numerical Practice, and Professional UseExact symbolic calculations are valuable for understanding, but engineering models often contain measured parameters and floating-point numbers. Near-singular matrices can produce large numerical errors. A small determinant alone is not a complete measure of numerical reliability; condition numbers and appropriate matrix factorizations should also be considered. Best practice includes: - Use radians in calculus, Taylor expansions, and angular-frequency formulas.
- Check matrix dimensions before multiplying.
- Avoid explicitly computing A-1 when solving Ax=b numerically; use a reliable linear solver or factorization.
- Verify eigenpairs by evaluating the residual Av-λv.
- Preserve units when constructing state variables and system matrices.
- Distinguish a mathematical model from the physical system it approximates.
- Report assumptions, operating point, sampling time, and parameter sources.
- Use software as a verification tool, not as a substitute for interpretation.
In safety-critical mechatronic systems, incorrect eigenvalue or rank conclusions can lead to unstable controllers or undetected sensor deficiencies. Independent checks, simulation, testing, and documented review are therefore part of responsible engineering practice. Chapter SummaryComplex numbers extend the real numbers and provide a compact representation of magnitude and phase. Euler’s formula connects complex exponentials with sine and cosine, enabling efficient sinusoidal analysis. Functions describe mappings between variables, while series provide controlled approximations when convergence and truncation error are understood. Matrices organize coupled equations and transformations. Determinants characterize invertibility for square matrices, and rank measures independent rows, columns, constraints, or information. Vector spaces provide the language of span, basis, dimension, and linear independence. Eigenvalues and eigenvectors identify special directions in which a linear transformation acts by simple scaling. If enough independent eigenvectors exist, diagonalization transforms a coupled model into independent modal coordinates. These ideas form the algebraic foundation of state-space modeling, stability analysis, numerical simulation, robotics, signal processing, control engineering, and dynamic-system design. Key TermsComplex number: A number of the form a+bi, where a,b are real. Complex conjugate: The number obtained by changing a+bi to a-bi. Modulus: The magnitude |z| of a complex number. Euler’s formula: The identity eiθ=cosθ+i sinθ. Function: A mapping that assigns each permitted input exactly one output. Continuity: The property that a function’s limit at a point equals its value there. Sequence: An ordered list of terms indexed by an integer. Series: The sum of terms in a sequence. Taylor series: A derivative-based expansion of a function about a point. Matrix: A rectangular array of numbers or symbols. Identity matrix: A square matrix that leaves compatible vectors unchanged. Determinant: A scalar associated with a square matrix that indicates, among other properties, invertibility. Vector space: A set closed under vector addition and scalar multiplication. Basis: A linearly independent spanning set. Rank: The dimension of a matrix’s column space. Null space: The set of vectors mapped to zero by a matrix. Eigenvalue: A scalar satisfying Av=λv for a nonzero vector v. Eigenvector: A nonzero vector whose direction is unchanged by a matrix transformation. Diagonalization: Representation of a matrix as A=PDP-1. Modal coordinate: A coordinate associated with an eigenvector and its system mode. Review QuestionsShort Answer Questions- Define the modulus and complex conjugate of z=a+bi.
- State Euler’s formula and explain why it is useful in engineering.
- What condition makes a square matrix invertible?
- Define linear independence in terms of a linear combination.
- What does matrix rank measure?
Long Answer Questions- Explain Cartesian, polar, and exponential forms of a complex number and derive the multiplication rule in polar form.
- Explain Taylor-series approximation, including the importance of convergence, truncation, and radians.
- Describe the relationship among column space, null space, rank, and nullity.
- Derive the characteristic equation for a 2 × 2 matrix and explain how its roots are used.
- Explain diagonalization and discuss why repeated eigenvalues may prevent diagonalization.
Analytical / Application Questions- For A=[4 1; 2 3], calculate the eigenvalues and determine whether the matrix is diagonalizable.
- A discrete-time model has eigenvalues 0.98, 0.7, and 1.02. Assess asymptotic stability and identify the mode requiring engineering attention.
- A sensor matrix has rank 2 but three columns. Use rank-nullity to determine the nullity and explain what the result could mean for state reconstruction.
Multiple Choice Questions with AnswersQuestion 1Which expression is the complex conjugate of 3-4i? A. 3+4i B. -3+4i C. -3-4i D. 4-3i Correct Answer: A. 3+4i Question 2What is the polar magnitude of 1+i? A. 1 B. √2 C. 2 D. 0 Correct Answer: B. √2 Question 3Euler’s formula states that eiθ equals: A. sinθ+i cosθ B. cosθ-i sinθ C. cosθ+i sinθ D. e^θ(cosθ+sinθ) Correct Answer: C. cosθ+i sinθ Question 4For the geometric series ∑n=0∞rn, which condition guarantees convergence? A. r>1 B. |r|<1 C. r=1 D. |r|=2 Correct Answer: B. |r|<1 Question 5What is the determinant of [2 1; 3 4]? A. 5 B. 8 C. 11 D. −5 Correct Answer: A. 5 Question 6A set of vectors is linearly independent when: A. Every vector has unit length B. Their span contains only the zero vector C. Only the trivial linear combination equals the zero vector D. All vectors are mutually perpendicular Correct Answer: C. Only the trivial linear combination equals the zero vector Question 7If a matrix has three columns and rank two, what is its nullity? A. 1 B. 2 C. 3 D. 5 Correct Answer: A. 1 Question 8The eigenvalues of a matrix satisfy which equation? A. det(A+λI)=1 B. det(A-λI)=0 C. Aλ=0 D. trace(A-λI)=0 Correct Answer: B. det(A-λI)=0 Question 9A discrete-time linear system is asymptotically stable when, under standard assumptions, its eigenvalues: A. All have positive real parts B. All are greater than one C. All lie strictly inside the unit circle D. All are equal to zero Correct Answer: C. All lie strictly inside the unit circle Question 10A square matrix with a complete set of linearly independent eigenvectors can be: A. Transposed only B. Diagonalized C. Made singular by definition D. Converted only to a zero matrix Correct Answer: B. Diagonalized
|