Solved exercises on ordinary differential equations: first and second order, resonance, RC and RLC circuits
Eleven exercises with solutions: separable equations, first-order linear equations, second-order linear equations with constant coefficients and real, complex and double roots, undetermined coefficients, resonance, charging a capacitor, an underdamped RLC, the Bernoulli equation.
https://www.electronics-engineering.com/en/ordinary-differential-equations-exercises-solved/
Exercises on ordinary differential equations of the kind set in Mathematical Analysis 2 courses, in three levels: basic, for separable and first-order linear equations; intermediate, with second-order linear equations with constant coefficients, homogeneous and non-homogeneous; exam, with resonance, RC and RLC circuits and the Bernoulli equation. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 1. Exponential growth
Solve the initial value problem
,
.
Result:
.
Solution
The solutions of
are
: the derivative is proportional to the function. Here
and the initial condition gives
. Check:
.
Exercise 2. A separable equation
Solve
,
.
Result:
, defined for
.
Solution
Separate the variables (
):
. Integrating,
. With
you get
, so
![]()
The solution blows up as
: a non-linear equation can have solutions that exist only on an interval, even if the coefficients are defined everywhere.
Exercise 3. A first-order linear equation
Solve
,
.
Result:
.
Solution
The homogeneous equation
has solutions
. A particular solution is sought in the form of the forcing term,
:
gives
,
. So
and
gives
.
Alternatively, with the integrating factor
:
, which is integrated by parts.
Intermediate level
Exercise 4. Distinct real roots
Find the general solution of
.
Result:
.
Solution
Look for
: substituting gives the characteristic equation
, with roots
and
. The two exponentials are independent and generate all the solutions.
Exercise 5. Complex roots: the harmonic oscillator
Solve
,
,
.
Result:
.
Solution
The characteristic equation
has roots
, so
. The conditions give
and
,
.
Written as a single sinusoid: amplitude
and phase
. It is an oscillation with angular frequency 2 that does not die out.
Exercise 6. A double root
Find the general solution of
.
Result:
.
Solution
: double root
. Besides
a second independent solution is needed, and it is
(check by substituting). This is the critically damped case.
Exercise 7. A non-homogeneous equation with an exponential term
Find the general solution of
.
Result:
.
Solution
The homogeneous equation has roots
. Since
is not a root of the characteristic equation, the particular solution is sought as
:
,
. The general solution is the sum of the homogeneous solution and the particular one.
Exam level
Exercise 8. Resonance
Find a particular solution of
.
Result:
.
Solution
The forcing term has the same angular frequency as the homogeneous solutions (
are roots): the trial
would give zero. Multiply by
:
. Differentiating twice and substituting:
![]()
The amplitude grows linearly with time: this is resonance, what happens to an undamped system driven at its natural frequency.
Exercise 9. Charging a capacitor
In an RC circuit fed by a constant voltage
the capacitor voltage satisfies
, with
. Find
and the time to reach 90% of
.
Result:
; 90% is reached at
.
Solution
It is first-order linear with constant coefficients. The homogeneous equation gives
, the constant particular solution is
:
, and
gives
.
For 90%:
, so
and
. After one time constant
you are at about
.
Exercise 10. An underdamped RLC circuit
Solve
,
,
(for example the current in a discharging series RLC).
Result:
.
Solution
has roots
: an oscillation with angular frequency 2 inside the envelope
. So
.
;
, so
.
Exercise 11. The Bernoulli equation
Solve
,
.
Result:
.
Solution
Dividing by
and setting
, with
, the equation becomes linear:
![]()
Solution:
. With
you get
, so
. Check:
and
, equal.





