Extended example on mathinput by video
The above video shows how to input:
The final code is here:
There are a few pauses and error corrections in the video shows that a new user needed a little practice to get around. The last step is code correction, which may not necessary for you.