Question

Math : Elementary Linear Algebra, 11th Edition Solve the system. y'1 = y1 + 12 y2...

Math : Elementary Linear Algebra, 11th Edition

Solve the system.

y'1 = y1 + 12 y2

y'2 = 2y1 + 12y2

what is y1 and y 2 ?

I Don't need the answer rather i need to know how to use Octave or mathlab function/formulas to compute the value.

I know there are eig() etc

Homework Answers

Answer #1

MATLAB Code:

close all
clear
clc

syms y1(t) y2(t) % Declaring y1 and y2 as functions of t
Dy1 = diff(y1, t); % y1'(t)
Dy2 = diff(y2, t); % y2'(t)
Eqns = [Dy1 == y1 + 12*y2, Dy2 == 2*y1 + 12*y2]; % Given differential equations
Sol = dsolve(Eqns); % Differential equation solver

% Now Sol contains y1 and y2
y1 = Sol.y1;
y2 = Sol.y2;

% Print out
fprintf('y1(t) =\n\t'), disp(y1)
fprintf('y2(t) =\n\t'), disp(y2)
disp('Note that C13 and C14 are constants.')

Output:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions