Skip to content
All apps

Direction field y'(x) = -x/y

About this app

Direction field of the ODE with solution family x² + y² = r² — pick the radius via slider.

What a direction field is

A first-order differential equation y′ = f(x, y) prescribes a slope at every point of the plane. Drawing a short segment with exactly that slope at many points gives the direction field, also called a slope field. Every solution curve is tangent to these segments. For y′ = −x/y each segment is perpendicular to the position vector (x, y). Separating variables gives y·y′ = −x, and integrating yields x² + y² = C: the solutions are circles centred at the origin.

What the app shows

The app draws the direction field of y′ = −x/y as a grid of short strokes and overlays one circle from the family of solutions. A slider sets the radius r, i.e. the constant C = r². A formula panel shows the solution family and the currently selected solution, and an info panel explains how the strokes and the curve relate. You can zoom with the mouse wheel or two fingers and pan once “Pan plane” is enabled.

Try it yourself

Move the radius slider slowly and check that each circle touches the strokes everywhere without ever crossing them. This shows that an ODE has a whole family of solutions and that an initial value picks one curve. Also look at the x-axis: there y = 0, the right-hand side −x/y is undefined, the strokes are vertical, and every solution y(x) ends there.

Frequently asked questions

What is a direction field for a differential equation?
A direction field shows small line segments with the slope prescribed by y′ = f(x, y) at many points. Solution curves run tangent to these segments everywhere. It lets you read off how solutions behave without solving the equation.
How do you solve the ODE y′ = −x/y?
Separate the variables: y·dy = −x·dx. Integrating gives y²/2 = −x²/2 + c, so x² + y² = C with C > 0. The solutions are circles around the origin; solved for y, y = ±√(C − x²) on −√C < x < √C.
Why does a differential equation have infinitely many solutions?
Integration introduces a free constant C, so there is a whole family of solutions. An initial condition y(x₀) = y₀ fixes C and selects a single curve. In the direction field exactly one solution curve passes through each admissible point.
What can I adjust in the app?
A slider sets the radius r of the solution circle, shown live in the direction field. You can also zoom and pan. The formula and info panels explain the family x² + y² = r².

Subject: Differential equations

More from Differential equations

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps