Loading…

Linear First Order Differential Equation Tool

Math Calculus • Multivariable Calculus

View all topics

Solve first-order linear differential equations in standard form \(\displaystyle \frac{dy}{dx}+P(x)y=Q(x)\). The calculator finds the integrating factor, multiplies the equation, integrates, applies the initial condition, estimates \(y(x^*)\), and animates the solution curve.

Standard form \(\displaystyle \frac{dy}{dx}+P(x)y=Q(x)\) Integrating factor \(\displaystyle \mu(x)=e^{\int P(x)\,dx}\) Product derivative \(\displaystyle \frac{d}{dx}\left[\mu(x)y\right]=\mu(x)Q(x)\) IVP formula \(\displaystyle y(x)=\frac{\mu(x_0)y_0+\int_{x_0}^{x}\mu(t)Q(t)\,dt}{\mu(x)}\)

Equation and initial condition

Equation format: \(\displaystyle y' + P(x)y = Q(x)\). Use variable x. Supported functions: sin, cos, tan, sqrt, abs, exp, ln, log. Constants: pi, e. Example: exp(-x).
Live preview

Quick examples

Ready
Enter a linear first-order differential equation and click “Solve”.

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 a first-order equation that can be written as dy/dx + P(x)y = Q(x), where P and Q depend only on x.

What is the integrating factor?

The integrating factor is mu(x)=e^(integral P(x) dx). Multiplying the equation by mu(x) turns the left side into the derivative of mu(x)y.

Why does the integrating factor method work?

After multiplication by mu(x), the equation becomes d/dx[mu(x)y]=mu(x)Q(x), which can be integrated directly.

How is the initial condition used?

The initial condition y(x0)=y0 is substituted into the integrated formula to determine the specific solution curve.

What is the IVP formula?

The IVP formula is y(x)=[mu(x0)y0 + integral from x0 to x of mu(t)Q(t) dt]/mu(x).

Why does the graph show a slope field?

The equation can be rewritten as y'=Q(x)-P(x)y. The slope field shows this slope at many points in the xy-plane.

Why might the exact solution preview be unavailable?

Some integrals do not simplify into elementary expressions automatically. The calculator still uses the integrating-factor formula and numerical methods to plot and evaluate the solution.

Are the axis numbers shown with units?

Yes. The graph tick labels include numerical values together with the selected x-axis and y-axis units.