Calculator first order differential equation with constant coefficients

Differential equation: y'+ay=b

y(x)+ay(x)=b

The general solution of the first order differential equation with constant coefficients is:

y(x)=ba+Ce-ax

Solution of the differential equation: y'+ay=b

For b = 0 the homogeneous first-order linear differential equation with constant coefficients is available.

y+ay=0

Solution of the homogeneous linear differential equation of first order with constant coefficients:

y=-ay

Transformation of equation

yy=-a

Division by y

(lny)=-a

Applying the chain rule

lny=-adx=-ax+C~

Integration

yh=Ce-ax

General solution of the homogeneous equation with undetermined constants C

Variation of the constants:

The solution of the inhomogeneous differential equations can be obtained from the homogeneous one. Generally the solution of the inhomogeneous equation is given by the solution of the homogeneous equation plus a special solution of the inhomogeneous equation. The special solution can be obtained by the method of variation of constants. Here the constant C of the homogeneous solution is assumed as a function of x and the homogeneous solution is inserted into the inhomogeneous equation. C(x) is then determined so that the equation is fulfilled.

yh=Ce-ax-aCe-ax

Derivation of the homogeneous solution with C as a function of x

Ce-ax-aCe-ax+aCe-ax=b

Insertion into the inhomogeneous equation

C=beax

By rearranging we obtain an equation for the determination of C

C=baeax

Integration gives C(x)

ys=ba

Insertion of C(x) in yh provides a special solution ys

y=ys+yh=ba+Ce-ax

This is the general solution of the inhomogeneous differential equation with constant coefficients

Calculator for the initial value problem of y'+ay=b

The calculator solves the initial value problem of y'+ay=b with the initial values x0, y0

Scale screen:
Number of digits =
Grid points:
Scale grid vectors=
Curve:
Grid:

Initial values

x0=
y0=

Parameter value

a=
b=

Axes ranges

x-min=
x-max=
y-min=
y-max=

Parameter ranges

a-min=
a-max=
b-min=
b-max=

Screenshot of the logistc growth graph

Print or save the image via right mouse click.

Releated sites

Here is a list of of further useful sites: