inverse of f(x)=2+1/(x-4)
1) Let's sum the fractions: 2 + 1x -4
ⓘ To add fractions, put them over the same denominator, then add the numerators: 2 + 1x -4 = 2·(x -4) + 1x -4
2·(x -4) + 1x -4
ⓘ Expand by multiplying each term inside the parentheses: 2·(x -4) = 2x -8
2x -8 + 1x -4
ⓘ The numerator and the denominator are computed before the division: -8 + 1 = -7
2x -7x -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, 2·(-4) + 7 = -1 ≠ 0, so u = v. The function therefore has an inverse on its range
Express input x in terms of output y: y = 2x -7x -4
⇥2.1) Let's solve in ℝ: 2x -7x -4 = y
⇥2.2) Let's add fractions: 2x -7x -4 -y = 0
⇥ⓘ To add fractions, put them over the same denominator, then add the numerators: 2x -7x -4 -y = (2x -7) -y·(x -4)x -4
⇥ (2x -7) -y·(x -4)x -4 = 0
⇥ 2x -7 -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 ℝ: 2x -7 -y·(x -4) = 0
⇥⇥ⓘ Expand by multiplying each term inside the parentheses: -y·(x -4) = -(yx + y·(-4))
⇥⇥ 2x -7 -(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)
⇥⇥ 2x -7 -y·x -y·(-4) = 0
⇥⇥ⓘ Two minus signs cancel out: -y·(-4) = 4y
⇥⇥ 2x -7 -yx + 4y = 0
⇥⇥ 2x -yx = 7 -4y
⇥⇥ (2 -y)·x = 7 -4y
⇥⇥ⓘ Both sides are divided by (2 -y), which must be nonzero: y ≠ 2
⇥⇥Solution found: x = 7 -4y2 -y
⇥⇥2.2.2) To prevent the denominator from being zero, let's solve: x -4 ≠ 0
⇥⇥Domain condition: x ≠ 4
Renaming the output as x, the inverse is 7 -4x2 -x, with domain x ≠ 2, the condition found when isolating the input
▶Inverse function:   7 -4x2 -x