Linear First-Order Differential Equations

The differential equation of the form [Maple Math] is a linear first-order differential eqution. The solution to this equation is given by the formula

[Maple Math] . That this is indeed a solution of the differential equation is easily checked using Maple.

> y :=x-> (int(f(x)*exp(int(a(x),x)),x)+C)*exp(-int(a(x),x));

[Maple Math]

diff(y(x),x)+a(x)*y(x)-f(x);

[Maple Math]

> simplify(%);

[Maple Math]

We will use this formula to solve first-order linear equations. To faciliate are calulations we will introduce an operator FO (FO stands for first-order), and in this operator we will be substituting [Maple Math] and [Maple Math] .

> FO:=(int(f(x)*exp(int(a(x),x)),x)+C)*exp(-int(a(x),x));

[Maple Math]

Example 1: Solve [Maple Math] .

Example 2: Solve [Maple Math] where [Maple Math] .

b>