Loading…

Linear First Order Differential Equation Tool

Math Calculus • Differential Equations

View all topics

2. Linear First Order Differential Equation Tool

Solve linear first-order ODEs: \(\displaystyle y' + P(x)\,y = Q(x)\) using the integrating factor \(\mu(x)=e^{\int P(x)\,dx}\), with an optional initial condition \(y(x_0)=y_0\).

Equation
Input supports pi, e, sqrt( ), sin, cos, exp, etc. Use * for multiplication.
Initial condition (IVP) + probe
The plot shows the RK4 numerical solution through \((x_0,y_0)\). The marker at \(x^\*\) reports the approximated \(y(x^\*)\).
Graph settings (optional)
“Solution family” plots multiple IVPs \(y(x_0)=y_0\) on the same axes (thin colored curves), plus your main IVP (thick curve).
Ready
Enter \(P(x)\), \(Q(x)\), and click “Solve”.

Graph

IVP solution (pan/zoom) — axes/ticks shown

Drag to pan; mouse wheel to zoom; double-click resets. Axes are \(x\) (horizontal) and \(y\) (vertical) in your input units.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a linear first-order differential equation?

It is an equation that can be written as y' + P(x) y = Q(x), where P and Q depend only on x. The unknown function y appears only to the first power and is not multiplied by y'.

How does the integrating factor method solve y' + P(x) y = Q(x)?

The method uses mu(x)=e^(int P(x) dx) to turn the left side into a product derivative: d/dx(mu(x) y(x)) = mu(x) Q(x). Integrating then gives mu(x) y(x) = int mu(x) Q(x) dx + C.

How is the initial condition y(x0)=y0 used in the solution?

After integrating, the constant C is determined by substituting x=x0 and y=y0 into the integrated expression. The tool can also express the result using a definite-integral form from x0 to x.

What does the Solution family option do?

It plots multiple solution curves for the same P(x) and Q(x) using different initial values y(x0)=y0 provided in the y0 list. Your main IVP remains highlighted while the family curves are shown as additional overlays.

What does changing the RK4 steps affect?

RK4 steps control the numerical resolution of the plotted solution curve. More steps typically give a smoother and more accurate plot over the chosen x-range.