maths.freeDifferential Equations › First order › Slope field

Slope field

A slope field (also called a direction field) is a graphical representation of the solutions to a first-order differential equation of a scalar function. Solutions to a slope field are functions drawn as solid curves.

Slope field

A slope field (also called a direction field) is a graphical representation of the solutions to a first-order differential equation 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.

Standard case

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

\(y' = f(x, y),\)

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.

It can be viewed as a creative way to plot a real-valued function of two real variables \(f(x,y)\) as a planar picture. Specifically, for a given pair \(x,y\), a vector with the components \([1, f(x,y)]\) is drawn at the point \(x,y\) on the \(x,y\)-plane. Sometimes, the vector \([1, f(x,y)]\) is normalized to make the plot better looking to the human eye. A set of pairs \(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)\), the isocline is a line in the \(x,y\)-plane obtained by setting \(f(x,y)\) equal to a constant.

General case of a system of differential equations

Given a system of differential equations,

\(\begin{align} \frac{dx_1}{dt}&=f_1(t, x_1, x_2, \ldots, x_n) \\ \frac{dx_2}{dt}&=f_2(t, x_1, x_2, \ldots, x_n) \\ &\;\;\vdots \\ \frac{dx_n}{dt}&=f_n(t, x_1, x_2, \ldots, x_n) \end{align}\)

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,\ldots,x_n)\) and is parallel to the vector

\(\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}.\)

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,\ldots,x_n)\) make a uniform grid. The standard case, described above, represents \(n=1\). The general case of the slope field for systems of differential equations is not easy to visualize for \(n>2\).

General application

With computers, complicated slope fields can be quickly made without tedium, and so the 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.

Direction field code in GNU Octave/MATLAB

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

이제 너 계산기는 이것을 해결하지 않지만, 그 조각은 계산 가능합니다. 아래의 하나를 시도하거나 자신의 것을 입력하십시오.

자신의 작업을 유지

무료 계정은 모든 수업에 노트를 추가, 당신이 완료 한 기록, 당신이 해결 한 문제를 한 곳에, 그리고 당신이이 페이지에 대해 물어 수업 지도자. 수학 자체는 모두에게 열려 있습니다, 로그인 여부.

가입하기 로그인

여기서 사용된 기호

기호를 탭하면 전체 정의, 이미지 및 각 문자의 의미를 확인할 수 있습니다.

사람들이 묻는 질문

What is a differential equation?

An equation whose unknown is a function, relating it to its own derivatives. "The rate of growth is proportional to the population" is y′ = ky, and solving it means finding y as a function of time.

Why does the solution have arbitrary constants?

Integrating loses information: many functions share the same derivative. An n-th order equation has n constants, fixed by n initial or boundary conditions.

이 페이지의 일부는 다음에서 변경되었습니다. Wikipedia (CC BY-SA 4.0). 여기서 압축하고 다시 설명; 오류는 우리의.

에 더 Differential Equations