I am trying to solve the following:
\begin{align*} y' & = 2 + \cot(y-2x) \\ \end{align*}
I think it may be possible to get it into a linear form \begin{align*} y' + P(x)y = Q(x) \\ \end{align*}
but the cot is a function of both y and x, which is causing confusion for me. Is there a better method for solving?
edit: so I performed the recommended substitution of $u = y - 2x$ and found a solution of \begin{align*} (y-2x)\operatorname{arccot}(y-2x) + \frac{1}{2}\ln(1+(y-2x)^2) = x + C \end{align*}
Now the question is: If an initial value of \begin{align*} y(1) = 2 \end{align*} is given, how would I find a specific solution?
Let $ u=y-2x$ and your equation $$\begin{align*} y' & = 2 + cot(y-2x) \\ \end{align*}$$
transforms to $$ u' = \cot u $$ which is separable.