To find it definitively, you should:
* Consult your owner's manual: This is the best resource. It will have a diagram showing the location of major components, including the ECM.
* Look for a large, rectangular module with lots of wiring: This will narrow down the possibilities in the engine bay.
* Search online for "1997 Chevy Cavalier ECM location" along with your specific engine type (e.g., 2.2L, 2.4L): Images from other Cavalier owners might help.
Remember to disconnect the negative battery terminal before working near electrical components to avoid accidental shorts or damage.