If you are interested solely in kinematic motion of the piston, then as noted above you can refer to basic texts on IC engine design.
If you want to learn more about it (because piston motion is a fair bit more complicated than that if you're a piston designer), try googling "Piston Secondary Motion" or "Piston Secondary Dynamics" and you'll find a bunch of scholarly articles. Many of the authors also develop software for piston motion simulation (MIT, Ricardo, AVL, etc).