This page will explain how to change the password of your ArcGIS Online (AGOL) account
Select "My Profile"
Select "Edit my profile"
Select "Change Password"
Change password and select "Change Password" in the new screen
Select Save
Sign out of your User account