I understand. I asked for examples because 'to be' is used quite often in English, and in most cases, there aren't any special rules for it. It's the infinitive version of the verb is/are. It
looks special because most verbs don't change very much when you turn them into infinitives - for instance, 'to run' is the infinitive of 'run'; 'to eat' is the infinitive of 'eat', etc. But for some reason, turning 'is' into an infinitive turns it into a completely different looking word. However, 'to be' isn't special. You can use it any time you could normally use an infinitive verb.
Usually, you use an infinitive verb to go along with another verb. For instance:
I like orange juice.
I drink orange juice.
I like
to drink orange juice.
When you put those two verbs together, the second one becomes an infinitive.
It's the same thing with 'to be'. When you couple 'is' with another verb in that way, it turns into 'to be'. Examples:
He is successful.
I expect him
to be successful.
She is young.
She wants
to be young.
--
However, your question about 'consider to be' is slightly different. That's actually an idiom. For no particular reason, when we use the verb 'consider', if we would normally use 'to be' with it, we actually drop the 'to be' verb. Where we would normally expect to say 'consider to be', we just say 'consider' by itself instead. There are a limited number of situations where this happens, and you just need to memorize them as idioms. 'Consider' is the only one I can think of off the top of my head; I don't think they're very common.