When you see 'in', it often represents internal. When you see 'ex', it often represents external. We have an internal motivation when we seek to complete something for our own satisfaction/accomplishment. When we seek to do things in order to please others, is that truly an internal motivation? The answer here is extrinsic!
Hopefully, this helps! =)