The inertia switch on a 2004 Chevy Malibu Classic is typically located
under the driver's side dashboard, near the fuse box. However, it's not always in the *exact* same spot across all models. You might need to feel around or use a flashlight to locate it. It's usually a small, cylindrical or square-shaped switch that might have a red button.
If you can't find it under the dash, check your owner's manual. It should have a diagram showing the location of the inertia switch and other important components. If you don't have the manual, you can often find a downloadable version online by searching for "[Year] Chevy Malibu Classic owner's manual."