Trying to solve this seemingly simple first order non-linear differential equation:

${y}^{\prime}+{y}^{2}=\mathrm{cos}2x$

Considered separation of variables and bernoulli methods but figured it's not applicable. Please I need a hint.

${y}^{\prime}+{y}^{2}=\mathrm{cos}2x$

Considered separation of variables and bernoulli methods but figured it's not applicable. Please I need a hint.