MTB: choosing trajectory (line) through a turn Consider a 3 meter wide track, the incline is 30 degrees, the terrain is dirt road with some sand, rocks, maybe mud. An at least 90 degree turn is approaching, and you have clear visibility of the whole turn.
How do you choose consciously (and with practice subconsciously) your path through the turn, in order to minimize loss of speed? What factors affect the decision and in what way?

TL;DR
So here is the scenario. The incline is constant 30 degrees. A and B indicate the terrains on both sides of the track.

What effect on the decision has the estimate how much is A and B dangerous? For example, if B is a 100m drop, and A is lush field.

Here is an example of taking the turn entirely on the outer edge. This has the effect of increasing the turning radius. On the other hand, one slip and the bike leaves the track.


On the other extreme, here is an example of taking the turn as tightly as possible.


Further, if there is another turn very near, the exit line of the first turn directly affects the attack line of the second turn. What are the strategies to deal with a double turn?
Cornering is an essential mountain biking technique, regardless of the type of turn you're going into.

Scenario 1: Turn to obstacle
With clear visibility you should make the turn so the exit lines you up for how you plan to ride the upcoming obstacle. Usually this means taking the turn wide (high) so you can pull the bike back into line easier.

Scenario 2: Single turn
A single turn leaves you with only one decision: fast or slow? The lower you go through the turn, the tighter the radius and the more speed you will carry (conservation of momentum). But like any type of riding, maintaining control at speed can be difficult, which may cause you to take a wider line.

Scenario 3: Turn to turn
Consider an S-curve. You'll want to kind of approach it with the idea of slaloming through the turns. This means picking whichever line will bring you into the entrance line of the next turn. Again, this usually means riding further out, then coming back in to the entrance of the next turn.

Lastly, as you mentioned in example 1, there are times when the other side of the berm isn't so pleasant if you happen to overshoot. Here it's about how much courage you have! If you have the skills and want to ride high then go for it, otherwise scrub a little speed and take the tighter line. And really, there's always the ideal situation, then there's what happens on the trail, which is often very different from how the ideal works.