If I have 2 curves, 1 of the background and 1 of the background plus the thing I’m interested in, to remove the background should I subtract or divide it? Does it matter what kind of curve it is?

How about if a curve is skewed upwards, to flatten it should I subtract the line y=mx or divide the y-values of the curve by the y-values of the line?