MATLAB5 - MATLAB #5 Second Order ODEs Jillian Peacock...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
MATLAB #5 Second Order ODEs Jillian Peacock A06402794 Math 20D Professor Stevens 2 November 2006
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Exercise 5.1: a. >> solve('r^2-2*r+26=0') ans = 1+5*i 1-5*i >> f=inline('exp(t)*(sin(5*t)+cos(5*t))') f = Inline function: f(t) = exp(t)*(sin(5*t)+cos(5*t)) >> fplot(f, [-10,10]) -10 -8 -6 -4 -2 0 2 4 6 8 10 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 x 10 4 b. The solution is constant then begins to oscillate as the values of t increase. These oscillations are increasing with the increase in t. These oscillations are also a lot larger than the previous graph. The values of r1 and r2 change with the different equation. There is no coefficient of t on the exponential. Exercise 5.2: a. >> dsolve('D2y+4*Dy+y=3*sin(t)') ans = exp((-2+3^(1/2))*t)*C2+exp(-(2+3^(1/2))*t)*C1-3/4*cos(t) b. dsolve('6*D2y+(1/t)*Dy+(1/(y^2))*y=sin(t)') Warning: Explicit solution could not be found.
Background image of page 2
> In dsolve at 338 ans = [ empty sym ] Exercise 5.3: a. b.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

MATLAB5 - MATLAB #5 Second Order ODEs Jillian Peacock...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online