L'équation $y'=ay+b$~2 min
Soient $a\neq0$ et $b$ deux réels. Les solutions sur $\mathbb{R}$ de $y'=ay+b$ sont les fonctions $$f(x)=C\,\mathrm{e}^{ax}-\frac ba,\qquad C\in\mathbb{R}.$$ La fonction constante $x\mapsto-\dfrac ba$ est une solution particulière (la seule constante) ; les autres s'en déduisent en ajoutant une solution de $y'=ay$.
Exemple : $y'=2y-8$ : $-\dfrac ba=-\dfrac{-8}{2}=4$, solutions $C\mathrm{e}^{2x}+4$. $y'=-0{,}5y+3$ : $-\dfrac{3}{-0{,}5}=6$, solutions $C\mathrm{e}^{-0{,}5x}+6$.
Exemple : $y'+4y=2\iff y'=-4y+2$ : solutions $C\mathrm{e}^{-4x}+\dfrac12$. $3y'=y+6\iff y'=\dfrac13y+2$ : solutions $C\mathrm{e}^{x/3}-6$.
Une fonction constante $y=k$ a pour dérivée $0$ ; elle est solution si $0=ak+b$, c.-à-d. $k=-\dfrac ba$.
Si $f$ est une solution quelconque, posons $g=f+\dfrac ba$. Alors $g'=f'=af+b=a\Bigl(g-\dfrac ba\Bigr)+b=ag$ : $g$ est solution de $y'=ay$, donc $g(x)=C\mathrm{e}^{ax}$ et $f(x)=C\mathrm{e}^{ax}-\dfrac ba$.
1. Mettre l'équation sous la forme $y'=ay+b$ (isoler $y'$, coefficient $1$).
2. Écrire la solution générale $f(x)=C\mathrm{e}^{ax}-\dfrac ba$ (ou $C\mathrm{e}^{ax}$ si $b=0$).
3. Utiliser la condition initiale $y(x_{0})=y_{0}$ pour calculer $C$ : $C\mathrm{e}^{ax_{0}}-\dfrac ba=y_{0}$.
4. Vérifier la condition initiale sur la fonction obtenue (et, si le temps le permet, l'équation).
Pour tout $x_{0}$ et tout $y_{0}$, l'équation $y'=ay+b$ admet une unique solution vérifiant $y(x_{0})=y_{0}$ (admis). Une condition initiale « choisit » une courbe parmi toutes les courbes solutions, qui ne se coupent jamais.
$5y'-2y=4$ avec $y(0)=0$. (1) $y'=0{,}4y+0{,}8$. (2) Solutions : $C\mathrm{e}^{0{,}4x}-\dfrac{0{,}8}{0{,}4}=C\mathrm{e}^{0{,}4x}-2$. (3) $y(0)=C-2=0$, donc $C=2$. (4) $f(x)=2\mathrm{e}^{0{,}4x}-2$ ; contrôle : $f(0)=0$ ✓, et $5f'(x)-2f(x)=5\times0{,}8\mathrm{e}^{0{,}4x}-4\mathrm{e}^{0{,}4x}+4=4$. ✓
$y'=-3y$ avec $y(1)=5$ (condition en $x_{0}\neq0$). Solutions $C\mathrm{e}^{-3x}$ ; $C\mathrm{e}^{-3}=5$ donne $C=5\mathrm{e}^{3}$, d'où $f(x)=5\mathrm{e}^{3}\mathrm{e}^{-3x}=5\,\mathrm{e}^{-3(x-1)}$. On retient la forme $y_{0}\,\mathrm{e}^{a(x-x_{0})}$ : décalage de la variable.
$y'=-y+2$ avec $y(0)=5$ : $f(x)=3\mathrm{e}^{-x}+2$. Comme $a=-1\lt 0$, $f(x)\to2$ en $+\infty$ : la solution rejoint la solution constante (asymptote $y=2$). $f'(x)=-3\mathrm{e}^{-x}\lt 0$ : décroissante.