fbpx
Wikipedia

Slope field

A slope field (also called a direction field[1]) is a graphical representation of the solutions to a first-order differential equation[2] of a scalar function. Solutions to a slope field are functions drawn as solid curves. A slope field shows the slope of a differential equation at certain vertical and horizontal intervals on the x-y plane, and can be used to determine the approximate tangent slope at a point on a curve, where the curve is some solution to the differential equation.

The slope field of , with the blue, red, and turquoise lines being , , and , respectively.

Definition Edit

Standard case Edit

The slope field can be defined for the following type of differential equations

 

which can be interpreted geometrically as giving the slope of the tangent to the graph of the differential equation's solution (integral curve) at each point (x, y) as a function of the point coordinates.[3]

It can be viewed as a creative way to plot a real-valued function of two real variables   as a planar picture. Specifically, for a given pair  , a vector with the components   is drawn at the point   on the  -plane. Sometimes, the vector   is normalized to make the plot better looking for a human eye. A set of pairs   making a rectangular grid is typically used for the drawing.

An isocline (a series of lines with the same slope) is often used to supplement the slope field. In an equation of the form  , the isocline is a line in the  -plane obtained by setting   equal to a constant.

General case of a system of differential equations Edit

Given a system of differential equations,

 

the slope field is an array of slope marks in the phase space (in any number of dimensions depending on the number of relevant variables; for example, two in the case of a first-order linear ODE, as seen to the right). Each slope mark is centered at a point   and is parallel to the vector

 

The number, position, and length of the slope marks can be arbitrary. The positions are usually chosen such that the points   make a uniform grid. The standard case, described above, represents  . The general case of the slope field for systems of differential equations is not easy to visualize for  .

General application Edit

With computers, complicated slope fields can be quickly made without tedium, and so an only recently practical application is to use them merely to get the feel for what a solution should be before an explicit general solution is sought. Of course, computers can also just solve for one, if it exists.

If there is no explicit general solution, computers can use slope fields (even if they aren’t shown) to numerically find graphical solutions. Examples of such routines are Euler's method, or better, the Runge–Kutta methods.

Software for plotting slope fields Edit

Different software packages can plot slope fields.

Direction field code in GNU Octave/MATLAB Edit

funn = @(x, y)y-x; % function f(x, y) = y-x [x, y] = meshgrid(-5:0.5:5); % intervals for x and y slopes = funn(x, y); % matrix of slope values dy = slopes ./ sqrt(1 + slopes.^2); % normalize the line element... dx = ones(length(dy)) ./ sqrt(1 + slopes.^2); % ...magnitudes for dy and dx h = quiver(x, y, dx, dy, 0.5); % plot the direction field set(h, "maxheadsize", 0.1); % alter head size 

Example code for Maxima Edit

/* field for y'=xy (click on a point to get an integral curve). Plotdf requires Xmaxima */ plotdf( x*y, [x,-2,2], [y,-2,2]); 

Example code for Mathematica Edit

(* field for y'=xy *) VectorPlot[{1,x*y-5x},{x,-2,2},{y,-2,2}] 

Example code for SageMath[4] Edit

var('x,y') plot_slope_field(x*y, (x,-2,2), (y,-2,2)) 

Examples Edit

See also Edit

References Edit

  1. ^ Boyce, William (2001). Elementary differential equations and boundary value problems (7 ed.). Wiley. p. 3. ISBN 9780471319993.
  2. ^ Vladimir A. Dobrushkin (2014). Applied Differential Equations: The Primary Course. CRC Press. p. 13. ISBN 978-1-4987-2835-5.
  3. ^ Andrei D. Polyanin; Alexander V. Manzhirov (2006). Handbook of Mathematics for Engineers and Scientists. CRC Press. p. 453. ISBN 978-1-58488-502-3.
  4. ^ "Plotting fields — Sage 9.4 Reference Manual: 2D Graphics".

External links Edit

slope, field, slope, field, also, called, direction, field, graphical, representation, solutions, first, order, differential, equation, scalar, function, solutions, slope, field, functions, drawn, solid, curves, slope, field, shows, slope, differential, equati. A slope field also called a direction field 1 is a graphical representation of the solutions to a first order differential equation 2 of a scalar function Solutions to a slope field are functions drawn as solid curves A slope field shows the slope of a differential equation at certain vertical and horizontal intervals on the x y plane and can be used to determine the approximate tangent slope at a point on a curve where the curve is some solution to the differential equation The slope field of d y d x x 2 x 2 displaystyle frac dy dx x 2 x 2 with the blue red and turquoise lines being x 3 3 x 2 2 2 x 4 displaystyle frac x 3 3 frac x 2 2 2x 4 x 3 3 x 2 2 2 x displaystyle frac x 3 3 frac x 2 2 2x and x 3 3 x 2 2 2 x 4 displaystyle frac x 3 3 frac x 2 2 2x 4 respectively Contents 1 Definition 1 1 Standard case 1 2 General case of a system of differential equations 2 General application 3 Software for plotting slope fields 3 1 Direction field code in GNU Octave MATLAB 3 2 Example code for Maxima 3 3 Example code for Mathematica 3 4 Example code for SageMath 4 4 Examples 5 See also 6 References 7 External linksDefinition EditStandard case Edit The slope field can be defined for the following type of differential equations y f x y displaystyle y f x y nbsp which can be interpreted geometrically as giving the slope of the tangent to the graph of the differential equation s solution integral curve at each point x y as a function of the point coordinates 3 It can be viewed as a creative way to plot a real valued function of two real variables f x y displaystyle f x y nbsp as a planar picture Specifically for a given pair x y displaystyle x y nbsp a vector with the components 1 f x y displaystyle 1 f x y nbsp is drawn at the point x y displaystyle x y nbsp on the x y displaystyle x y nbsp plane Sometimes the vector 1 f x y displaystyle 1 f x y nbsp is normalized to make the plot better looking for a human eye A set of pairs x y displaystyle x y nbsp making a rectangular grid is typically used for the drawing An isocline a series of lines with the same slope is often used to supplement the slope field In an equation of the form y f x y displaystyle y f x y nbsp the isocline is a line in the x y displaystyle x y nbsp plane obtained by setting f x y displaystyle f x y nbsp equal to a constant General case of a system of differential equations Edit Given a system of differential equations d x 1 d t f 1 t x 1 x 2 x n d x 2 d t f 2 t x 1 x 2 x n d x n d t f n t x 1 x 2 x n displaystyle begin aligned frac dx 1 dt amp f 1 t x 1 x 2 ldots x n frac dx 2 dt amp f 2 t x 1 x 2 ldots x n amp vdots frac dx n dt amp f n t x 1 x 2 ldots x n end aligned nbsp the slope field is an array of slope marks in the phase space in any number of dimensions depending on the number of relevant variables for example two in the case of a first order linear ODE as seen to the right Each slope mark is centered at a point t x 1 x 2 x n displaystyle t x 1 x 2 ldots x n nbsp and is parallel to the vector 1 f 1 t x 1 x 2 x n f 2 t x 1 x 2 x n f n t x 1 x 2 x n displaystyle begin pmatrix 1 f 1 t x 1 x 2 ldots x n f 2 t x 1 x 2 ldots x n vdots f n t x 1 x 2 ldots x n end pmatrix nbsp The number position and length of the slope marks can be arbitrary The positions are usually chosen such that the points t x 1 x 2 x n displaystyle t x 1 x 2 ldots x n nbsp make a uniform grid The standard case described above represents n 1 displaystyle n 1 nbsp The general case of the slope field for systems of differential equations is not easy to visualize for n gt 2 displaystyle n gt 2 nbsp General application EditWith computers complicated slope fields can be quickly made without tedium and so an only recently practical application is to use them merely to get the feel for what a solution should be before an explicit general solution is sought Of course computers can also just solve for one if it exists If there is no explicit general solution computers can use slope fields even if they aren t shown to numerically find graphical solutions Examples of such routines are Euler s method or better the Runge Kutta methods Software for plotting slope fields EditDifferent software packages can plot slope fields Direction field code in GNU Octave MATLAB Edit funn x y y x function f x y y x x y meshgrid 5 0 5 5 intervals for x and y slopes funn x y matrix of slope values dy slopes sqrt 1 slopes 2 normalize the line element dx ones length dy sqrt 1 slopes 2 magnitudes for dy and dx h quiver x y dx dy 0 5 plot the direction field set h maxheadsize 0 1 alter head size Example code for Maxima Edit field for y xy click on a point to get an integral curve Plotdf requires Xmaxima plotdf x y x 2 2 y 2 2 Example code for Mathematica Edit field for y xy VectorPlot 1 x y 5 x x 2 2 y 2 2 Example code for SageMath 4 Edit var x y plot slope field x y x 2 2 y 2 2 Examples Edity x y nbsp Slope field nbsp Integral curves nbsp Isoclines blue slope field black and some solution curves red See also EditExamples of differential equations Vector field Laplace transform applied to differential equations List of dynamical systems and differential equations topics Qualitative theory of differential equationsReferences Edit Boyce William 2001 Elementary differential equations and boundary value problems 7 ed Wiley p 3 ISBN 9780471319993 Vladimir A Dobrushkin 2014 Applied Differential Equations The Primary Course CRC Press p 13 ISBN 978 1 4987 2835 5 Andrei D Polyanin Alexander V Manzhirov 2006 Handbook of Mathematics for Engineers and Scientists CRC Press p 453 ISBN 978 1 58488 502 3 Plotting fields Sage 9 4 Reference Manual 2D Graphics Blanchard Paul Devaney Robert L and Hall Glen R 2002 Differential Equations 2nd ed Brooks Cole Thompson Learning ISBN 0 534 38514 1External links EditWeisstein Eric W Slope field MathWorld Slope field plotter Java Slope field plotter JavaScript Retrieved from https en wikipedia org w index php title Slope field amp oldid 1168510446, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.