Aluminum nitride is piezoelectric and exhibits spontaneous polarization along the $c$-axis, but cannot be switched by applying an electric field. Adding Sc to AlN enhances properties, can make alloy ferroelectric. We perform a detailed first-principles analysis of polarization. Comparisons between explicit supercell calculations show that virtual crystal approximation produces accurate results ...