The most important thing to remember as a parent is that your child did not ask to be brought into this world. They were perfectly not-miserable before you came along and made them.
Being a parent does not automatically qualify you for respect or obedience from your child. They have no inherent reason to do either.
Making a person is an ultimately selfish act. It incurs an enormous responsibility to make up for it. Your child owes you nothing, and they never will.