This preview shows pages 1–6. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Name: lker Kksal ID: 20800584 Section: 02 MATH 225 Spring 2010 2011 MATLAB HOMEWORK #1 1) a) ans = dsolve('Dy + 2*y/x = sin(x)/x^2','x') ans =(C2 + cos(x))/x^2 While I am using dsolve I found the general solution of the first order differential equation. b) I draw the solution curves for three initial values that I choose and I used ezplot() to solve this. *) ans = dsolve('Dy + 2*y/x = sin(x)/x^2','y(1)= 5','x') ans = (cos(1)  cos(x) + 5)/x^2 >> ezplot(ans) *) ans = dsolve('Dy + 2*y/x = sin(x)/x^2','y(5)= 50','x') ans = (cos(5)  cos(x) + 1250)/x^2 >> ezplot(ans) >> ans = dsolve('Dy + 2*y/x = sin(x)/x^2','y(50)= 200','x') ans = (cos(50)  cos(x) + 500000)/x^2 >> ezplot(ans) c)While I am using dfield, I draw the direction field of the equation in (a). d) In conclusion, in part c, the graph includes all solutions but in part b, the graphs are drawn with three initial values that I chose....
View
Full
Document
This note was uploaded on 10/23/2011 for the course ENGINEERIN 102 taught by Professor Pablo during the Spring '11 term at Bilkent University.
 Spring '11
 Pablo

Click to edit the document details