This child or teen needs to know the reasons for the rules before he is okay. Blindly accepting your rules is not the way he operates. He wants to know the reasons behind your actions, why something is done a certain way, and it has to make sense to him. If it seems too arbitrary, it's not an adequate reason in his mind, and he won't listen. His coping strategy is to try to make sense of the world through logic, reasoning, and rational thought. He wants the world to be a place with order and rationality to it. This reduces his anxiety. He may ask lots of questions about how the world works. He uses his very well-developed logical mind to understand what is going on, and you need to give him the reasoning behind a decision or an action.
He is often a very bright boy with a high IQ. He usually becomes more flexible when he knows the reason for something. The rule alone is not sufficient. After you have explained the reason for your request, many behavioral issues decrease. However, he may not accept your logic unless it is quite convincing, because he may very well have his own reasons and explanations. His view of the world is based on logic and reasons, which can also cause him to become overanalytical. In this case, he often cannot function appropriately because he never gets past the analysis stage to the action stage. He suffers from "analysis paralysis." Remember, not every Logic Boy has all of these characteristics.