Introduction§
Le passage d’une variable à plusieurs variables est un saut conceptuel majeur. De nombreux phénomènes physiques (champs de température, de vitesse, potentiels) sont modélisés par des fonctions f : R n → R p f : \mathbb{R}^n \to \mathbb{R}^p f : R n → R p . Ce chapitre construit les outils d’analyse correspondants : dérivées partielles, différentielle, extrema.
1. Topologie de R n \mathbb{R}^n R n §
1.1 Normes sur R n \mathbb{R}^n R n §
On munit R n \mathbb{R}^n R n des normes classiques :
∣ x ∣ 1 = ∑ i = 1 n ∣ x i ∣ |x|_1 = \sum_{i=1}^n |x_i| ∣ x ∣ 1 = ∑ i = 1 n ∣ x i ∣
∣ x ∣ 2 = ( ∑ i = 1 n x i 2 ) 1 / 2 |x|_2 = \left(\sum_{i=1}^n x_i^2\right)^{1/2} ∣ x ∣ 2 = ( ∑ i = 1 n x i 2 ) 1/2 (norme euclidienne)
∣ x ∣ ∞ = max 1 ≤ i ≤ n ∣ x i ∣ |x|_\infty = \max_{1 \leq i \leq n} |x_i| ∣ x ∣ ∞ = max 1 ≤ i ≤ n ∣ x i ∣
En dimension finie, toutes les normes sont équivalentes : elles définissent la même topologie.
1.2 Ouverts, fermés, compacts§
Soit A ⊂ R n A \subset \mathbb{R}^n A ⊂ R n .
A A A est ouvert si pour tout x ∈ A x \in A x ∈ A , il existe r > 0 r > 0 r > 0 tel que B ( x , r ) ⊂ A B(x, r) \subset A B ( x , r ) ⊂ A .
A A A est fermé si R n ∖ A \mathbb{R}^n \setminus A R n ∖ A est ouvert, ou de manière équivalente, si A A A contient toutes ses valeurs d’adhérence.
A A A est borné si A ⊂ B ( 0 , R ) A \subset B(0, R) A ⊂ B ( 0 , R ) pour un certain R > 0 R > 0 R > 0 .
A A A est compact si A A A est fermé et borné (théorème de Heine-Borel en dimension finie).
En dimension finie : compact ⟺ \iff ⟺ fermé et borné. Voir Topologie Prépa pour le cadre général des espaces métriques.
2. Limites et continuité§
2.1 Limite d’une fonction en plusieurs variables§
Soit f : U ⊂ R n → R p f : U \subset \mathbb{R}^n \to \mathbb{R}^p f : U ⊂ R n → R p et a ∈ U ‾ a \in \overline{U} a ∈ U . On dit que f ( x ) → ℓ f(x) \to \ell f ( x ) → ℓ quand x → a x \to a x → a si :
∀ ε > 0 , , ∃ δ > 0 , , ∀ x ∈ U , ∣ x − a ∣ < δ ⟹ ∣ f ( x ) − ℓ ∣ < ε \forall \varepsilon > 0,, \exists \delta > 0,, \forall x \in U, \quad |x - a| < \delta \implies |f(x) - \ell| < \varepsilon ∀ ε > 0 ,, ∃ δ > 0 ,, ∀ x ∈ U , ∣ x − a ∣ < δ ⟹ ∣ f ( x ) − ℓ ∣ < ε
En dimension ≥ 2 \geq 2 ≥ 2 , il ne suffit pas de vérifier la limite le long des droites passant par a a a . Il faut que la limite soit la même le long de tous les chemins .
f ( x , y ) = x y x 2 + y 2 f(x,y) = \dfrac{xy}{x^2 + y^2} f ( x , y ) = x 2 + y 2 x y pour ( x , y ) ≠ ( 0 , 0 ) (x,y) \neq (0,0) ( x , y ) = ( 0 , 0 ) .
Le long de y = 0 y = 0 y = 0 : f ( x , 0 ) = 0 → 0 f(x, 0) = 0 \to 0 f ( x , 0 ) = 0 → 0 .
Le long de y = x y = x y = x : f ( x , x ) = x 2 / ( 2 x 2 ) = 1 / 2 f(x, x) = x^2/(2x^2) = 1/2 f ( x , x ) = x 2 / ( 2 x 2 ) = 1/2 .
Les limites diffèrent, donc f f f n’a pas de limite en ( 0 , 0 ) (0,0) ( 0 , 0 ) .
2.2 Continuité§
f f f est continue en a a a si lim x → a f ( x ) = f ( a ) \displaystyle\lim_{x \to a} f(x) = f(a) x → a lim f ( x ) = f ( a ) . Les opérations algébriques et la composition préservent la continuité.
Théorème des bornes atteintes Une fonction continue sur un compact est bornée et atteint ses bornes.
3. Dérivées partielles§
3.1 Définition§
Soit f : U ⊂ R n → R f : U \subset \mathbb{R}^n \to \mathbb{R} f : U ⊂ R n → R , U U U ouvert, a ∈ U a \in U a ∈ U . La dérivée partielle de f f f par rapport à x i x_i x i en a a a est :
∂ f ∂ x i ( a ) = lim h → 0 f ( a 1 , … , a i + h , … , a n ) − f ( a ) h \frac{\partial f}{\partial x_i}(a) = \lim_{h \to 0} \frac{f(a_1, \ldots, a_i + h, \ldots, a_n) - f(a)}{h} ∂ x i ∂ f ( a ) = h → 0 lim h f ( a 1 , … , a i + h , … , a n ) − f ( a )
si cette limite existe.
∂ f ∂ x i ( a ) \dfrac{\partial f}{\partial x_i}(a) ∂ x i ∂ f ( a ) est la dérivée de la fonction d’une variable t ↦ f ( a 1 , … , a i − 1 , t , a i + 1 , … , a n ) t \mapsto f(a_1, \ldots, a_{i-1}, t, a_{i+1}, \ldots, a_n) t ↦ f ( a 1 , … , a i − 1 , t , a i + 1 , … , a n ) en t = a i t = a_i t = a i . On « gèle » toutes les variables sauf x i x_i x i .
3.2 Calcul pratique§
f ( x , y ) = x 2 y + sin ( x y ) f(x, y) = x^2 y + \sin(xy) f ( x , y ) = x 2 y + sin ( x y ) .
∂ f ∂ x = 2 x y + y cos ( x y ) , ∂ f ∂ y = x 2 + x cos ( x y ) \frac{\partial f}{\partial x} = 2xy + y\cos(xy), \qquad \frac{\partial f}{\partial y} = x^2 + x\cos(xy) ∂ x ∂ f = 2 x y + y cos ( x y ) , ∂ y ∂ f = x 2 + x cos ( x y )
Existence des dérivées partielles ⇏ \not\Rightarrow ⇒ continuité
f ( x , y ) = { x y x 2 + y 2 si ( x , y ) ≠ ( 0 , 0 ) 0 si ( x , y ) = ( 0 , 0 ) f(x,y) = \begin{cases} \dfrac{xy}{x^2+y^2} & \text{si } (x,y) \neq (0,0) \ 0 & \text{si } (x,y) = (0,0) \end{cases} f ( x , y ) = { x 2 + y 2 x y si ( x , y ) = ( 0 , 0 ) 0 si ( x , y ) = ( 0 , 0 )
admet des dérivées partielles en ( 0 , 0 ) (0,0) ( 0 , 0 ) (toutes deux nulles), mais n’est pas continue en ( 0 , 0 ) (0,0) ( 0 , 0 ) .
4. Gradient et Jacobienne§
4.1 Gradient§
Si f : U ⊂ R n → R f : U \subset \mathbb{R}^n \to \mathbb{R} f : U ⊂ R n → R admet toutes ses dérivées partielles en a a a , le gradient de f f f en a a a est :
∇ f ( a ) = grad f ( a ) = ( ∂ f ∂ x 1 ( a ) , … , ∂ f ∂ x n ( a ) ) \nabla f(a) = \operatorname{grad} f(a) = \left(\frac{\partial f}{\partial x_1}(a), \ldots, \frac{\partial f}{\partial x_n}(a)\right) ∇ f ( a ) = grad f ( a ) = ( ∂ x 1 ∂ f ( a ) , … , ∂ x n ∂ f ( a ) )
Interprétation géométrique Le gradient pointe dans la direction de plus grande pente de f f f . Sa norme est le taux de variation maximal.
4.2 Matrice jacobienne§
Pour f = ( f 1 , … , f p ) : U ⊂ R n → R p f = (f_1, \ldots, f_p) : U \subset \mathbb{R}^n \to \mathbb{R}^p f = ( f 1 , … , f p ) : U ⊂ R n → R p , la matrice jacobienne en a a a est :
J f ( a ) = ( ∂ f 1 ∂ x 1 ( a ) ⋯ ∂ f 1 ∂ x n ( a ) ⋮ ⋱ ⋮ ∂ f p ∂ x 1 ( a ) ⋯ ∂ f p ∂ x n ( a ) ) J_f(a) = \begin{pmatrix} \dfrac{\partial f_1}{\partial x_1}(a) & \cdots & \dfrac{\partial f_1}{\partial x_n}(a) \ \vdots & \ddots & \vdots \ \dfrac{\partial f_p}{\partial x_1}(a) & \cdots & \dfrac{\partial f_p}{\partial x_n}(a) \end{pmatrix} J f ( a ) = ( ∂ x 1 ∂ f 1 ( a ) ⋯ ∂ x n ∂ f 1 ( a ) ⋮ ⋱ ⋮ ∂ x 1 ∂ f p ( a ) ⋯ ∂ x n ∂ f p ( a ) )
Si p = 1 p = 1 p = 1 , la jacobienne est le gradient (transposé en ligne). Le jacobien (déterminant de la jacobienne pour p = n p = n p = n ) intervient dans les changements de variables pour les intégrales multiples.
5. Différentielle§
5.1 Définition§
f : U ⊂ R n → R p f : U \subset \mathbb{R}^n \to \mathbb{R}^p f : U ⊂ R n → R p est différentiable en a ∈ U a \in U a ∈ U s’il existe une application linéaire L : R n → R p L : \mathbb{R}^n \to \mathbb{R}^p L : R n → R p telle que :
f ( a + h ) = f ( a ) + L ( h ) + o ( ∣ h ∣ ) quand h → 0 f(a + h) = f(a) + L(h) + o(|h|) \quad \text{quand } h \to 0 f ( a + h ) = f ( a ) + L ( h ) + o ( ∣ h ∣ ) quand h → 0
L’application L L L est unique et s’appelle la différentielle de f f f en a a a , notée d f a df_a d f a ou D f ( a ) Df(a) D f ( a ) .
Lien avec les dérivées partielles Si f f f est différentiable en a a a , alors f f f admet toutes ses dérivées partielles en a a a et :
d f a ( h ) = ∑ i = 1 n ∂ f ∂ x i ( a ) , h i = J f ( a ) ⋅ h df_a(h) = \sum_{i=1}^n \frac{\partial f}{\partial x_i}(a),h_i = J_f(a) \cdot h d f a ( h ) = i = 1 ∑ n ∂ x i ∂ f ( a ) , h i = J f ( a ) ⋅ h
La matrice de d f a df_a d f a dans la base canonique est la matrice jacobienne.
L’existence des dérivées partielles ne garantit pas la différentiabilité. Mais si les dérivées partielles existent et sont continues au voisinage de a a a , alors f f f est différentiable en a a a .
5.2 Propriétés§
Différentiable ⇒ \Rightarrow ⇒ continue (mais pas la réciproque).
Règle de la chaîne : si f f f est différentiable en a a a et g g g différentiable en f ( a ) f(a) f ( a ) , alors g ∘ f g \circ f g ∘ f est différentiable en a a a et d ( g ∘ f ) a = d g f ( a ) ∘ d f a d(g \circ f)_a = dg_{f(a)} \circ df_a d ( g ∘ f ) a = d g f ( a ) ∘ d f a , soit en termes de matrices jacobiennes :
J g ∘ f ( a ) = J g ( f ( a ) ) ⋅ J f ( a ) J_{g \circ f}(a) = J_g(f(a)) \cdot J_f(a) J g ∘ f ( a ) = J g ( f ( a )) ⋅ J f ( a )
6. Fonctions de classe C k \mathcal{C}^k C k §
f f f est de classe C k \mathcal{C}^k C k sur U U U si toutes ses dérivées partielles d’ordre ≤ k \leq k ≤ k existent et sont continues sur U U U .
6.1 Théorème de Schwarz§
Si f f f est de classe C 2 \mathcal{C}^2 C 2 sur un ouvert U U U , alors pour tous i , j i, j i , j :
∂ 2 f ∂ x i ∂ x j = ∂ 2 f ∂ x j ∂ x i \frac{\partial^2 f}{\partial x_i \partial x_j} = \frac{\partial^2 f}{\partial x_j \partial x_i} ∂ x i ∂ x j ∂ 2 f = ∂ x j ∂ x i ∂ 2 f
Les dérivées partielles d’ordre 2 commutent .
Pour les fonctions « raisonnables » (de classe C 2 \mathcal{C}^2 C 2 ), l’ordre de dérivation n’a pas d’importance. C’est un résultat que l’on utilise constamment.
7.1 Développement de Taylor à l’ordre 1§
f ( a + h ) = f ( a ) + ∑ i = 1 n ∂ f ∂ x i ( a ) , h i + o ( ∣ h ∣ ) f(a + h) = f(a) + \sum_{i=1}^n \frac{\partial f}{\partial x_i}(a),h_i + o(|h|) f ( a + h ) = f ( a ) + i = 1 ∑ n ∂ x i ∂ f ( a ) , h i + o ( ∣ h ∣ )
7.2 Développement de Taylor à l’ordre 2§
Pour f f f de classe C 2 \mathcal{C}^2 C 2 au voisinage de a a a :
f ( a + h ) = f ( a ) + ∑ i = 1 n ∂ f ∂ x i ( a ) , h i + 1 2 ∑ i , j = 1 n ∂ 2 f ∂ x i ∂ x j ( a ) , h i h j + o ( ∣ h ∣ 2 ) f(a + h) = f(a) + \sum_{i=1}^n \frac{\partial f}{\partial x_i}(a),h_i + \frac{1}{2}\sum_{i,j=1}^n \frac{\partial^2 f}{\partial x_i \partial x_j}(a),h_i h_j + o(|h|^2) f ( a + h ) = f ( a ) + i = 1 ∑ n ∂ x i ∂ f ( a ) , h i + 2 1 i , j = 1 ∑ n ∂ x i ∂ x j ∂ 2 f ( a ) , h i h j + o ( ∣ h ∣ 2 )
Le terme quadratique fait intervenir la matrice hessienne .
7.3 Matrice hessienne§
La matrice hessienne de f : R n → R f : \mathbb{R}^n \to \mathbb{R} f : R n → R en a a a est la matrice symétrique (par Schwarz) :
H f ( a ) = ( ∂ 2 f ∂ x i ∂ x j ( a ) ) 1 ≤ i , j ≤ n H_f(a) = \left(\frac{\partial^2 f}{\partial x_i \partial x_j}(a)\right)_{1 \leq i,j \leq n} H f ( a ) = ( ∂ x i ∂ x j ∂ 2 f ( a ) ) 1 ≤ i , j ≤ n
La forme quadratique associée q ( h ) = h T H f ( a ) , h q(h) = h^T H_f(a),h q ( h ) = h T H f ( a ) , h détermine la nature des points critiques.
8. Extrema locaux§
8.1 Condition nécessaire§
Théorème (Condition nécessaire d’ordre 1) Si f f f admet un extremum local en a a a (point intérieur à U U U ) et si f f f est différentiable en a a a , alors :
∇ f ( a ) = 0 \nabla f(a) = 0 ∇ f ( a ) = 0
Un tel point est appelé point critique (ou point stationnaire).
8.2 Condition suffisante en dimension 2§
Pour f : R 2 → R f : \mathbb{R}^2 \to \mathbb{R} f : R 2 → R de classe C 2 \mathcal{C}^2 C 2 , soit ( a , b ) (a, b) ( a , b ) un point critique. On note :
r = ∂ 2 f ∂ x 2 ( a , b ) , s = ∂ 2 f ∂ x ∂ y ( a , b ) , t = ∂ 2 f ∂ y 2 ( a , b ) r = \frac{\partial^2 f}{\partial x^2}(a,b), \quad s = \frac{\partial^2 f}{\partial x \partial y}(a,b), \quad t = \frac{\partial^2 f}{\partial y^2}(a,b) r = ∂ x 2 ∂ 2 f ( a , b ) , s = ∂ x ∂ y ∂ 2 f ( a , b ) , t = ∂ y 2 ∂ 2 f ( a , b )
et Δ = r t − s 2 = det H f ( a , b ) \Delta = rt - s^2 = \det H_f(a,b) Δ = r t − s 2 = det H f ( a , b ) .
Théorème (Condition suffisante)
Si Δ > 0 \Delta > 0 Δ > 0 et r > 0 r > 0 r > 0 : minimum local
Si Δ > 0 \Delta > 0 Δ > 0 et r < 0 r < 0 r < 0 : maximum local
Si Δ < 0 \Delta < 0 Δ < 0 : point selle (pas d’extremum)
Si Δ = 0 \Delta = 0 Δ = 0 : on ne peut pas conclure
8.3 Condition suffisante en dimension n n n §
On étudie le signe de la matrice hessienne H f ( a ) H_f(a) H f ( a ) :
H f ( a ) H_f(a) H f ( a ) définie positive ⇒ \Rightarrow ⇒ minimum local
H f ( a ) H_f(a) H f ( a ) définie négative ⇒ \Rightarrow ⇒ maximum local
H f ( a ) H_f(a) H f ( a ) indéfinie (valeurs propres de signes différents) ⇒ \Rightarrow ⇒ point selle
8.4 Stratégie de classification des points critiques (dimension 2)§
flowchart TD
A["Trouver les points critiques\n∇f = 0"] --> B["Calculer r, s, t\net Δ = rt - s²"]
B --> C{"Δ > 0 ?"}
C -- Oui --> D{"r > 0 ?"}
D -- Oui --> E["MINIMUM LOCAL"]
D -- Non --> F["MAXIMUM LOCAL"]
C -- Non --> G{"Δ < 0 ?"}
G -- Oui --> H["POINT SELLE"]
G -- Non --> I["Δ = 0\nExamen plus poussé\n(Taylor d'ordre supérieur\nou étude directe)"]
9. Extrema liés : multiplicateurs de Lagrange§
9.1 Position du problème§
On cherche les extrema de f ( x ) f(x) f ( x ) sous la contrainte g ( x ) = 0 g(x) = 0 g ( x ) = 0 (ou g 1 ( x ) = ⋯ = g k ( x ) = 0 g_1(x) = \cdots = g_k(x) = 0 g 1 ( x ) = ⋯ = g k ( x ) = 0 ).
9.2 Théorème des multiplicateurs de Lagrange§
Soient f , g : R n → R f, g : \mathbb{R}^n \to \mathbb{R} f , g : R n → R de classe C 1 \mathcal{C}^1 C 1 . Si f f f admet un extremum en a a a sur l’ensemble x ∈ R n : g ( x ) = 0 {x \in \mathbb{R}^n : g(x) = 0} x ∈ R n : g ( x ) = 0 , et si ∇ g ( a ) ≠ 0 \nabla g(a) \neq 0 ∇ g ( a ) = 0 , alors il existe λ ∈ R \lambda \in \mathbb{R} λ ∈ R tel que :
∇ f ( a ) = λ , ∇ g ( a ) \nabla f(a) = \lambda,\nabla g(a) ∇ f ( a ) = λ , ∇ g ( a )
Le réel λ \lambda λ est le multiplicateur de Lagrange .
Interprétation géométrique À l’extremum, le gradient de f f f est colinéaire au gradient de g g g . Autrement dit, les courbes de niveau de f f f sont tangentes à la courbe de contrainte g = 0 g = 0 g = 0 .
9.3 Méthode pratique§
Pour optimiser f f f sous la contrainte g = 0 g = 0 g = 0 :
Résoudre le système :
{ ∇ f ( x ) = λ , ∇ g ( x ) g ( x ) = 0 \begin{cases} \nabla f(x) = \lambda,\nabla g(x) \ g(x) = 0 \end{cases} { ∇ f ( x ) = λ , ∇ g ( x ) g ( x ) = 0
Cela donne n + 1 n + 1 n + 1 équations à n + 1 n + 1 n + 1 inconnues (x 1 , … , x n , λ x_1, \ldots, x_n, \lambda x 1 , … , x n , λ ).
Parmi les solutions, identifier les minima et maxima (par exemple en comparant les valeurs de f f f , ou par un argument de compacité).
Maximiser f ( x , y ) = x y f(x,y) = xy f ( x , y ) = x y sous la contrainte g ( x , y ) = x 2 + y 2 − 1 = 0 g(x,y) = x^2 + y^2 - 1 = 0 g ( x , y ) = x 2 + y 2 − 1 = 0 .
∇ f = ( y , x ) \nabla f = (y, x) ∇ f = ( y , x ) , ∇ g = ( 2 x , 2 y ) \nabla g = (2x, 2y) ∇ g = ( 2 x , 2 y ) .
Système : y = 2 λ x y = 2\lambda x y = 2 λ x , x = 2 λ y x = 2\lambda y x = 2 λ y , x 2 + y 2 = 1 x^2 + y^2 = 1 x 2 + y 2 = 1 .
De la première : y = 2 λ x y = 2\lambda x y = 2 λ x . Dans la deuxième : x = 2 λ ( 2 λ x ) = 4 λ 2 x x = 2\lambda(2\lambda x) = 4\lambda^2 x x = 2 λ ( 2 λ x ) = 4 λ 2 x .
Si x ≠ 0 x \neq 0 x = 0 : 4 λ 2 = 1 4\lambda^2 = 1 4 λ 2 = 1 , donc λ = ± 1 / 2 \lambda = \pm 1/2 λ = ± 1/2 .
λ = 1 / 2 \lambda = 1/2 λ = 1/2 : y = x y = x y = x , avec 2 x 2 = 1 2x^2 = 1 2 x 2 = 1 , soit ( x , y ) = ( ± 1 / 2 , ± 1 / 2 ) (x,y) = (\pm 1/\sqrt{2}, \pm 1/\sqrt{2}) ( x , y ) = ( ± 1/ 2 , ± 1/ 2 ) , f = 1 / 2 f = 1/2 f = 1/2 .
λ = − 1 / 2 \lambda = -1/2 λ = − 1/2 : y = − x y = -x y = − x , soit ( x , y ) = ( ± 1 / 2 , ∓ 1 / 2 ) (x,y) = (\pm 1/\sqrt{2}, \mp 1/\sqrt{2}) ( x , y ) = ( ± 1/ 2 , ∓ 1/ 2 ) , f = − 1 / 2 f = -1/2 f = − 1/2 .
Maximum : f = 1 / 2 f = 1/2 f = 1/2 , atteint en ( ± 1 / 2 , ± 1 / 2 ) (\pm 1/\sqrt{2}, \pm 1/\sqrt{2}) ( ± 1/ 2 , ± 1/ 2 ) .
10. Exercices types corrigés§
Exercice 1 : Calcul de dérivées partielles et gradient§
Soit f ( x , y , z ) = x 2 y , e x z f(x, y, z) = x^2 y,e^{xz} f ( x , y , z ) = x 2 y , e x z . Calculer ∇ f \nabla f ∇ f .
Solution.
∂ f ∂ x = 2 x y , e x z + x 2 y ⋅ z , e x z = x y , e x z ( 2 + x z ) \frac{\partial f}{\partial x} = 2xy,e^{xz} + x^2 y \cdot z,e^{xz} = xy,e^{xz}(2 + xz) ∂ x ∂ f = 2 x y , e x z + x 2 y ⋅ z , e x z = x y , e x z ( 2 + x z )
∂ f ∂ y = x 2 , e x z \frac{\partial f}{\partial y} = x^2,e^{xz} ∂ y ∂ f = x 2 , e x z
∂ f ∂ z = x 2 y ⋅ x , e x z = x 3 y , e x z \frac{\partial f}{\partial z} = x^2 y \cdot x,e^{xz} = x^3 y,e^{xz} ∂ z ∂ f = x 2 y ⋅ x , e x z = x 3 y , e x z
∇ f ( x , y , z ) = ( x y , e x z ( 2 + x z ) , ; x 2 e x z , ; x 3 y , e x z ) \boxed{\nabla f(x,y,z) = \left(xy,e^{xz}(2+xz),; x^2 e^{xz},; x^3 y,e^{xz}\right)} ∇ f ( x , y , z ) = ( x y , e x z ( 2 + x z ) ,; x 2 e x z ,; x 3 y , e x z )
Exercice 2 : Différentiabilité§
Montrer que f ( x , y ) = x 2 + y 2 f(x,y) = \sqrt{x^2 + y^2} f ( x , y ) = x 2 + y 2 n’est pas différentiable en ( 0 , 0 ) (0,0) ( 0 , 0 ) .
Solution.
Si f f f était différentiable en ( 0 , 0 ) (0,0) ( 0 , 0 ) , on aurait f ( h , k ) = f ( 0 , 0 ) + a h + b k + o ( h 2 + k 2 ) f(h,k) = f(0,0) + ah + bk + o(\sqrt{h^2+k^2}) f ( h , k ) = f ( 0 , 0 ) + ah + bk + o ( h 2 + k 2 ) pour des constantes a , b a, b a , b .
Or f ( 0 , 0 ) = 0 f(0,0) = 0 f ( 0 , 0 ) = 0 et f ( h , k ) = h 2 + k 2 f(h,k) = \sqrt{h^2 + k^2} f ( h , k ) = h 2 + k 2 , donc on aurait :
h 2 + k 2 = a h + b k + o ( h 2 + k 2 ) \sqrt{h^2 + k^2} = ah + bk + o(\sqrt{h^2+k^2}) h 2 + k 2 = ah + bk + o ( h 2 + k 2 )
Divisons par h 2 + k 2 ≠ 0 \sqrt{h^2+k^2} \neq 0 h 2 + k 2 = 0 :
1 = a h + b k h 2 + k 2 + o ( 1 ) 1 = \frac{ah + bk}{\sqrt{h^2+k^2}} + o(1) 1 = h 2 + k 2 ah + bk + o ( 1 )
Le terme a h + b k h 2 + k 2 \dfrac{ah + bk}{\sqrt{h^2+k^2}} h 2 + k 2 ah + bk dépend de la direction (prendre h = r cos θ h = r\cos\theta h = r cos θ , k = r sin θ k = r\sin\theta k = r sin θ , il vaut a cos θ + b sin θ a\cos\theta + b\sin\theta a cos θ + b sin θ ), donc il ne peut tendre vers 1 1 1 pour toute direction. Contradiction. ■ \blacksquare ■
Exercice 3 : Extrema libres§
Trouver les extrema de f ( x , y ) = x 3 + y 3 − 3 x y f(x,y) = x^3 + y^3 - 3xy f ( x , y ) = x 3 + y 3 − 3 x y .
Solution.
Points critiques : ∇ f = 0 \nabla f = 0 ∇ f = 0 :
∂ f ∂ x = 3 x 2 − 3 y = 0 ⟹ y = x 2 \frac{\partial f}{\partial x} = 3x^2 - 3y = 0 \implies y = x^2 ∂ x ∂ f = 3 x 2 − 3 y = 0 ⟹ y = x 2
∂ f ∂ y = 3 y 2 − 3 x = 0 ⟹ x = y 2 \frac{\partial f}{\partial y} = 3y^2 - 3x = 0 \implies x = y^2 ∂ y ∂ f = 3 y 2 − 3 x = 0 ⟹ x = y 2
En substituant : x = ( x 2 ) 2 = x 4 x = (x^2)^2 = x^4 x = ( x 2 ) 2 = x 4 , soit x ( x 3 − 1 ) = 0 x(x^3 - 1) = 0 x ( x 3 − 1 ) = 0 . Donc x = 0 x = 0 x = 0 ou x = 1 x = 1 x = 1 .
Points critiques : ( 0 , 0 ) (0, 0) ( 0 , 0 ) et ( 1 , 1 ) (1, 1) ( 1 , 1 ) .
Nature : r = 6 x r = 6x r = 6 x , s = − 3 s = -3 s = − 3 , t = 6 y t = 6y t = 6 y , Δ = 36 x y − 9 \Delta = 36xy - 9 Δ = 36 x y − 9 .
En ( 0 , 0 ) (0, 0) ( 0 , 0 ) : Δ = − 9 < 0 \Delta = -9 < 0 Δ = − 9 < 0 ⇒ \Rightarrow ⇒ point selle .
En ( 1 , 1 ) (1, 1) ( 1 , 1 ) : Δ = 36 − 9 = 27 > 0 \Delta = 36 - 9 = 27 > 0 Δ = 36 − 9 = 27 > 0 et r = 6 > 0 r = 6 > 0 r = 6 > 0 ⇒ \Rightarrow ⇒ minimum local , f ( 1 , 1 ) = − 1 f(1,1) = -1 f ( 1 , 1 ) = − 1 .
Exercice 4 : Multiplicateurs de Lagrange§
Trouver les points de la sphère x 2 + y 2 + z 2 = 1 x^2 + y^2 + z^2 = 1 x 2 + y 2 + z 2 = 1 les plus proches et les plus éloignés du plan x + y + z = 0 x + y + z = 0 x + y + z = 0 .
Solution.
La distance du point ( x , y , z ) (x,y,z) ( x , y , z ) au plan x + y + z = 0 x+y+z=0 x + y + z = 0 est ∣ x + y + z ∣ 3 \dfrac{|x+y+z|}{\sqrt{3}} 3 ∣ x + y + z ∣ . On optimise f ( x , y , z ) = x + y + z f(x,y,z) = x + y + z f ( x , y , z ) = x + y + z (puis on prendra la valeur absolue) sous g ( x , y , z ) = x 2 + y 2 + z 2 − 1 = 0 g(x,y,z) = x^2 + y^2 + z^2 - 1 = 0 g ( x , y , z ) = x 2 + y 2 + z 2 − 1 = 0 .
∇ f = ( 1 , 1 , 1 ) \nabla f = (1, 1, 1) ∇ f = ( 1 , 1 , 1 ) , ∇ g = ( 2 x , 2 y , 2 z ) \nabla g = (2x, 2y, 2z) ∇ g = ( 2 x , 2 y , 2 z ) .
Lagrange : 1 = 2 λ x 1 = 2\lambda x 1 = 2 λ x , 1 = 2 λ y 1 = 2\lambda y 1 = 2 λ y , 1 = 2 λ z 1 = 2\lambda z 1 = 2 λ z , donc x = y = z = 1 2 λ x = y = z = \dfrac{1}{2\lambda} x = y = z = 2 λ 1 .
Contrainte : 3 ⋅ 1 4 λ 2 = 1 3 \cdot \dfrac{1}{4\lambda^2} = 1 3 ⋅ 4 λ 2 1 = 1 , soit λ 2 = 3 / 4 \lambda^2 = 3/4 λ 2 = 3/4 , λ = ± 3 2 \lambda = \pm\dfrac{\sqrt{3}}{2} λ = ± 2 3 .
λ = 3 2 \lambda = \dfrac{\sqrt{3}}{2} λ = 2 3 : x = y = z = 1 3 x = y = z = \dfrac{1}{\sqrt{3}} x = y = z = 3 1 , f = 3 f = \sqrt{3} f = 3 .
λ = − 3 2 \lambda = -\dfrac{\sqrt{3}}{2} λ = − 2 3 : x = y = z = − 1 3 x = y = z = -\dfrac{1}{\sqrt{3}} x = y = z = − 3 1 , f = − 3 f = -\sqrt{3} f = − 3 .
Distance maximale : 3 3 = 1 \dfrac{\sqrt{3}}{\sqrt{3}} = 1 3 3 = 1 (points ± ( 1 / 3 , 1 / 3 , 1 / 3 ) \pm(1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3}) ± ( 1/ 3 , 1/ 3 , 1/ 3 ) ).
Distance minimale : 0 0 0 , atteinte sur le cercle intersection de la sphère et du plan.
Mais les extrema de f f f sur la sphère sont bien ± 3 \pm\sqrt{3} ± 3 , correspondant aux points les plus éloignés du plan, à distance 1 1 1 . Les points les plus proches du plan sont ceux de l’intersection sphère/plan (distance 0 0 0 ), mais ce ne sont pas des extrema de f f f au sens de Lagrange — ils sont dans l’ensemble g = 0 g = 0 g = 0 avec f = 0 f = 0 f = 0 .
Exercice 5 : Règle de la chaîne§
Soit f ( x , y ) f(x,y) f ( x , y ) de classe C 1 \mathcal{C}^1 C 1 et g ( r , θ ) = f ( r cos θ , r sin θ ) g(r,\theta) = f(r\cos\theta, r\sin\theta) g ( r , θ ) = f ( r cos θ , r sin θ ) (coordonnées polaires). Exprimer ∂ g ∂ r \dfrac{\partial g}{\partial r} ∂ r ∂ g et ∂ g ∂ θ \dfrac{\partial g}{\partial \theta} ∂ θ ∂ g .
Solution.
Par la règle de la chaîne avec x = r cos θ x = r\cos\theta x = r cos θ , y = r sin θ y = r\sin\theta y = r sin θ :
∂ g ∂ r = ∂ f ∂ x cos θ + ∂ f ∂ y sin θ \frac{\partial g}{\partial r} = \frac{\partial f}{\partial x}\cos\theta + \frac{\partial f}{\partial y}\sin\theta ∂ r ∂ g = ∂ x ∂ f cos θ + ∂ y ∂ f sin θ
∂ g ∂ θ = ∂ f ∂ x ( − r sin θ ) + ∂ f ∂ y ( r cos θ ) \frac{\partial g}{\partial \theta} = \frac{\partial f}{\partial x}(-r\sin\theta) + \frac{\partial f}{\partial y}(r\cos\theta) ∂ θ ∂ g = ∂ x ∂ f ( − r sin θ ) + ∂ y ∂ f ( r cos θ )
En notation vectorielle : ∂ g ∂ r = ∇ f ⋅ e r \dfrac{\partial g}{\partial r} = \nabla f \cdot \mathbf{e}_r ∂ r ∂ g = ∇ f ⋅ e r et 1 r ∂ g ∂ θ = ∇ f ⋅ e θ \dfrac{1}{r}\dfrac{\partial g}{\partial \theta} = \nabla f \cdot \mathbf{e}_\theta r 1 ∂ θ ∂ g = ∇ f ⋅ e θ .
Voir aussi : Intégrales Généralisées , Topologie Prépa
Commentaires