Reduce the equation $\frac{dy}{dx}=\frac{2y+6}{x+y+1}$ to homogeneous by a suitable change of variables $X=x-x_0$, $Y=y-y_0$. Hence find the general solution.
I've solved this question but don't have the correct answer to it. Would someone please be able to check it for me? The answer I got is: $$\ln \frac{y+3}{x-2} - 2\ln \left( 1-\frac{y+3}{2-x}\right)=\ln (x-2)-C$$
To solve the separable equation: $$\int \frac{1}x \, dx = \int \frac{1}v + \frac{2}{1-v} +C$$
$$ln(x) = ln(v) - 2ln(1-v) + C$$
$$v = \frac{y}{x} = \frac{y+3}{x-2}$$
$$ln(x-2) = ln(\frac{y+3}{x-2}) - 2ln(1-\frac{y+3}{x-2}) + C$$
Hint
Rewrite $$\frac{dy}{dx}=\frac{2y+6}{x+y+1}=\frac{2(y+3)}{(x-2)+(y+3)}$$ So, set $Y=y+3$,$X=x-2$ and the equation becomes $$\frac{dY}{dX}=\frac{2Y}{X+Y}$$ Rewrite now the reverse so $$\frac{dX}{dY}=\frac{X+Y}{2Y}=\frac{X}{2Y}+\frac{1}{2}$$ which is now separable.
I am sure that you can take from here.