The direction of friction in physics problems is determined by the need to oppose slipping between surfaces. Friction acts against the net force excluding itself, which can lead to scenarios where friction and the net force point in the same direction, particularly in dynamic situations like a car braking on an incline. When an object is pushed or slides, friction will always act to prevent motion relative to the surface. For static situations, friction opposes the direction of potential slipping, while in kinetic scenarios, it aligns with the direction of motion. Understanding these principles clarifies how friction behaves under various forces.