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 f ( x , y ) {\displaystyle f(x,y)} as a planar picture. Specifically, for a given pair x , y {\displaystyle x,y} , a vector with the components [ 1 , f ( x , y ) ] {\displaystyle [1,f(x,y)]} is drawn at the point x , y {\displaystyle x,y} on the x , y {\displaystyle x,y} -plane. Sometimes, the vector [ 1 , f ( x , y ) ] {\displaystyle [1,f(x,y)]} is normalized to make the plot better looking for a human eye. A set of pairs x , y {\displaystyle x,y} 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)} , the isocline is a line in the x , y {\displaystyle x,y} -plane obtained by setting f ( x , y ) {\displaystyle f(x,y)} equal to a constant.
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 ( t , x 1 , x 2 , … , x n ) {\displaystyle (t,x_{1},x_{2},\ldots ,x_{n})} 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 ( t , x 1 , x 2 , … , x n ) {\displaystyle (t,x_{1},x_{2},\ldots ,x_{n})} make a uniform grid. The standard case, described above, represents n = 1 {\displaystyle n=1} . The general case of the slope field for systems of differential equations is not easy to visualize for n > 2 {\displaystyle n>2} .
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.
Different software packages can plot slope fields.
Boyce, William (2001). Elementary differential equations and boundary value problems (7 ed.). Wiley. p. 3. ISBN 9780471319993. 9780471319993 ↩
Vladimir A. Dobrushkin (2014). Applied Differential Equations: The Primary Course. CRC Press. p. 13. ISBN 978-1-4987-2835-5. 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. 978-1-58488-502-3 ↩
"Plotting fields — Sage 9.4 Reference Manual: 2D Graphics". https://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot_field.html ↩