Direction Fields Plotting Direction fields can be done using the function quiver quiver Quiver plot. quiver (X,Y,U,V) plots velocity vectors as arrows with components (u,v) at the points (xy). The matrices X,Y,U,V must all be the same size and contain corresponding position and velocity components (X and Y can also be vectors to specify a uniform grid), quiver automatically scales the arrows to fit within the grid. Example: xrange = -5:0.5:5; %the domain of x is from -5 up to 5 with 8.5 interval. yrange -10:1:10; %the values of y is from -10 up to 10 with 1 interval. [x,y] = meshgrid(xrange,yrange); %plot the DE y = x^2+y^2; S = x.^2+y^2; quiver (x,y,ones (size(s)),s) Exercises: Sketch the direction fields of the following differential equations 1. y' = 0.25xy² 2. y' = sin(x-y) Notes: For the ranges: For Item No.1 Use xr1 = (-5,5) with 0.5 interval yr1 = (-10,10) with 0.5 interval Use $1 for the f(x,y), x1 and y1 as the points in the rectangular coordinate system, For Item No.2 Use xr2 = (-10,10) with 1 interval yr2 = (-6,6) with 0.2 interval Use s2 for the f(x,y), x2 and y2 as the points in the rectangular coordinate system,

College Algebra
10th Edition
ISBN:9781337282291
Author:Ron Larson
Publisher:Ron Larson
Chapter7: Matrices And Determinants
Section: Chapter Questions
Problem 1PS
icon
Related questions
Question
Direction Fields
Plotting Direction fields can be done using the function quiver:
quiver Quiver plot.
quiver(X,Y,U,V) plots velocity vectors as arrows with components (u,v) at the points (x,y). The matrices X,Y,U,V must all be the same size
and contain corresponding position and velocity components (X and Y can also be vectors to specify a uniform grid). quiver automatically
scales the arrows to fit within the grid.
Example:
xrange = -5:0.5:5; %the domain of x is from -5 up to 5 with 0.5 interval.
yrange -10:1:10; %the values of y is from -10 up to 10 with 1 interval.
[x,y] = meshgrid(xrange, yrange);
%plot the DE
y' = x^2+y^2;
S = x.^2+y.^2;
quiver (x, y, ones (size(s)),s)
Exercises:
Sketch the direction fields of the following differential equations
1. y' = 0.25xy²
2. y' = sin(x-y)
Notes:
For the ranges:
For Item No.1
Use xr1 = (-5,5) with 0.5 interval yr1 = (-10,10) with 0.5 interval
Use $1 for the f(x,y), x1 and y1 as the points in the rectangular coordinate system,
For Item No.2
Use xr2 = (-10,10) with 1 interval yr2 = (-6,6) with 0.2 interval
Use s2 for the f(x,y), x2 and y2 as the points in the rectangular coordinate system,
My Solutions >
Transcribed Image Text:Direction Fields Plotting Direction fields can be done using the function quiver: quiver Quiver plot. quiver(X,Y,U,V) plots velocity vectors as arrows with components (u,v) at the points (x,y). The matrices X,Y,U,V must all be the same size and contain corresponding position and velocity components (X and Y can also be vectors to specify a uniform grid). quiver automatically scales the arrows to fit within the grid. Example: xrange = -5:0.5:5; %the domain of x is from -5 up to 5 with 0.5 interval. yrange -10:1:10; %the values of y is from -10 up to 10 with 1 interval. [x,y] = meshgrid(xrange, yrange); %plot the DE y' = x^2+y^2; S = x.^2+y.^2; quiver (x, y, ones (size(s)),s) Exercises: Sketch the direction fields of the following differential equations 1. y' = 0.25xy² 2. y' = sin(x-y) Notes: For the ranges: For Item No.1 Use xr1 = (-5,5) with 0.5 interval yr1 = (-10,10) with 0.5 interval Use $1 for the f(x,y), x1 and y1 as the points in the rectangular coordinate system, For Item No.2 Use xr2 = (-10,10) with 1 interval yr2 = (-6,6) with 0.2 interval Use s2 for the f(x,y), x2 and y2 as the points in the rectangular coordinate system, My Solutions >
Expert Solution
steps

Step by step

Solved in 6 steps with 3 images

Blurred answer
Recommended textbooks for you
College Algebra
College Algebra
Algebra
ISBN:
9781337282291
Author:
Ron Larson
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra and Trigonometry (MindTap Course List)
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning