Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 3 Exercises Recall that a = last digit of your student ID , b = second to last digit of your student ID ,

Part 3 Exercises
Recall that a= last digit of your student ID,b= second to last digit of your student ID,c= third to last digit of
your student ID, and d= the sum of the last three digits of your student ID. Complete the following operations in
your script, making new lines for each operation.
(a+1)x+(b+1)y=-9
(c+1)x+(d+1)y=-4
3A)(Solve system of linear equations, Method 1) Solve the above system of linear equations using reduced row
echelon form. In other words, declare a 23 coefficient matrix called P3AM for the system above (make a matrix
with just numbers, no variables), then use the reduced row echelon form command to solve the system. Declare
the solution in MATLAB as P3A.3B)(Solve system of linear equations, Method 2) Solve the same system of linear equations using an inverse
matrix. In other words, declare a 22 coefficient matrix called P3BM for the same system (make a matrix with
just numbers, no variables, but only for the side with the x and y on it), then declare a 21 vector called P3BV
with the numbers on the right side of the equation. If we let x=[x;y], then the system turns into (P3BM)(x)=
(P3BV); therefore, the solution to the system should be x=(P3BM)-1(P3BV). Use the proper inverse matrix
operation and declare the solution in MATLAB as P3B. Check that your results match the prior method from 3A.
3C)(Dot Product - MAT 264) Declare P3C1 as a 12 row vector with a+1 and b+1 as the two entries. Declare
PC23 as another 12 row vector with c+1 and d+1 as the two entries. Compute the dot product of these vectors
by multiplying the two vectors together, but transpose PC23 before they are multiplied. Declare your product in
MATLAB as P3C.
3D)(Eigenvalues - MAT 364, Method 1) You are to solve for the eigenvalues of a 22 system of differential
equations, given as
x'=[a+2b+2c+2d+2]x
where x=[x;y]. Declare the coefficient matrix above P3DM in MATLAB. You are going to find the
eigenvalues of this matrix by appropriately mimicking the lines of code below in MATLAB, but by using relevant
information and following proper syntax rules. Note that syms allows you to define a variable in MATLAB
symbolically. This command will be used regularly in future projects.
syms Z
z+det(,1==0,z)
3E)(Eigenvalues - MAT 364, Method 2) You are to find the eigenvalues of the same 22 system of differential
equations as written above. Declare the coefficient matrix as P3EM in MATLAB. You will use the eigenvalue
command from the list on the previous page to identify the eigenvalues of this system. Declare your result in
MATLAB as P3E. Check that your results match the prior method from 3D.
Once you have these operations written in proper MATLAB syntax, go to your Editor menu and click Run. If
there are values in your Command Window for all operations without error messages, then your code has
successfully run! If you have error messages, read them carefully and try to resolve them, then click Run again.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions