Determine the tangent and the normal of a curve

Work on progress for uni assignment