This document discusses how to diagnose electrical problems in a BMW X5 by identifying whether the issue is with the battery or alternator. Signs that the battery is faulty include the engine being slow to crank, a swollen battery case, and flickering lights. Indications that the alternator may be faulty are a persistent whining noise from under the hood, a burning odor, and the battery repeatedly dying. The document provides tips to help determine if electrical problems stem from the battery or alternator.