Text this: Cartesian Trajectory Tracking for Manipulators Using Optimal Control Theory