Notion 10 sur 12· Les applications

La composée de deux applications

مركب تطبيقين

Objectif : Calculer une composée, ne pas confondre g∘fg \circ f et f∘gf \circ g, et décomposer une application.

La composée

Définition

f:E→Ff : E \to F et g:F→Gg : F \to G sont deux applications. La composée g∘fg \circ f (on lit « gg rond ff ») est l'application de EE dans GG définie par :

(g∘f)(x)=g(f(x))(g \circ f)(x) = g(f(x))

On applique d'abord ff, puis gg. Il faut que l'ensemble d'arrivée de ff soit l'ensemble de départ de gg.

Exemple

f(x)=x+1f(x) = x + 1 et g(x)=x2−3g(x) = x^2 - 3, de R\mathbb{R} dans R\mathbb{R}.

(g∘f)(x)=g(x+1)=(x+1)2−3=x2+2x−2(g \circ f)(x) = g(x + 1) = (x + 1)^2 - 3 = x^2 + 2x - 2.

g∘f:R→Rg \circ f : \mathbb{R} \to \mathbb{R}, x↦x2+2x−2x \mapsto x^2 + 2x - 2.

À toi

  1. f(x)=2x+1f(x) = 2x + 1 et g(x)=x2g(x) = x^2, de R\mathbb{R} dans R\mathbb{R}. On écrit (g∘f)(x)=ax2+bx+c(g \circ f)(x) = ax^2 + bx + c. Combien vaut bb ?

    Aide et correction

    Indice

    (g∘f)(x)=g(2x+1)=(2x+1)2(g \circ f)(x) = g(2x + 1) = (2x + 1)^2.

    Réponse

    b=4b = 4

    Correction détaillée

    (g∘f)(x)=(2x+1)2=4x2+4x+1(g \circ f)(x) = (2x + 1)^2 = 4x^2 + 4x + 1.

    b=4b = 4.

L'ordre compte

Règle

En général g∘f≠f∘gg \circ f \neq f \circ g : l'ordre compte. Parfois l'une existe et l'autre non.

Mais h∘(g∘f)=(h∘g)∘fh \circ (g \circ f) = (h \circ g) \circ f : on peut écrire h∘g∘fh \circ g \circ f sans parenthèses.

Exemple

f(x)=x+1f(x) = x + 1 et g(x)=x2−3g(x) = x^2 - 3 : on a (g∘f)(x)=x2+2x−2(g \circ f)(x) = x^2 + 2x - 2.

Et (f∘g)(x)=f(x2−3)=x2−3+1=x2−2(f \circ g)(x) = f(x^2 - 3) = x^2 - 3 + 1 = x^2 - 2.

f∘g≠g∘ff \circ g \neq g \circ f : par exemple (f∘g)(1)=−1(f \circ g)(1) = -1 et (g∘f)(1)=1(g \circ f)(1) = 1.

À toi

  1. f(x)=x+2f(x) = x + 2 et g(x)=5xg(x) = 5x, de R\mathbb{R} dans R\mathbb{R}. Calcule (g∘f)(x)−(f∘g)(x)(g \circ f)(x) - (f \circ g)(x).

    Aide et correction

    Indice

    (g∘f)(x)=g(x+2)(g \circ f)(x) = g(x + 2) et (f∘g)(x)=f(5x)(f \circ g)(x) = f(5x).

    Réponse

    88

    Correction détaillée

    (g∘f)(x)=5(x+2)=5x+10(g \circ f)(x) = 5(x + 2) = 5x + 10 et (f∘g)(x)=5x+2(f \circ g)(x) = 5x + 2.

    La différence vaut 88 pour tout xx : g∘f≠f∘gg \circ f \neq f \circ g.

Décomposer une application

Méthode

Pour écrire h=g∘fh = g \circ f : repère le calcul fait en premier sur xx (c'est ff), puis ce qu'on fait au résultat (c'est gg).

Exemple

h(x)=x2+1h(x) = \sqrt{x^2 + 1}. On calcule d'abord x2+1x^2 + 1, puis on prend la racine.

h=g∘fh = g \circ f avec f(x)=x2+1f(x) = x^2 + 1 et g(x)=xg(x) = \sqrt{x}.

À toi

  1. h(x)=(3x−1)5h(x) = (3x - 1)^5 s'écrit h=g∘fh = g \circ f avec g(x)=x5g(x) = x^5. Que vaut f(x)f(x) ?

    Aide et correction

    Indice

    Quel calcul fais-tu d'abord sur xx ?

    Réponse

    f(x)=3x−1f(x) = 3x - 1

    Correction détaillée

    (g∘f)(x)=g(3x−1)=(3x−1)5=h(x)(g \circ f)(x) = g(3x - 1) = (3x - 1)^5 = h(x).

    f(x)=3x−1f(x) = 3x - 1.