Correction du TD4 : Équations différentielles
Année 2024-2025
Exercice 1 - Équations différentielles linéaires du
premier ordre
a) Équation : y ′ + 2y = x2 sur R.
Solution :
— Solution homogène : yh (x) = Ce−2x
— Solution particulière : On cherche sous la forme yp (x) = Ax2 +
Bx + C
yp′ + 2yp = (2Ax + B) + 2(Ax2 + Bx + C) = x2
⇒ 2Ax2 + (2A + 2B)x + (B + 2C) = x2
Par identification : A = 12 , B = − 12 , C = 14
— Solution générale : y(x) = Ce−2x + 12 x2 − 12 x + 1
4
b) Équation : y ′ + y = 1
1+ex
sur R.
Solution :
— Solution homogène : yh (x) = Ce−x
— Solution particulière par variation de la constante :
yp (x) = C(x)e−x
ex
C ′ (x) =
1 + ex
C(x) = ln(1 + ex ) + K
— Solution générale : y(x) = (K + ln(1 + ex ))e−x
1
c) Équation : y ′ + y = 2 sin(x) sur R.
Solution :
— Solution homogène : yh (x) = Ce−x
— Solution particulière : On cherche sous la forme yp (x) = A cos(x)+
B sin(x)
yp′ + yp = (−A sin(x) + B cos(x)) + (A cos(x) + B sin(x)) = 2 sin(x)
⇒ (B − A) sin(x) + (A + B) cos(x) = 2 sin(x)
Par identification : A = −1, B = 1
— Solution générale : y(x) = Ce−x − cos(x) + sin(x)
d) Équation : y ′ − y = (x + 1)ex sur R.
Solution :
— Solution homogène : yh (x) = Cex
— Solution particulière : On cherche sous la forme yp (x) = (Ax2 +
Bx)ex
yp′ − yp = (2Ax + B + Ax2 + Bx − Ax2 − Bx)ex = (x + 1)ex
⇒ (2Ax + B) = x + 1
Par identification : A = 12 , B = 1
1 2
— Solution générale : y(x) = Cex + 2
x + x ex
e) Équation : x(x + 1)y ′ − (x + 2)y = 2x sur I.
Solution :
— On réécrit : y ′ − x(x+1)
x+2
y= 2
x+1
— Solution homogène :
y′ x+2 2 1
= = −
y x(x + 1) x x+1
ln |y| = 2 ln |x| − ln |x + 1| + C
x2
yh (x) = C
x+1
2
— Solution particulière par variation de la constante :
x2
yp (x) = C(x)
x+1
2(x + 1)
C ′ (x) = 3
x
1 2
C(x) = − 2 − + K
x x
x2 Kx2 −1−2x
K − x12 − x2 =
— Solution générale : y(x) = x+1 x+1
— Intervalle : I =] − 1, 0[ ou ]0, +∞[
Exercice 2 - Équations différentielles linéaires du
second ordre
a) Équation : y ′′ − 2y ′ − y = 0.
Solution :
— Équation caractéristique : r2 − 2r − 1 = 0
√
— Racines : r = 1 ± 2 √ √
— Solution générale : y(x) = C1 e(1+ 2)x + C2 e(1− 2)x
b) Équation : y ′′ + y ′ + y = cos(x).
Solution :
√
2 1 3
— Solution homogène : r + r + 1 = 0 ⇒ r = − 2
± i 2
yh (x) =
√ √
e−x/2 C1 cos 2
3
x + C2 sin 2
3
x
— Solution particulière : On cherche sous la forme yp (x) = A cos(x)+
B sin(x)
yp′′ + yp′ + yp = (−A cos(x) − B sin(x)) + (−A sin(x) + B cos(x)) + (A cos(x) + B sin(x))
⇒ (−A + B + A) cos(x) + (−B − A + B) sin(x) = cos(x)
Par identification : B = 1, A =
0 √ √
−x/2 3 3
— Solution générale : y(x) = e C1 cos 2
x + C2 sin 2
x +
sin(x)
c) Équation : y ′′ − y = e2x − ex .
Solution :
3
— Solution homogène : r2 − 1 = 0 ⇒ r = ±1 yh (x) = C1 ex + C2 e−x
— Solution particulière :
— Pour e2x : yp1 = Ae2x ⇒ A = 13
— Pour −ex : Comme ex est solution de l’homogène, on cherche
yp2 = Bxex
′′
yp2 − yp2 = (B(x + 2)ex ) − Bxex = −ex
1
⇒ 2Bex = −ex ⇒ B = −
2
— Solution générale : y(x) = C1 ex + C2 e−x + 31 e2x − 21 xex
d) Équation : y ′′ − 4y ′ + 3y = (2x + 1)e−x .
Solution :
— Solution homogène : r2 − 4r + 3 = 0 ⇒ r = 1 ou 3 yh (x) =
C1 ex + C2 e3x
— Solution particulière : On cherche sous la forme yp (x) = (Ax +
B)e−x
yp′′ − 4yp′ + 3yp = (Ae−x − 2(Ax + B − A)e−x + (Ax + B)e−x ) − 4(−(Ax + B)e−x + Ae−
= (8A)x + (8B − 6A) = 2x + 1
Par identification : A = 14 , B = 12
1 1
e−x
— Solution générale : y(x) = C1 ex + C2 e3x + 4
x + 2
e) Équation : y ′′ − 4y ′ + 3y = x2 ex + xe2x cos(x).
Solution :
— Solution homogène : yh (x) = C1 ex + C2 e3x
— Solution particulière :
— Pour x2 ex : Comme ex est solution, on cherche yp1 = (Ax3 +
Bx2 + Cx)ex
— Pour xe2x cos(x) : On cherche yp2 = e2x [(Dx + E) cos(x) +
(F x + G) sin(x)]
— (Calculs similaires aux précédents, mais plus longs)
— Solution générale : y(x) = C1 ex + C2 e3x + yp1 (x) + yp2 (x)
4
Exercice 3 - Problème de recollement
a) Équation : x2 y ′ − y = 0.
Solution :
′
— Pour x ̸= 0 : yy = x12 ⇒ ln |y| = − x1 + C ⇒ y(x) = Ke−1/x
— En x = 0 : On veut y(0) ( = limx→0 Ke−1/x = 0 pour K ≥ (0
−1/x
Ke si x > 0 0 si x ≥ 0
— Solution globale : y(x) = ou y(x) =
0 si x ≤ 0 Ke−1/x si x < 0
b) Équation : xy ′ + y − 1 = 0.
Solution :
— Pour x ̸= 0 : (xy)′ = 1 ⇒ xy = x + C ⇒ y = 1 + C
x
— En x = 0 : L’équation impose y(0) = 1
1 + Cx1 si x > 0
— Solution globale : y(x) = 1 si x = 0
C2
1 + x si x < 0
Exercice 4 - Équation de Bernoulli
a) Démonstration :
— On pose z = y 1−n
— On a z ′ = (1 − n)y −n y ′
— En multipliant l’équation par (1 − n)y −n : (1 − n)y −n y ′ + (1 −
n)a(x)y 1−n + (1 − n)b(x) = 0
— Ce qui donne : z ′ + (1 − n)a(x)z + (1 − n)b(x) = 0
— C’est bien une équation linéaire en z
b) Équation : xy ′ + y − xy 3 = 0.
Solution :
′
— On divise par xy 3 : yy3 + xy1 2 = 1
— On pose z = y −2 ⇒ z ′ = −2y −3 y ′
— L’équation devient : − 12 z ′ + xz = 1 ⇒ z ′ − x2 z = −2
— Solution homogène : zh (x) = Cx2
— Solution particulière : zp (x) = 2x1
— Solution générale : z(x) = Cx2 + 2x
— Retour à y : y(x) = ± √Cx12 +2x