Using your knowledge of matlab and linear algebra solve the follow
1.
syms t11 t12 t13 t21 t22 t23 t31 t32
t33
T =[t11 t12 t13; 0 t22 t23; 0 0 t33]
det(T)
Output of the above script is as follows:
T = [ t11, 0, 0]
[ t21, t22, 0]
[ t31, t32, t33]
ans = t11*t22*t33
Since, the determinant value of upper triangular Matrix contains diagonal elements only, so it can be expected that lower triangular matrix will have the same determinant value.
If the Matrix is lower:
T = [ t11, t12, t13]
[ 0, t22, t23]
[ 0, 0, t33]
ans = t11*t22*t33
Therefore, in both triangular matrix determinant value is same, so the expectation is correct.
Matlab script for Matrix D is as follows:
syms d11 d22 d33
D =[d11 0 0; 0 d22 0; 0 0 d33]
det(D)
Output is as follows:
D = [ d11, 0, 0]
[ 0, d22, 0]
[ 0, 0, d33]
ans =d11*d22*d33
Since, the determinant value contains diagonal elements only, so Matrix D conforms the expectation.
-------------------------------------------------------------------------------
syms d11 d22 d33
D =[d11 0 0; 0 d22 0; 0 0 d33];
eig(D)
Following is the output:
ans = d11
d22
d33
So, the eigen values of the normal n x n Matrix can be expected as the main diagonal elements. Since it is a diagonal matrix, so it contains these eigen values, if the matrix has other elements, these values will change accordingly.
-----------------------------------------------------------------------------------
Matlab script is as follows:
syms a11 a12 a21 a22
A =[a11 a12; a21 a22]
syms b11 b12 b21 b22
B = [b11 b12; b21 b22]
eig(A*B)
Output of above script is as follows:
A = [ a11, a12]
[ a21, a22]
B = [ b11, b12]
[ b21, b22]
ans =
(a11*b11)/2 + (a12*b21)/2 + (a21*b12)/2 + (a22*b22)/2 - (a11^2*b11^2 + 2*a11*a12*b11*b21 + 2*a11*a21*b11*b12 - 2*a11*a22*b11*b22 + 4*a11*a22*b12*b21 + a12^2*b21^2 + 4*a12*a21*b11*b22 - 2*a12*a21*b12*b21 + 2*a12*a22*b21*b22 + a21^2*b12^2 + 2*a21*a22*b12*b22 + a22^2*b22^2)^(1/2)/2
(a11*b11)/2 + (a12*b21)/2 + (a21*b12)/2 + (a22*b22)/2 + (a11^2*b11^2 + 2*a11*a12*b11*b21 + 2*a11*a21*b11*b12 - 2*a11*a22*b11*b22 + 4*a11*a22*b12*b21 + a12^2*b21^2 + 4*a12*a21*b11*b22 - 2*a12*a21*b12*b21 + 2*a12*a22*b21*b22 + a21^2*b12^2 + 2*a21*a22*b12*b22 + a22^2*b22^2)^(1/2)/2
If both matrix are equal , B= A
Eigen Values will be :
a12*a21 - (a11*(a11^2 - 2*a11*a22 + a22^2 + 4*a12*a21)^(1/2))/2 - (a22*(a11^2 - 2*a11*a22 + a22^2 + 4*a12*a21)^(1/2))/2 + a11^2/2 + a22^2/2
a12*a21 + (a11*(a11^2 - 2*a11*a22 + a22^2 + 4*a12*a21)^(1/2))/2 + (a22*(a11^2 - 2*a11*a22 + a22^2 + 4*a12*a21)^(1/2))/2 + a11^2/2 + a22^2/2
-------------------------------------------------------------------------------------------------------------------------
2.
If Matrix A=
2 2 -2
2 -4
-2
0
2 0
A =[2 2 -2; 2 -4 -2; 0 2 0];
eig(A)
det(A)
Eigen Values are : -4, 2, and 0
And the determinant is 0.
In the following script, Vector will be having eigen vectors , and Values will have eigen values
A =[2 2 -2; 2 -4 -2; 0 2 0];
[Vectors,Values] = eig(A)
Output of the above script is as follows:
Vectors =0.4082 0.9428
0.7071
-0.8165 0.2357 -0.0000
0.4082 0.2357
0.7071
Using your knowledge of matlab and linear algebra solve the follow Consider the following matrices T,...
3. Consider the vector space V = R2[x] with its standard ordered basisE = 1,x,x2 and the linear map T :R2[x]−→R2[x], T(p)=p(x−1)−p(0)x2 (a) (1 point) What is [T]E? (b) (1 point) Is T invertible? (c) (6 points) Compute the eigenvalues of T and their algebraic multiplicity. (d) (2 points) Is T diagonalisable? If so, find a matrix Q such that Q−1[T]EQ is diagonal. If not, findQ, so that the above matrix is upper triangular.
Consider the following hermitian matrix a) Calculate the trace and the determinant of this matrix. b) Find the eigenvalues and compare their product and sum to the determinant and trace respectively. (It is a general result for any matrix that can be diagonalized, that the trace of a matrix is equal to the sum of its eigenvalues and that the determinant of a diagonalizable matrix is equal to the product of its eigenvalues. If these conditions are satisfied, you can...
Consider the following hermitian matrix: a) Calculate the trace and the determinant of this matrix. b) Find the eigenvalues and compare their product and sum to the determinant and trace respectively. (It is a general result for any matrix that can be diagonalized, that the trace of a matrix is equal to the sum of its eigenvalue:s and that the determinant of a diagonalizable matrix is equal to the product of its eigenvalues. If these conditions are satisfied, you can...
Please solve the following linear algebra problem.
Please do parts 1 and 2 and please show all work thank you.
Problem B. (4 pts) Consider the matrix 1 - / 2 1 1 1 2 1 - 1 -1 0 You can assume that = 1 and X = 2 are eigenvalues of the matrix A. (Note: You don't have to compute the eigenvalues of A.] 1. Find an eigenvector associated with = 1. 2. Find an eigenvector associated with...
You should test out your script using the following matrices. 2 3 1 2 3 1 C D- 3 2 B- A- -3 8 4 8 2 4 4 1 You may not use any special MATLAB tools. Instead, work symbolically and derive general expressions for the eigenvalues and the eigenvectors. For instance, you may not use the SOLVE function. If you are not sure whether or not a particular function is available to you, just ask Include your hand...
1. [12 marks] In the following parts of this question, write a MATLAB code to solve a linear system A b (A is a square nonsingular matrix) using Jacobi and Gauss-Seidel algorithms. Do not use the built-in Matlab functions for solving linear systems (a) Write a Matlab function called Jacobi that consumes a square n x n matrix A, and an n x 1 vector b, and uses the Jacobi technique to solve the system Ax-b, starting with the zero...
Using hand work for the parts with a paper next to them, and
MatLab for the parts with the MatLab logo next to them, complete
the following:
Consider the linear BVP 4y " + 3y , + y = 0, 0<x<1 y(0)1 You will define a set of linear equations for yi,0, (yi y(Xi), 1 = o,.. . ,n) and the set of nodes is with xi-ih, 1-0, . . . , n and h =-. n is a fixed...
Question 1
QUESTION 2
Use the attached Matlab code as a basis to solve the following ordinary differential equation using Euler's method, with timestep of 0.1, from t-0to t-100. d)0) -0 - sin (5vt cos(у Plot y versus t from t=0 to t=100. How many local maxima are on this interval(do not include end points). Be careful to count them all! Answer should be an integer 1 w% Matlab code for the solution of Module 2 3 dt-9.1; %dt is...
1. (10 points, part I) Consider the following initial boundary value problem lU (la) (1b) (1c) 0L, t> 0 3 cos ( a(x, 0) (a) Classify the partial differential equation (1a) (b) What do the equations (la)-(1c) model? (Hint: Give an interpretation for the PDE, boundary conditions and intial condition.) c) Use the method of separation of variables to separate the above problem into two sub- problems (one that depends on space and the other only on time) (d) What...
Instructions: For your lab write-up follow the instructions of LAB 1 1. (a) Modify the function exvith2eqs to solve the IVP (4) for o St S40 using the MATLAB routine ode45. Call the new function LAB04exl Let [t,Y] (note the upper case Y) be the output of ode45 and y and v the unknown functions. Use the following commands to define the ODE function dYdt f(t.Y) y-Y();Y(2) Plot y(t) and e(t) in the same window (do not use subplot), and...