inverse of f(x)=sqrt(4-x)+3
The function is strictly monotone on x ≤ 4: it has an inverse on its range y ≥ 3
Isolate the square root: 4 -x = y -3, with y ≥ 3. Under this condition, squaring gives 4 -x = (y -3)2
Let's solve in ℝ: 4 -x = (y -3)2
ⓘ We gather the terms in x on the right and the other terms on the left
4 -(y -3)2 = x
ⓘ Raising a sum to an integer power is multiplying it by itself: (y -3)2 = (y -3)·(y -3)
4 -(y -3)·(y -3) = x
ⓘ Expand by multiplying each term inside the parentheses: -(y -3)·(y -3) = -(y·y + y·(-3) -3y -3·(-3))
4 -(y·y + y·(-3) -3y -3·(-3)) = x
ⓘ A minus sign before a parenthesis changes the sign of each of its terms: -(y·y + y·(-3) -3y -3·(-3)) = -y·y -y·(-3) + 3y + 3·(-3)
4 -y·y -y·(-3) + 3y + 3·(-3) = x
ⓘ Multiplying powers with the same base adds the exponents: y·y = y2■Two minus signs cancel out: -y·(-3) = 3y■Multiplications are done before additions and subtractions. A single minus sign does not cancel out, the product of a negative number by a positive number is negative: 3·(-3) = -9
4 -y2 + 3y + 3y -9 = x
ⓘ Start from 4 and move back 9 on the number line, going below zero: 4 -9 = -5■Like terms are grouped by adding their coefficients: 3y + 3y = 6y
-5 -y2 + 6y = x
Solution obtained: x = -y2 + 6y -5
Renaming the output as x, the inverse is -x2 + 6x -5, with domain x ≥ 3
▶Inverse function:   (-x2 + 6x -5 for x ≥ 3)