# Solve differential equation y'+y\cot(x)=sin(2x)

Question
Solve differential equation $$\displaystyle{y}'+{y}{\cot{{\left({x}\right)}}}={\sin{{\left({2}{x}\right)}}}$$

2020-11-11
$$\displaystyle{y}'+{P}{\left({x}\right)}{y}={Q}{\left({x}\right)}$$
$$\displaystyle{I}.{F}.={e}^{{\int{P}{\left.{d}{x}\right.}}}$$
$$\displaystyle{y}{\left({I}.{F}.\right)}=\int{\left({I}.{F}.\right)}{Q}{\left({x}\right)}{\left.{d}{x}\right.}+{c}$$
$$\displaystyle{P}{\left({x}\right)}={\cot{{\left({x}\right)}}},\ {Q}{\left({x}\right)}{\left.{d}{x}\right.}+{c}$$
$$\displaystyle{I}.{F}.={e}^{{\int{\cot{{\left({x}\right)}}}{\left.{d}{x}\right.}}}={e}^{{{\log{{\left({\sin{{\left({x}\right)}}}\right)}}}}}={\sin{{\left({x}\right)}}}$$
$$\displaystyle{y}{\left({\sin{{\left({x}\right)}}}\right)}=\int{\sin{{\left({x}\right)}}}{\sin{{\left({2}{x}\right)}}}{\left.{d}{x}\right.}+{c}$$
$$\displaystyle{y}{\left({\sin{{\left({x}\right)}}}\right)}=\int{\sin{{\left({x}\right)}}}{2}{\sin{{\left({x}\right)}}}{\cos{{\left({x}\right)}}}{\left.{d}{x}\right.}+{c}$$
$$\displaystyle{y}{\left({\sin{{\left({x}\right)}}}\right)}={2}\int{{\sin}^{{2}}{\left({x}\right)}}{\cos{{\left({x}\right)}}}{\left.{d}{x}\right.}+{c}$$
Fisrt solve the integral
Let
$$\displaystyle{\sin{{\left({x}\right)}}}={t}\Rightarrow{\cos{{\left({x}\right)}}}{\left.{d}{x}\right.}={\left.{d}{t}\right.}$$
$$\displaystyle\int{{\sin}^{{2}}{\left({x}\right)}}{\cos{{\left({x}\right)}}}{\left.{d}{x}\right.}=\int{t}^{{2}}{\left.{d}{t}\right.}={\frac{{{t}^{{3}}}}{{{3}}}}+{c}_{{1}}={\frac{{{{\sin}^{{3}}{\left({x}\right)}}}}{{{3}}}}+{c}_{{1}}$$
$$\displaystyle{y}{\left({\sin{{\left({x}\right)}}}\right)}={2}{\frac{{{{\sin}^{{3}}{\left({x}\right)}}}}{{{3}}}}+{c}_{{1}}+{c}$$
$$\displaystyle{y}{\left({\sin{{\left({x}\right)}}}\right)}={\frac{{{2}}}{{{3}}}}{{\sin}^{{3}}{\left({x}\right)}}+{C},\ {\left[{c}+{c}_{{1}}={C}\right]}$$

### Relevant Questions

Solve differential equation $$\displaystyle{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}-{\left({\cot{{x}}}\right)}{y}={{\sin}^{{3}}{x}}$$
Solve differential equation $$\displaystyle{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}-{\left({\cot{{x}}}\right)}{y}={{\sin}^{{3}}{x}}$$
Solve differential equation $$dy/dx-(cot x)y= sin^3x$$
Solve differential equation $$\displaystyle{y}'+{3}{x}^{{2}}{y}={\sin{{\left({x}\right)}}}{e}^{{-{x}^{{3}}}},\ {y}{\left({0}\right)}={1}$$
Solve differential equation $$sin(x) dy/dx+(cos(x))y=0$$, $$y((7pi)/6)=-2$$
Solve differential equation $$\displaystyle{y}{\left({2}{x}-{2}+{x}{y}+{1}\right)}{\left.{d}{x}\right.}+{\left({x}-{y}\right)}{\left.{d}{y}\right.}={0}$$
Solve differential equation $$xy'+[(2x+1)/(x+1)]y= x-1$$
Solve differential equation $$\displaystyle{x}{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}-{2}{y}={x}^{{3}}{{\sin}^{{2}}{\left({x}\right)}}$$
Solve differential equation $$\displaystyle{x}'{\left({t}\right)}={\frac{{{\sin{{\left({t}\right)}}}}}{{{x}^{{2}}{\left({t}\right)}+{1}}}}$$
Solve differential equation $$y'-2y= 1-2x$$