Having one field populate another in the same form

Having one field populate another in the same form

How do I get one field to populate another.  I have a field in a form called Author (last, first) and when a user enters the data, I would like it to automatically populate a second field that is Author (first last).  I can't seem to figure out how I would accomplish this.