Question

In: Advanced Math

Question: include the MATLAB output and commands used with each problem Generate two random 10 ×...

Question:

include the MATLAB output and commands used with each problem

Generate two random 10 × 10 matrices with numbers between -10 and 10. This can be done with

>> A = randi([-10,10],10,10)

>> B = randi([-10,10],10,10)

1.     with MATLAB to determi whether A and B are invertible matrices .

2.     If A is invertible, use MATLAB to show that A-1A = I

3.     Determi whether (AB)-1 = B-1A-1

4.     Determin whether (AT)-1 = (A-1)T

5.     Determe whether (A3)-1 = (A-1)3

6.     Determi whether (A + B)(A - B) = A2 - B2

Solutions

Expert Solution

Solution:- given question is

Explaination:-(2)

The inverse of a matrix A is denoted by A−1such that the following relationship holds −

AA−1 = A−1A = 1

The inverse of a matrix does not always exist. If the determinant of the matrix is zero, then the inverse does not exist and the matrix is singular.

Inverse of a matrix in MATLAB is calculated using the inv function. Inverse of a matrix A is given by inv(A).

Example

Create a script file and type the following code −

Live Demo

a = [ 1 2 3; 2 3 4; 1 2 5]
inv(a)

When you run the file, it displays the following result −

a =
   1     2     3
   2     3     4
   1     2     5
ans =
   -3.5000    2.0000    0.5000
   3.0000   -1.0000    -1.0000
   -0.5000      0       0.5000

Explaination:- (3)

such matrices exist. Note first that for invertible A,BA,B we have (AB)−1=A−1B−1(AB)−1=A−1B−1 if and only if AB=BAAB=BA. Thus, this comes down to finding a collection of invertible matrices which commute.

The simplest non-trivial set of such matrices is the set of diagonal matrices with all non-zero diagonal entries.

A group GG in which (ab)−1=a−1b−1(ab)−1=a−1b−1for all a,b∈Ga,b∈G is abelian. There's plenty of groups of invertible matrices that are abelian.

A very simple example is the group of powers of AA, where AA is an invertible matrix. Another important one is the set of matrices of the form

[a−bba][ab−ba]

with aa and bb real, a2+b2≠0a2+b2≠0.

Explaination:-(6)

Let us calculate (A−B)(A+B)(A−B)(A+B) as follows using the fact that the matrix product is distributive.

(A−B)(A+B)=A(A+B)−B(A+B)=A2+AB−BA−B2=A2−B2+(AB−BA).(A−B)(A+B)=A(A+B)−B(A+B)=A2+AB−BA−B2=A2−B2+(AB−BA).


Thus if (A−B)(A+B)=A2−B2(A−B)(A+B)=A2−B2 then AB−BA=OAB−BA=O, the zero matrix. Equivalently, AB=BAAB=BA.

Note that matrix multiplication is not commutative, namely, AB≠BAAB≠BA in general.
Thus we can disprove the statement if


Related Solutions

The language is MATLAB Write a function that will generate three random integers, each in the...
The language is MATLAB Write a function that will generate three random integers, each in the inclusive range from 10 to 80. It will then return a string consisting of the three integers joined together, and also a character vector consisting of the three integers joined together. For example, if the random integers are 11, 29, and 76, the string that is returned will be "112976" and the character vector that is returned will be '112976'. I'm really confused on...
generate the following matrices with given rank and verify with the rank command. Include the Matlab...
generate the following matrices with given rank and verify with the rank command. Include the Matlab sessions in your report as indicated. A) is 8x8 with rank 3. B) is 6x9 with rank 4. C) is 10x7 with rank 5 .
2. Please use Matlab to generate two sine waves of 100 Hz and 10 Hz frequencies,...
2. Please use Matlab to generate two sine waves of 100 Hz and 10 Hz frequencies, respectively. Both sine waves will have a peak value of 1 (peak to peak value of 2). The sampling rate is 1000 Hz (fs = 1000 Hz) and the total data point is 1000 points for each wave. Combine the two sine waves into one. Plot the combined waveform (1 point). Then, perform fft on the combined waveform. Plot the frequency amplitude spectrum from...
Unix / Linux 31. Given the first two commands, what is the expected output for the...
Unix / Linux 31. Given the first two commands, what is the expected output for the third command? (single quotes) $ echo * a b c $ x=* $ echo '$x' 32. Given the first two commands, what is the expected output for the third command? (Single quotes inside of double quotes) $ echo * a b c $ x=* $ echo "'$x'" 33. Given the first two commands, what is the expected output for the third command? (double quotes...
Write a MATLAB function that will generate chi-square random variables with v degrees of freedom by...
Write a MATLAB function that will generate chi-square random variables with v degrees of freedom by generating v standard normal, squaring them and then adding them up. This uses the fact that is chi-square with v degrees of freedom. Generate some random variables and plot in a histogram. The degrees of freedom should be an input argument set by the user.
For this problem, you will write a program using two queues. Generate n random numbers between...
For this problem, you will write a program using two queues. Generate n random numbers between 10 and 100 (both inclusive), where n>9. The value of n should be taken as input from the user and n should be >9. The numbers could be duplicated. Enqueue all these numbers to the first queue. The objective is to find the numbers whose sum of digits is odd and enqueue them to the second queue. The remaining numbers (whose sum of digits...
In this program, you will generate a random “sentence” constructed of random “words”. Quotes are used...
In this program, you will generate a random “sentence” constructed of random “words”. Quotes are used in the preceding sentence because the “words” will mostly be nonsense words that do not exist in the English language. Step 1. The average number of words in an English sentence is about 17 words. First generate a pseudorandom number NW between 10 and 20 for the number of words in your random “sentence”. Use srand( ) to set the initial value in the...
Instructions: Write the equations that will be used for each problem and include every algebraic process....
Instructions: Write the equations that will be used for each problem and include every algebraic process. A spring oscillates with the angular frequency of 2 radians / seconds. There is a mass of 0.500 kilograms tied to the dock. The pier stretches about 0.08 meters. a. Determine the mechanical energy of the mass. b. Determine the velocity of the object when it passes through the point x = 0.02 meters.
Use one MATLAB statement to generate each of the following scalars and vectors. (These parts are...
Use one MATLAB statement to generate each of the following scalars and vectors. (These parts are sequential) a.) Generate the vector x=(sin5,sin10,sin15,...,sin200) but dont print b.)Find the Max value in X and which index has this value. Print both the index and the value using Disp (so you can use 2 statements) c.)Find the minimum value x and which index has this value. Print both the index and the value using Disp (so you can use 2 statements) d.)Find the...
Answer the following questions using R (include both the input and output for each question). I)...
Answer the following questions using R (include both the input and output for each question). I) A random variable P has a Poisson distribution with a mean of 10. Solve for the probability that random variable P is greater than 8. II) What is the probability that in 30 tosses of a fair coin, the head comes up 10 or 15 times? III) What is the probability that a normal random variable is less than 40, assuming that the variable...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT