document.write( "Question 1209610: Suppose f is a function such that f(f(x)) = x for all x in the domain of f, and suppose that f(-3) = 0. If f(x) = ax + b, then find a and b. Find all solutions to f(x) = 5.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #849671 by CPhill(1959)\"\" \"About 
You can put this solution on YOUR website!
Here's how to solve this problem:\r
\n" ); document.write( "\n" ); document.write( "1. **Use the given information about f(x):**\r
\n" ); document.write( "\n" ); document.write( "We know f(x) = ax + b and f(f(x)) = x. Substituting the expression for f(x) into the composite function:\r
\n" ); document.write( "\n" ); document.write( "f(f(x)) = f(ax + b) = a(ax + b) + b = a²x + ab + b = x\r
\n" ); document.write( "\n" ); document.write( "2. **Solve for a and b:**\r
\n" ); document.write( "\n" ); document.write( "For the equation a²x + ab + b = x to hold for all x, the coefficients of x must be equal, and the constant terms must be equal. This gives us the following system of equations:\r
\n" ); document.write( "\n" ); document.write( "* a² = 1
\n" ); document.write( "* ab + b = 0\r
\n" ); document.write( "\n" ); document.write( "From a² = 1, we have two possibilities: a = 1 or a = -1.\r
\n" ); document.write( "\n" ); document.write( "* **Case 1: a = 1**
\n" ); document.write( " Substituting into ab + b = 0, we get b + b = 0, so 2b = 0, and b = 0.
\n" ); document.write( " Thus, f(x) = x.\r
\n" ); document.write( "\n" ); document.write( "* **Case 2: a = -1**
\n" ); document.write( " Substituting into ab + b = 0, we get -b + b = 0. This equation is true for any value of b.\r
\n" ); document.write( "\n" ); document.write( "3. **Use f(-3) = 0 to find b (in the case a=-1):**\r
\n" ); document.write( "\n" ); document.write( "We are given that f(-3) = 0. Using f(x) = ax + b:\r
\n" ); document.write( "\n" ); document.write( "0 = a(-3) + b\r
\n" ); document.write( "\n" ); document.write( "If a = -1, then 0 = -(-3) + b, so 0 = 3 + b, and b = -3.\r
\n" ); document.write( "\n" ); document.write( "Thus, if a = -1, then b = -3, and f(x) = -x - 3.\r
\n" ); document.write( "\n" ); document.write( "4. **Determine which solution is correct:**\r
\n" ); document.write( "\n" ); document.write( "* **If f(x) = x:** Then f(-3) = -3, which contradicts the given information f(-3) = 0. So, f(x) = x is not a solution.\r
\n" ); document.write( "\n" ); document.write( "* **If f(x) = -x - 3:** Then f(-3) = -(-3) - 3 = 3 - 3 = 0, which matches the given information. Also, f(f(x)) = f(-x - 3) = -(-x - 3) - 3 = x + 3 - 3 = x. This solution works.\r
\n" ); document.write( "\n" ); document.write( "Therefore, a = -1 and b = -3, and f(x) = -x - 3.\r
\n" ); document.write( "\n" ); document.write( "5. **Solve f(x) = 5:**\r
\n" ); document.write( "\n" ); document.write( "We want to find x such that f(x) = 5. Using f(x) = -x - 3:\r
\n" ); document.write( "\n" ); document.write( "5 = -x - 3
\n" ); document.write( "8 = -x
\n" ); document.write( "x = -8\r
\n" ); document.write( "\n" ); document.write( "So, the solution to f(x) = 5 is x = -8.
\n" ); document.write( "
\n" ); document.write( "
\n" );