Fonctions de plusieurs variables
Résolutions détaillées Exercices 12 à 31
Contents
Exercice 12 Domaine de dénition 2
Exercice 13 Domaine de dénition 4
Exercice 14 Ligne de niveau 4
Exercice 15 Domaine, inégalité, limite, dérivées partielles 4
Exercice 16 Continuité en (0, 0) 6
Exercice 17 Calcul de limites 6
Exercice 18 Limites en (0, 0) 8
Exercice 19 Continuité de f en (0, 0) 9
Exercice 20 Continuité séparée mais pas globale 9
Exercice 21 Continuité et dérivées partielles 10
Exercice 22 Loi de Boyle-Mariotte et Van der Waals 11
Exercice 23 Équation d'onde 12
Exercice 24 Dérivées partielles 12
Exercice 25 Dérivées partielles d'ordre 1 et 2 13
Exercice 26 Formule de Taylor-Young à l'ordre 2 14
Exercice 27 Points critiques 15
Exercice 28 Diérentiabilité 16
Exercice 29 Extrema locaux et points selles 17
Exercice 30 Minimisation de la durée d'infection 18
Exercice 31 Bénéce maximal 19
1
Exercice 12
Exercice 12 Domaine de dénition p
f (x, y) = ln(6x − x2 − 6y − y 2 − 2) · 4 − x2 − y 2
Conditions nécessaires :
(a) Argument du logarithme > 0 :
6x − x2 − 6y − y 2 − 2 > 0
On complète le carré :
−(x2 − 6x) − (y 2 + 6y) − 2 > 0
− (x − 3)2 − 9 − (y + 3)2 − 9 − 2 > 0
−(x − 3)2 + 9 − (y + 3)2 + 9 − 2 > 0
(x − 3)2 + (y + 3)2 < 16
Disque ouvert de centre (3, −3), rayon 4.
(b) Radicande ≥ 0 :
4 − x2 − y 2 ≥ 0 ⇔ x2 + y 2 ≤ 4
Disque fermé de centre O = (0, 0), rayon 2.
Intersection : Il faut simultanément (x − 3) + (y + 3) < 16 ET x + y
2 2 2 2
≤ 4.
On vérie que le disque de rayon 2 centré à l'origine est entièrement √
contenu dans √ le disque
de centre
√ (3, −3) et rayon 4. En eet, la distance entre les centres est 9 + 9 = 3 2 ≈ 4,24,
et 3 2 + 2 ≈ 6,24 > 4...
Vérions plus précisément : pour (x, y) tel que x2 +y 2 ≤ 4, on a par l'inégalité triangulaire
: p √
(x − 3)2 + (y + 3)2 = x2 + y 2 − 6x + 6y + 18 ≤ 4 + 6 x2 + y 2 · 2 + 18
La condition (a) est plus restrictive. Le domaine est l'intersection des deux régions.
Df = (x, y) ∈ R2 | x2 + y 2 ≤ 4 et (x − 3)2 + (y + 3)2 < 16
C'est le disque fermé x2 + y 2 ≤ 4 (le plus petit, entièrement inclus dans l'autre disque
ouvert).
2
Domaine D12
4 y
Or = 2 x
−4 −2 2 4 6 8
−2
r=4
(3, −3)
−4
−6
−8
3
Exercice 13
Exercice 13 Domaine de dénition
x2 − 7y ecos x
f (x, y) =
x2 − 14x + y 2 + 6y − 6
Condition : Le dénominateur doit être non nul :
x2 − 14x + y 2 + 6y − 6 ̸= 0
Complétion du carré :
(x2 − 14x + 49) + (y 2 + 6y + 9) − 49 − 9 − 6 ̸= 0
(x − 7)2 + (y + 3)2 ̸= 64
Le dénominateur s'annule exactement sur le cercle de centre (7, −3) et de rayon 8.
Le numérateur x2 − 7y ecos x est déni partout sur R2 .
Df = R2 \ (x, y) ∈ R2 | (x − 7)2 + (y + 3)2 = 64
Tout le plan privé du cercle de centre (7, −3) et de rayon 8.
Exercice 14
Exercice 14 Ligne de niveau z
f (x, y) = ln(x2 − 6x + y 2 + 4y − 2)
La ligne de niveau z = 0 est dénie par f (x, y) = 0 :
ln(x2 − 6x + y 2 + 4y − 2) = 0 ⇔ x2 − 6x + y 2 + 4y − 2 = 1
x2 − 6x + y 2 + 4y − 3 = 0
Complétion du carré :
(x − 3)2 − 9 + (y + 2)2 − 4 − 3 = 0 ⇔ (x − 3)2 + (y + 2)2 = 16
La ligne de niveau z = 0 est le cercle de centre (3, −2) et de rayon 4.
Remarque : Il faut aussi vérier que le domaine de dénition de f contient ce cercle,
c'est-à-dire que l'argument du ln y est bien > 0 : sur ce cercle, l'argument vaut 1 > 0. ✓
Exercice 15
Exercice 15
x+y
f (x, y) = √ √
x+ y
4
1. Domaine de dénition
Conditions :
√
x dénie : x ≥ 0
√
y dénie : y ≥ 0
√ √
Dénominateur ̸= 0 : x + y ̸= 0 ⇔ non (x = 0 et y = 0)
D = {(x, y) ∈ R2 | x ≥ 0, y ≥ 0} \ {(0, 0)} = [0, +∞)2 \ {(0, 0)}
2. Montrer que |f (x, y)| ≤ √x + √y √ √
On factorise le numérateur en utilisant x + y = ( x)2 + ( y)2 et l'identité remarquable :
√ √ √ √
x + y = ( x + y)( x − y) + 2y (non immédiat)
Mieux : on écrit directement
√ √ √ √
x+y = x· x+ y· y
√ √ √ √ √ √
et on utilise x ≤ x + y et y ≤ x + y :
√ √ √ √ √ √ √ √ √ √ √ √
x + y = x · x + y · y ≤ ( x + y) x + ( x + y) y = ( x + y)2
Donc : √ √
x+y ( x + y)2 √ √
|f (x, y)| = √ √ ≤ √ √ = x+ y ■
x+ y x+ y
3. Limite en (0, 0)
D'après l'inégalité ci-dessus, pour (x, y) ∈ D :
√ √
0 ≤ |f (x, y)| ≤ x+ y
√ √ (x,y)→(0,0)
Comme x+ y −−−−−−→ 0, par le théorème des gendarmes :
lim f (x, y) = 0
(x,y)→(0,0)
4. Dérivées partielles √ √ √ √
x+y ( x + y)( x − y + . . .)
On simplie d'abord : √ √ = √ √ ... En fait, factorisons :
x+ y x+ y
√ √ √ √ √ √
x + y = ( x)2 + ( y)2 et x − y = ( x − y)( x + y)
Donc x + y = (x − y) + 2y ... On calcule directement les dérivées partielles.
Dérivée par rapport à x :
√ √ √ √
∂f ( x + y) · 1 − (x + y) · 1
√
2 x
x + y − 2x+y
√
x
= √ √ = √ √ 2
∂x ( x + y)2 ( x + y)
5
√ √ √ √ √
2 x( x + y) − (x + y) 2x + 2 xy − x − y x − y + 2 xy
= √ √ √ = √ √ √ = √ √ √
2 x( x + y)2 2 x( x + y)2 2 x( x + y)2
√ √ √ √
Or x − y + 2 xy = ( x + y)2 − 2y + 2 xy − . . ., plus simplement :
√ √ √ √ √ √ √
x + 2 xy − y = ( x + y)( x − y) + 2 xy = x − y + 2 xy
√ √ √ √ √ √
On note que ( x + y)2 = x + 2 xy + y , donc x − y + 2 xy = ( x + y)2 − 2y .
√
∂f x − y + 2 xy
(x, y) = √ √ √
∂x 2 x ( x + y)2
Par symétrie (en échangeant x ↔ y ) :
√
∂f y − x + 2 xy
(x, y) = √ √ √
∂y 2 y ( x + y)2
Exercice 16
Exercice 16 Continuité de f en (0,0)
6 5
x + y si (x, y) ̸= (0, 0)
f (x, y) = x4 + y 4
0 si (x, y) = (0, 0)
x6 + y 5
Il faut montrer que lim = 0.
Encadrement : (x,y)→(0,0) x4 + y 4
On cherche à majorer |f (x, y)|.
Pour les deux termes séparément :
|x6 | x6
≤ = x2 →
− 0
x4 + y 4 x4
|y 5 | |y|5
≤ = |y| →
− 0
x4 + y 4 y4
Donc par inégalité triangulaire :
|x6 + y 5 | x6 |y|5
|f (x, y)| = ≤ + ≤ x2 + |y|
x4 + y 4 x4 + y 4 x4 + y 4
Comme x2 + |y| → 0 quand (x, y) → (0, 0), par le théorème des gendarmes :
lim f (x, y) = 0 = f (0, 0)
(x,y)→(0,0)
Donc f est continue en (0, 0) et donc sur R . 2
Exercice 17
6
Exercice 17 Calcul de limites
1. lim
1
(x,y)→(1,1) x − y
La fonction x−y n'est pas dénie sur la droite y = x. En (1, 1), le dénominateur tend vers 0
La limite n'existe pas.
1
mais change de signe selon le chemin.
En eet, par le chemin y = 1+t(x−1) avec t ̸= 1, on peut faire tendre x−y
1 1
→ (1−t)(x−1) →
±∞ selon le signe.
La limite n'existe pas (l'expression tend vers +∞ ou −∞ selon la direction).
2. lim
y3
(x,y)→(1,0) (x − 1)2 + y 2
On pose u = x − 1, v = y , et on calcule lim(u,v)→(0,0) u2v+v2 .
3
En coordonnées polaires u = r cos θ, v = r sin θ :
v3 r3 sin3 θ
= = r sin3 θ
u2 + v 2 r2
Comme |r sin3 θ| ≤ r → 0, on conclut :
y3
lim =0
(x,y)→(1,0) (x − 1)2 + y 2
3. lim
xy
(x,y)→(0,0) x2 + y 2
r2 cos θ sin θ sin(2θ)
En coordonnées polaires : = cos θ sin θ = .
r2 2
Cette expression dépend de θ (par exemple θ = 0 donne 0, θ = π/4 donne 1/2).
La limite n'existe pas (dépend de la direction d'approche).
4. lim
x ln(1 + x3 )
(x,y)→(0,0) y(x2 + y 2 )
Cette limite n'existe pas car en prenant y → 0 avec x xé non nul, on a y(x2 + y 2 ) → 0 au
dénominateur. De même, sur le chemin y = x :
x ln(1 + x3 ) ln(1 + x3 ) x3 x
= ∼ = →0
x(2x2 ) 2x2 2x2 2
Sur le chemin y = x2 :
x ln(1 + x3 ) x · x3 x4
∼ = =1
x2 (x2 + x4 ) x2 · x2 x4
7
La limite n'existe pas (valeurs diérentes selon les chemins y = x et y = x2 ).
5. lim
xy 2
(x,y)→(0,0) x2 + y 4
Sur le chemin x = y 2 :
y2 · y2 y4 1
4 4
= 4
=
y +y 2y 2
0
Sur le chemin x = 0 : = 0.
y4
La limite n'existe pas (0 sur l'axe x = 0, 1
2
sur x = y 2 ).
Exercice 18
Exercice 18 Limites en (0,0)
a) f (x, y) = 1 + xy + y sin y
Pour (x, y) → (0, 0) avec y ̸= 0 :
(1 + x + y) sin y sin y
= (1 + x + y) · →
− (1 + 0 + 0) · 1 = 1
y y
car limy→0 siny y = 1.
lim f (x, y) = 1
(x,y)→(0,0)
b) f (x, y) = (x + y ) sin xy1
2 2
Pour (x, y) ̸= (0, 0) avec xy ̸= 0 :
1
(x2 + y 2 ) sin ≤ x2 + y 2 → 0
xy
lim f (x, y) = 0
(x,y)→(0,0)
c) f (x, y) = 1x+ −x +y y
2 2
1+x
Sur le chemin y = 0 : 2
→ +∞ quand x → 0+ .
x
8
La limite n'existe pas (divergence vers l'inni sur y = 0).
Exercice 19
Exercice 19 Continuité de f en (0,0)
2
6x y si (x, y) ̸= (0, 0)
f (x, y) = x2 + y 2
0 si (x, y) = (0, 0)
i) Par la dénition
6x2 y
On veut montrer lim = 0.
(x,y)→(0,0) x2 + y 2
Pour ε > 0, il faut x6x < ε.
2y
2 +y 2
On note que x2 ≤ x2 + y 2 , donc :
6x2 y 6x2 |y| p
≤ = 6|y| ≤ 6 x2 + y 2
x2 + y 2 x2
Pour x2 + y 2 < δ = ε/6, on a bien |f (x, y)| < ε.
p
ii) Par un encadrement
6x2 y
0≤ ≤ 6|y| ≤ 6∥(x, y)∥ → 0
x2 + y 2
iii) En coordonnées polaires (x = r cos θ, y = r sin θ)
6r2 cos2 θ · r sin θ
f (r cos θ, r sin θ) = = 6r cos2 θ sin θ
r2
|6r cos2 θ sin θ| ≤ 6r → 0 indépendamment de θ.
Par les trois méthodes, lim
(x,y)→(0,0)
f (x, y) = 0 = f (0, 0). f est continue en (0, 0).
Exercice 20
Exercice 20
2xy
si (x, y) ̸= (0, 0)
f (x, y) = x2 + y 2
0 si (x, y) = (0, 0)
9
1. Continuité séparée en (0, 0)
En x (xant y = 0) :
0
f (x, 0) = = 0 pour x ̸= 0, f (0, 0) = 0
x2
Donc x 7→ f (x, 0) est continue en x = 0.
En y (xant x = 0) :
0
f (0, y) = = 0 pour y ̸= 0, f (0, 0) = 0
y2
Donc y 7→ f (0, y) est continue en y = 0.
2. f n'est pas continue en (0, 0)
Sur le chemin y = x (avec x → 0, x ̸= 0) :
2x2 2x2
f (x, x) = = = 1 ̸= 0 = f (0, 0)
x2 + x2 2x2
f est séparément continue en (0, 0) mais pas globalement continue, car la limite le
long de y = x vaut 1 ̸= 0.
Exercice 21
Exercice 21
3 3
x − y si (x, y) ̸= (0, 0)
f (x, y) = x2 + y 2
0 si (x, y) = (0, 0)
Continuité en (0, 0)
En coordonnées polaires :
r3 (cos3 θ − sin3 θ)
f (r cos θ, r sin θ) = 2
= r(cos3 θ − sin3 θ)
r
|f | ≤ r| cos3 θ − sin3 θ| ≤ 2r → 0.
fest continue en .
(0, 0)
Dérivées partielles en (0, 0)
Par dénition :
h 3
∂f f (h, 0) − f (0, 0) 2 h
(0, 0) = lim = lim h = lim = 1
∂x h→0 h h→0 h h→0 h
−k 3
∂f f (0, k) − f (0, 0) 2 −k
(0, 0) = lim = lim k = lim = −1
∂y k→0 k k→0 k k→0 k
10
Continuité des dérivées partielles
Pour (x, y) ̸= (0, 0) :
∂f 3x2 (x2 + y 2 ) − 2x(x3 − y 3 ) x4 + 3x2 y 2 + 2xy 3
= =
∂x (x2 + y 2 )2 (x2 + y 2 )2
Sur le chemin y = x :
∂f x4 + 3x4 + 2x4 6x4 3 ∂f
(x, x) = 4
= 4
= ̸= 1 = (0, 0)
∂x 4x 4x 2 ∂x
Donc
∂f
∂x
n'est pas continue en (0, 0).
f est continue en (0, 0), les dérivées partielles existent en (0, 0) (valant 1 et −1), mais
elles ne sont pas continues en (0, 0). Cela implique que f n'est pas diérentiableen
(0, 0) au sens de Schwarz.
Exercice 22
Exercice 22 Gaz parfait et Van der Waals
1. Loi de Boyle-Mariotte : P V = RT
RT
On exprime P = .
V
∂P R ∂P RT
= , =− 2
∂T V ∂V V
∂P R ∂P RT
= , =− 2
∂T V ∂V V
2. Loi de Van der Waals : a
P + 2 (V − b) = RT
V
On exprime P :
RT a
P = − 2
V −b V
∂P R
=
∂T V −b
∂P RT 2a
=− 2
+ 3
∂V (V − b) V
∂P R ∂P RT 2a
= , =− 2
+ 3
∂T V −b ∂V (V − b) V
11
Exercice 23
Exercice 23 Équation d'onde
∂ 2f 2
2∂ f
f (x, t) = sin(x − ct), montrer = c
∂t2 ∂x2
Calculs : ∂f ∂ 2f
= cos(x − ct), = − sin(x − ct)
∂x ∂x2
∂f ∂ 2f
= −c cos(x − ct), = −c2 sin(x − ct)
∂t ∂t2
Vérication :
∂ 2f 2 2
2
2∂ f
= −c sin(x − ct) = c · − sin(x − ct) = c ■
∂t2 ∂x2
∂ 2f 2
2∂ f
f (x, t) = sin(x − ct) vérie bien l'équation d'onde = c .
∂t2 ∂x2
Exercice 24
Exercice 24 Dérivées partielles d'ordre 1 et 2
x2
f (x, y) = + cos(x3 + 3x2 y − y 2 + π)
y3
Posons u = x3 + 3x2 y − y 2 + π pour simplier l'écriture.
∂f 2x 2x
= 3 − sin(u) · (3x2 + 6xy) = 3 − 3x(x + 2y) sin(u)
∂x y y
∂f 3x2 3x2
= − 4 − sin(u) · (3x2 − 2y) = − 4 − (3x2 − 2y) sin(u)
∂y y y
∂ 2f 3x2
∂ ∂f ∂ 2
= = − 4 − (3x − 2y) sin u
∂x∂y ∂x ∂y ∂x y
6x
=− − 6x sin u − (3x2 − 2y) cos u · (3x2 + 6xy)
y4
6x
= − 4 − 6x sin u − 3x(x + 2y)(3x2 − 2y) cos u
y
∂ 2f 3x2 12x2
∂ 2
= − − (3x − 2y) sin u = + 2 sin u − (3x2 − 2y)2 cos u
∂y 2 ∂y y4 y5
12
∂f 2x
= 3 − 3x(x + 2y) sin(u)
∂x y
∂f 3x2
= − 4 − (3x2 − 2y) sin(u)
∂y y
∂ 2f 6x
= − 4 − 6x sin u − 3x(x + 2y)(3x2 − 2y) cos u
∂x∂y y
∂ 2f 12x2
2
= 5 + 2 sin u − (3x2 − 2y)2 cos u
∂y y
où u = x3 + 3x2 y − y 2 + π .
Exercice 25
Exercice 25 Dérivées partielles (3 fonctions)
1. x2 2
f (x, y) = 3 + ex +7xy+2y
y
3
Posons v = x2 + 7xy + 2y 3 .
∂f 2x
= 3 + (2x + 7y)ev
∂x y
∂f 3x2
= − 4 + (7x + 6y 2 )ev
∂y y
∂ 2f 6x 6x
= − 4 + 7ev + (7x + 6y 2 )(2x + 7y)ev = − 4 + 7 + (7x + 6y 2 )(2x + 7y) ev
∂x∂y y y
∂ 2f 12x2 v 2 2 v 12x2 2 2 v
= + 6ye + (7x + 6y ) e = + 6y + (7x + 6y ) e
∂y 2 y5 y5
2. f (x, y) = cos(x y + 5x + 7y − 1)
3 2
Posons w = x3 y 2 + 5x + 7y − 1.
∂f ∂f
= −(3x2 y 2 + 5) sin w, = −(2x3 y + 7) sin w
∂x ∂y
∂ 2f ∂
−(2x3 y + 7) sin w = −6x2 y sin w − (2x3 y + 7)(3x2 y 2 + 5) cos w
=
∂x∂y ∂x
∂ 2f
= −2x3 sin w − (2x3 y + 7)2 cos w
∂y 2
13
3. f (x, y) = e x2 y 7 +3x2 −7y−cos(2x)
Posons s = x2 y 7 + 3x2 − 7y − cos(2x).
∂f
= (2xy 7 + 6x + 2 sin(2x))es
∂x
∂f
= (7x2 y 6 − 7)es
∂y
∂ 2f
= (14xy 6 )es + (7x2 y 6 − 7)(2xy 7 + 6x + 2 sin(2x))es
∂x∂y
∂ 2f 2 5 s 2 6 2 s
2 5 2 6 2 s
= 42x y e + (7x y − 7) e = 42x y + (7x y − 7) e
∂y 2
Exercice 26
Exercice 26 Taylor-Young à l'ordre 2 en (0,0)
La formule de Taylor-Young à l'ordre 2 en (0,0) est :
1 2 ∂ 2f ∂ 2f 2
∂f ∂f 2∂ f
f (x, y) = f (0, 0)+x (0, 0)+y (0, 0)+ x (0, 0) + 2xy (0, 0) + y (0, 0) +o(∥(x, y)∥2 )
∂x ∂y 2 ∂x2 ∂x∂y ∂y 2
1. f (x, y) = ln(e + e ) x y
f (0, 0) = ln 2.
∂f ex ∂f 1
= x y
⇒ (0, 0) =
∂x e +e ∂x 2
∂f ey ∂f 1
= x y
⇒ (0, 0) =
∂y e +e ∂y 2
∂ 2f ex (ex + ey ) − e2x ex ey ∂ 2f 1
2
= x y 2
= x y 2
⇒ 2
(0, 0) =
∂x (e + e ) (e + e ) ∂x 4
∂ 2f
Par symétrie : (0, 0) = 14 .
∂y 2
∂ 2f −ex+y ∂ 2f 1
= x y 2
⇒ (0, 0) = −
∂x∂y (e + e ) ∂x∂y 4
x + y 1 x2 xy y 2
f (x, y) = ln 2 + + − + + o(∥(x, y)∥2 )
2 2 4 2 4
x + y (x − y)2
= ln 2 + + + o(∥(x, y)∥2 )
2 8
14
2. f (x, y) = sin(x + 2y)
f (0, 0) = 0.
∂f ∂f ∂f ∂f
= cos(x + 2y) ⇒ (0, 0) = 1, = 2 cos(x + 2y) ⇒ (0, 0) = 2
∂x ∂x ∂y ∂y
∂ 2f ∂ 2f ∂ 2f
= − sin(x + 2y) ⇒ 0, = −2 sin(x + 2y) ⇒ 0, = −4 sin(x + 2y) ⇒ 0
∂x2 ∂x∂y ∂y 2
f (x, y) = x + 2y + o(∥(x, y)∥2 )
Exercice 27
Exercice 27 Points critiques et leur nature
1. f (x, y) =
x2 y
2
2
+x +
y3
3
− 4y
∂f ∂f
Points critiques : = xy + 2x = x(y + 2) = 0 et = x2 + y 2 − 4 = 0.
2
Cas 1 : ∂x ∂y
x = 0 ⇒ y 2 = 4 ⇒ y = ±2. Points critiques : (0, 2) et (0, −2).
Cas 2 : 2
y = −2 ⇒ x2 + 4 − 4 = 0 ⇒ x = 0. Revient au cas 1.
Matrice hessienne : H=
y+2 x
x 2y
... (dérivées secondes).
fxx = y + 2, fxy = x, fyy = 2y .
∆ = fxx fyy − (fxy )2 = 2y(y + 2) − x2 .
En (0, 2) : ∆ = 2 · 2 · 4 − 0 = 16 > 0, fxx = 4 > 0 ⇒ minimum local .
En (0, −2) : ∆ = 2(−2)(0) − 0 = 0... recalculons : fxx (0, −2) = −2 + 2 = 0, fxy = 0,
fyy = −4. ∆ = 0 · (−4) − 0 = 0. Test inconclus.
(0, 2) est un minimum local. La nature de (0, −2) ne peut être déterminée par la matrice
hessienne (test inconclus, ∆ = 0).
2. f (x, y) = y + xy ln x
2
Domaine : x > 0.
∂f
= y ln x + y = y(ln x + 1) = 0 ⇒ y = 0 ou x = e−1
∂x
∂f
= 2y + x ln x = 0
∂y
Cas y = 0 : x ln x = 0 ⇒ x = 1. Point critique : (1, 0).
Cas x = 1/e : 2y + 1e (−1) = 0 ⇒ y = 2e 1
. Point critique : 1e , 2e1 .
fxx = xy , fxy = ln x + 1, fyy = 2.
En (1, 0) : fxx = 0, fxy = 1, fyy = 2. ∆ = 0 − 1 = −1 < 0 ⇒ point selle .
En e , 2e : fxx = 2e· 1 = 2 , fxy = 0, fyy = 2. ∆ = 2 · 2 − 0 = 1 > 0, fxx > 0 ⇒
1 1 1 1 1
minimum
local. e
15
3. f (x, y) = x + xy + y − 2x − y
2 2
∂f ∂f
= 2x + y − 2 = 0 et = x + 2y − 1 = 0.
∂x ∂y
Résolution : de la 2e équation x = 1 − 2y , substitution : 2(1 − 2y) + y − 2 = 0 ⇒ −3y =
0 ⇒ y = 0, x = 1.
Point critique : (1, 0).
fxx = 2, fxy = 1, fyy = 2. ∆ = 4 − 1 = 3 > 0, fxx > 0.
(1, 0) est un minimum local (et global car f est une forme quadratique dénie positive).
4. f (x, y) = 5x + 6y − xy sous contrainte x + 2y = 24
2 2
On substitue x = 24 − 2y :
g(y) = 5(24 − 2y)2 + 6y 2 − (24 − 2y)y = 5(576 − 96y + 4y 2 ) + 6y 2 − 24y + 2y 2
= 2880 − 480y + 20y 2 + 6y 2 − 24y + 2y 2 = 2880 − 504y + 28y 2
g ′ (y) = −504 + 56y = 0 ⇒ y = 9, x = 24 − 18 = 6.
g ′′ (y) = 56 > 0 : minimum
en (6, 9), f (6, 9) = 2880−504·9+28·81 = 2880−4536+2268 =
612.
Minimum sous contrainte atteint en (x, y) = (6, 9), valeur f (6, 9) = 612.
Exercice 28
Exercice 28 Diérentiabilité
1. f (x, y) = xy − 3x en (x , y ) = (1, 2)
2
0 0
f est un polynôme, donc C ∞ sur R2 :
∂f ∂f ∂f
diérentiable partout
.
∂f
= y − 6x, = x. En (1, 2) : (1, 2) = 2 − 6 = −4, (1, 2) = 1.
∂x ∂y ∂x ∂y
f est diérentiable en (1, 2), diérentielle df(1,2) = −4 dx + dy .
2. f (x, y) = y√x en (x , y ) = (4, 1)
0 0
f est C 1 pour x > 0 :
∂f ∂f √
diérentiable en
∂f
(4, 1).
∂f
= 2√y x , = x. En (4, 1) : (4, 1) = 14 , (4, 1) = 2.
∂x ∂y ∂x ∂y
f est diérentiable en (4, 1), diérentielle df(4,1) = 14 dx + 2 dy .
16
Exercice 29
Exercice 29 Extrema locaux et points selles
Rappel de méthode
Pour f de classe C 2 : on résout ∇f = 0, puis on étudie le signe de ∆ = fxx fyy − (fxy )2 :
∆ > 0, fxx > 0 : minimum local
∆ > 0, fxx < 0 : maximum local
∆ < 0 : point selle
∆ = 0 : test inconclus
1. f (x, y) = 2x + 2xy + y + 2x − 3
2 2
fx = 4x + 2y + 2 = 0, fy = 2x + 2y = 0 ⇒ x = −y . Substitution : −4y + 2y + 2 = 0 ⇒ y = 1,
x = −1.
fxx = 4, fxy = 2, fyy = 2. ∆ = 8 − 4 = 4 > 0, fxx > 0.
(−1, 1) est un minimum local, f (−1, 1) = 2 − 2 + 1 − 2 − 3 = −4.
2. f (x, y) = −5x + 4xy − y + 16x + 10
2 2
fx = −10x + 4y + 16 = 0, fy = 4x − 2y = 0 ⇒ y = 2x. Substitution : −10x + 8x + 16 = 0 ⇒
x = 8, y = 16.
fxx = −10, fxy = 4, fyy = −2. ∆ = 20 − 16 = 4 > 0, fxx < 0.
(8, 16) est un maximum local, f (8, 16) = −5 · 64 + 4 · 128 − 256 + 128 + 10 = 74.
3. f (x, y) = x − y + 4x − 4y − 8
2 2
fx = 2x + 4 = 0 ⇒ x = −2, fy = −2y − 4 = 0 ⇒ y = −2.
fxx = 2, fxy = 0, fyy = −2. ∆ = −4 < 0.
(−2, −2) est un point selle.
4. f (x, y) = y − 6y +
2 1 3
3x − 92 x2 + 20x
fx = x2 − 9x + 20 = (x − 4)(x − 5) = 0 ⇒ x = 4 ou x = 5.
fy = 2y − 6 = 0 ⇒ y = 3.
Points critiques : (4, 3) et (5, 3).
fxx = 2x − 9, fxy = 0, fyy = 2.
En (4, 3) : fxx = −1, ∆ = −2 < 0 ⇒ point selle
.
En (5, 3) : fxx = 1, ∆ = 2 > 0, fxx > 0 ⇒ minimum local.
17
5. f (x, y) = xe −x2 −y 2
= 0 ⇒ x = ± √12 .
2 −y 2 2 −y 2 2 −y 2
fx = e−x + x(−2x)e−x = (1 − 2x2 )e−x
0. Comme x ̸= 0, on a y = 0.
2 −y 2
fy = −2xye−x = 0 ⇒ xy =
Points critiques : √2 , 0 et − √2 , 0 .
1 1
fxx = (−2x − 2x + 4x3 )e−x −y · . . . Calculons directement :
2 2
fxx = (−4x + 4x3 − 2x)e−x −y ... Plus précisément :
2 2
2 2 2 2 2 2
fxx = ∂x [(1 − 2x2 )e−x −y ] = (−4x)e−x −y + (1 − 2x2 )(−2x)e−x −y = (−4x − 2x +
2 2 2 2
4x3 )e−x −y = (4x3 − 6x)e−x −y
2 2
fxy = (1 − 2x2 )(−2y)e−x −y
2
−x −y 2 2 2 2 2
−2xe
fyy = + (−2xy)(−2y)e−x −y = (−2x + 4xy 2 )e−x −y
En √1 , 0 : e−1/2 facteur commun. fxx = (4 · 2√1 2 − √62 )e−1/2 = ( √22 − √6 )e−1/2 =
maximum local.
2 2
−1/2
− √42 e < 0, fxy = 0, fyy = − √22 e−1/2 < 0. ∆ = fxx fyy > 0, fxx < 0 ⇒
En − 2 , 0 par symétrie : fxx > 0, ∆ > 0 ⇒
√1
minimum local.
6. f (x, y) = (x + y ) 2 2 1/3
+1
∇f = 32 (x2 + y 2 )−2/3 (x, y).
∇f = 0 seulement si (x, y) = (0, 0) où f n'est pas diérentiable.
Les dérivées partielles n'existent pas en (0, 0) (point anguleux). f n'est pas diérentiable
en (0, 0) mais (0, 0) est un minimum global car f ≥ 1 = f (0, 0).
7. f (x, y) = x + y 2 4
fx = 2x = 0 ⇒ x = 0, fy = 4y 3 = 0 ⇒ y = 0.
fxx = 2, fxy = 0, fyy = 12y 2 . En (0, 0) : ∆ = 0.
Test inconclus, mais f (x, y) = x2 + y 4 ≥ 0 = f (0, 0).
(0, 0) est un minimum global de f (x, y) = x + y . 2 4
Exercice 30
Exercice 30 Infection bactérienne
D(x, y) = x2 + 2y 2 − 18x − 24y + 2xy + 120
Points critiques :
∂D
= 2x − 18 + 2y = 0 ⇒ x + y = 9 (1)
∂x
∂D
= 4y − 24 + 2x = 0 ⇒ x + 2y = 12 (2)
∂y
(2) − (1) : y = 3, puis x = 9 − 3 = 6.
Nature : Dxx = 2, Dxy = 2, Dyy = 4. ∆ = 8 − 4 = 4 > 0, Dxx > 0.
La durée est minimisée pour x = 6 mg et y = 3 mg.
Dmin = 36 + 18 − 108 − 72 + 36 + 120 = 30 unités.
18
Exercice 31
Exercice 31 Maximisation du bénéce
q(x, y) = 20x − x2 + 16y − y 2 + 300 (milliers de kg produits)
Prix de vente : 10 ¿/kg. Coûts : m1 à 40 ¿/kg, m2 à 60 ¿/kg.
1. Fonction bénéce f (x, y)
Recette = 10 × q(x, y) = 10(20x − x2 + 16y − y 2 + 300)
Coût = 40x + 60y (en milliers d'euros, car x, y en milliers de kg)
Attention aux unités : q est en milliers de kg, vendu à 10 ¿/kg, donc recette = 10 000 q(x, y)
euros mais en restant en milliers d'euros, recette = 10q(x, y) k¿.
f (x, y) = 10(20x − x2 + 16y − y 2 + 300) − 40x − 60y
= 200x − 10x2 + 160y − 10y 2 + 3000 − 40x − 60y
f (x, y) = −10x2 − 10y 2 + 160x + 100y + 3000
2. Maximisation du bénéce
∂f
= −20x + 160 = 0 ⇒ x = 8
∂x
∂f
= −20y + 100 = 0 ⇒ y = 5
∂y
fxx = −20 < 0, fyy = −20 < 0, fxy = 0. ∆ = 400 > 0, fxx < 0.
Le bénéce est maximum pour x = 8 milliers de kg de m 1 et y = 5 milliers de kg de
m2 .
f (8, 5) = −10(64) − 10(25) + 160(8) + 100(5) + 3000 = −640 − 250 + 1280 + 500 + 3000 =
3890 milliers d'euros.
19