In method 1: -2/ u = t + C --> if we cross multiply we get -2 = u(t+C)
then, we divide both sides by (t+C) -- treat them like one variable since the constant is just along with the t, now, we get u = -2/(t+C)
Same for method 2: you just have to treat them as if they are one variable and cross multiply and divide.