The brain must be provided with something that it has never before processed to force it out of predictable perceptions.
I am not so sure about this one, but my instinct tells me that " to force it out of predictable perceptions " goes with "the brain must be provided with something " instead of the relative clause "that it has never before processed".
If my assumption is right, consider this sentence,
The students are provided with some tips that they can use to win the competition.
I think the sentence structure is similar to the first one, but the infinitive clause goes with the relative clause "that they can use" instead of " The students are provided with some tips".
These two sentences have similar structures, but the infinitive goes with or modifies different parts of the sentence(one with the main clause, and the other with the relative clause which the infinitive is closer to).
What causes the difference and how can it be explained?