Just explain everything.
You have a larger problem, and a theory about how to approach it that involves solving a simpler problem, but you also don't know how to do that, or even if it will solve the larger problem. Just explain all of that in your question.
Explain what your actual larger problem is. Explain what approach you're attempting to use to solve it, and explain what problem you are having in attempting to solve the smaller problem.
Given all of the appropriate information, answerers are then free to explain how to address the problem you have with your smaller problem, and any pieces you may be missing in using it to solve your larger problem. Alternatively they can just give you a different way of solving the larger problem, without using your smaller problem.
By explaining not only what large problem you have, but how you're tried (and failed) to solve it, you are lowering the scope of the problem, making the problem much clearer (at least in many cases), and doing a good job of demonstrating research effort in trying to solve the problem. When you omit the larger details the question often becomes less clear, and it also risks the readers solving a smaller problem that doesn't actually help you solve the larger problem.
As an addition: If there's a lot to explain, be sure to structure it well: First a really short description of your whole problem, and an equally concise description of the smaller step. Then, a thorough explanation of them both, as well as how you come from the big problem to the small step. Make sure those sections are easy to find just scanning the post.
- Deduplicator