Skip to main contentSkip to solution

Suppose for all integers x, there are two function f and g such that f(x)+f(x−1)−1=0f(x) + f(x-1) - 1 = 0 and g(x)=x2g(x) = x^2. If f(x2−x)=5f(x^2 - x) = 5, then the value of the sum f(g(5))+g(f(5))f(g(5)) + g(f(5)) is

Entered answer:

Solution

✅ Correct Answer: 12

We break down this problem step by step, working with the given conditions to find the pattern in function ff.

We have:

  • f(x)+f(x−1)−1=0f(x) + f(x-1) - 1 = 0 for all integers xx
  • g(x)=x2g(x) = x^2
  • f(x2−x)=5f(x^2 - x) = 5

We need to find: f(g(5))+g(f(5))f(g(5)) + g(f(5))


From f(x2−x)=5f(x^2 - x) = 5, we can substitute any integer value for xx to get specific information about ff.

We try x=1x = 1:

f(12−1)=f(1−1)=f(0)=5f(1^2 - 1) = f(1 - 1) = f(0) = 5

We now know f(0)=5f(0) = 5. This gives us a starting point!


The condition f(x)+f(x−1)−1=0f(x) + f(x-1) - 1 = 0 can be rewritten as:

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

This means if we know ff at any point, we can find ff at the next integer.

Starting with f(0)=5f(0) = 5:

For x=1x = 1: f(1)=1−f(0)=1−5=−4f(1) = 1 - f(0) = 1 - 5 = -4

For x=2x = 2: f(2)=1−f(1)=1−(−4)=5f(2) = 1 - f(1) = 1 - (-4) = 5

For x=3x = 3: f(3)=1−f(2)=1−5=−4f(3) = 1 - f(2) = 1 - 5 = -4

For x=4x = 4: f(4)=1−f(3)=1−(−4)=5f(4) = 1 - f(3) = 1 - (-4) = 5

For x=5x = 5: f(5)=1−f(4)=1−5=−4f(5) = 1 - f(4) = 1 - 5 = -4


We observe from our results:

  • f(0)=5f(0) = 5
  • f(1)=−4f(1) = -4
  • f(2)=5f(2) = 5
  • f(3)=−4f(3) = -4
  • f(4)=5f(4) = 5
  • f(5)=−4f(5) = -4

The function ff alternates between two values!

  • f(even integer)=5f(\text{even integer}) = 5
  • f(odd integer)=−4f(\text{odd integer}) = -4

This pattern works because since f(x)=1−f(x−1)f(x) = 1 - f(x-1), the function keeps flipping between 1−5=−41-5=-4 and 1−(−4)=51-(-4)=5.


Now we can find f(g(5))+g(f(5))f(g(5)) + g(f(5)):

First, we find each part:

  • g(5)=52=25g(5) = 5^2 = 25
  • f(g(5))=f(25)f(g(5)) = f(25)

Since 25 is odd: f(25)=−4f(25) = -4

  • f(5)=−4f(5) = -4 (from our pattern, since 5 is odd)
  • g(f(5))=g(−4)=(−4)2=16g(f(5)) = g(-4) = (-4)^2 = 16

Therefore: f(g(5))+g(f(5))=f(25)+g(−4)=−4+16=12f(g(5)) + g(f(5)) = f(25) + g(-4) = -4 + 16 = 12


Answer: 12

When we have a recurrence relation like f(x)=1−f(x−1)f(x) = 1 - f(x-1), we look for alternating patterns. This type of relation often creates functions that flip between two fixed values!

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question