inverse of g(x)=(-x-2)/(x+4)
1) Let's sum the fractions: -x -2x + 4
ⓘ The minus sign is factored out, changing the sign of each term: -x -2 = -(x + 2)
-x + 2x + 4
2) For a function ax + bcx + d, two inputs u and v with the same output satisfy (ad -b·c)·(u -v) = 0 after multiplying by the denominators. Here, 4 -2 = 2 ≠ 0, so u = v. The function therefore has an inverse on its range
Express input x in terms of output y: y = -x + 2x + 4
⇥2.1) Let's solve in ℝ: -x + 2x + 4 = y
⇥2.2) Let's add fractions: -x + 2x + 4 -y = 0
⇥ⓘ To add fractions, put them over the same denominator, then add the numerators: -x + 2x + 4 -y = -(x + 2) -y·(x + 4)x + 4
⇥ -(x + 2) -y·(x + 4)x + 4 = 0
⇥ⓘ A minus sign before a parenthesis changes the sign of each of its terms: -(x + 2) = -x -2■The minus sign is factored out, changing the sign of each term: -x -2 -y·(x + 4) = -(x + 2 + y·(x + 4))
⇥ -x + 2 + y·(x + 4)x + 4 = 0
⇥A quotient is zero if and only if its numerator is zero and its denominator is not: we solve the numerator equal to 0
⇥⇥2.2.1) Let's solve in ℝ: -(x + 2 + y·(x + 4)) = 0
⇥⇥ⓘ A minus sign before a parenthesis changes the sign of each of its terms: -(x + 2 + y·(x + 4)) = -x -2 -y·(x + 4)
⇥⇥ -x -2 -y·(x + 4)
⇥⇥ -x -2 -y·(x + 4) = 0
⇥⇥ⓘ Expand by multiplying each term inside the parentheses: -y·(x + 4) = -(yx + y·4)
⇥⇥ -x -2 -(yx + y·4) = 0
⇥⇥ⓘ A minus sign before a parenthesis changes the sign of each of its terms: -(yx + y·4) = -y·x -y·4
⇥⇥ -x -2 -y·x -y·4 = 0
⇥⇥ⓘ We add 2 + y·4 to both sides
⇥⇥ -x -yx = 2 + y·4
⇥⇥ (-1 -y)·x = 2 + y·4
⇥⇥ⓘ Both sides are divided by (-1 -y), which must be nonzero: y ≠ -1
⇥⇥ x = 2 + y·4-1 -y
⇥⇥ⓘ The minus sign is factored out, changing the sign of each term: -1 -y = -(1 + y)
⇥⇥ x = 2 + y·4-(1 + y)
⇥⇥ⓘ The sign of a fraction goes in front of the bar, whether it comes from the numerator or the denominator: 2 + y·4-(1 + y) = -2 + y·41 + y
⇥⇥ x = -2 + y·41 + y
⇥⇥Solution obtained: x = -4y + 2y + 1
⇥⇥2.2.2) To avoid a zero denominator, let's solve: x + 4 ≠ 0
⇥⇥Domain condition: x ≠ -4
Renaming the output as x, the inverse is -4x + 2x + 1, with domain x ≠ -1, the condition found when isolating the input
▶Inverse function:   -4x + 2x + 1