Finding tangents to curves