Problem 6
Question
Exercise 18.3 .6 Interpret the output of the MATLAB program. $$ \begin{array}{l} \mathrm{A}=[0.770 .1 ; 0.0680 .9] \\ \mathrm{T} 1=[\exp (\mathrm{A}) \operatorname{expm}(\mathrm{A})] \\ \mathrm{T} 2=[\log (\mathrm{A}) \operatorname{logm}(\mathrm{A})] \\ \mathrm{T} 3=[\exp (\log (\mathrm{A})) \operatorname{expm}(\operatorname{logm}(\mathrm{A}))] \\ \mathrm{T} 4=\left[\log \left(\mathrm{A}^{-2}\right) 2 * \log (\mathrm{a})\right] \end{array} $$ \(\mathrm{T} 5=\left[\operatorname{logm}\left(\mathrm{A}^{-2}\right) 2 * \operatorname{logm}\left(\mathrm{A}^{-2}\right)\right]\) \(\mathrm{T} 6=[\exp (2 * \mathrm{~A}) \exp (\mathrm{A}) * \exp (\mathrm{A})]\) \(\mathrm{T} 7=[\operatorname{expm}(2 * \mathrm{~A}) \operatorname{expm}(\mathrm{A}) * \operatorname{expm}(\mathrm{A})]\) $$ \text { Output } $$ $$ \begin{array}{rrrrr} \mathrm{T} 1= & 2.1598 & 1.1052 & 2.1674 & 0.2309 \\ & 1.0704 & 2.4596 & 0.1570 & 2.4676 \\ \mathrm{~T} 2= & -0.2614 & -2.3026 & -0.2666 & 0.1204 \\ & -2.6882 & -0.1054 & 0.0819 & -0.1100 \\ \mathrm{~T} 3= & 0.7700 & 0.1000 & 0.7700 & 0.1000 \\ & 0.0680 & 0.9000 & 0.0680 & 0.9000 \\ \mathrm{~T} 4= & -0.5113 & -1.7898 & -0.5227 & -4.6052 \\ & -2.1754 & -0.2024 & -5.3765 & -0.2107 \\ \mathrm{~T} 5= & -0.5331 & 0.2408 & -0.5331 & 0.2408 \\ & 0.1637 & -0.2201 & 0.1637 & -0.2201 \\ \mathrm{~T} 6= & 4.6646 & 1.2214 & 5.8475 & 5.1052 \\ & 1.1457 & 6.0496 & 4.9444 & 7.2326 \\ \mathrm{~T} 7= & 4.7341 & 1.0703 & 4.7341 & 1.0703 \\ & 0.7278 & 6.1254 & 0.7278 & 6.1254 \end{array} $$
Step-by-Step Solution
VerifiedKey Concepts
Matrix Exponential
The matrix exponential of an input matrix \( A \) is denoted by \( e^A \) and can be represented in MATLAB using `expm(A)`. This measure computes a new matrix that is not simply the element-wise exponential of \( A \); rather, it uses a series expansion similar to the exponential function for scalars:
- Computing \( ext{expm}(A) \) involves power series expansions.
- It can be calculated using techniques like Pade approximation.
- In systems where dynamics are modeled, such as linear transformations, matrix exponentials help describe the continuous transition states.
Matrix Logarithm
The `logm()` function in MATLAB computes this logarithm and specializes in handling matrices, unlike the regular logarithm which doesn't extend well to matrices. Some key points include:
- Computing matrix logarithms is more complex due to matrix properties like non-commutativity.
- \( ext{logm}(A) \) can produce numerical differences due to the branch cuts in the complex logarithm.
- It is primarily used in stability analysis, signal processing, and solving particular matrix equations.
Numerical Precision
The discrepancies observed in calculations like `expm(A) * expm(A)` versus `expm(2*A)` illustrate how numerical precision affects calculations:
- The internal algorithms used by MATLAB, such as Pade approximations, impact results.
- Factors such as floating-point arithmetic lead to variations when numbers are very large or small.
- Ensuring precision involves controlling these errors, but minute inconsistencies can still occur.
Eigenvalues
During operations such as computing the matrix logarithm or inversions, knowing the eigenvalues of a matrix can dictate whether the operations yield real or complex results. Important points include:
- Matrix operations like logarithms need positive eigenvalues for real outcomes.
- Eigenvalues are solved from the characteristic equation \( ext{det}(A - ext{I} imes ext{eigenvalue}) = 0 \).
- Dependence on eigenvalues can influence stability and convergence of iterative methods in computing matrix functions.