What is the best way to find an actual divisor of an affine curve? I.E. if I am interested in finding a canonical divisor of a curve in two variables, is there a general way to go about it? Do I need to consider a projection on the x-axis?