$$\begin{array}{l} { \sec ^{ 2 } }y\frac { { dy } }{ { dx } } +2x\tan y={ x^{ 3 } }\to (i) \\ let\, \tan y=t\to (ii) \\ different\, \, equation(ii)\, \, w.\, r.\, t\, \ x \\ we\, \, get \\ { \sec ^{ 2 } }y\frac { { dy } }{ { dx } } =\frac { { dt } }{ { dx } } \\ now\, \, equation\, (i)\, \, becomes \\ \frac { { dt } }{ { dx } } +2xt+{ x^{ 3 } } \end{array}$$
This is linear equation
$$\begin{array}{l} I.F=\int _{ e }{ pdx=\int _{ e }{ 2xdx } } ={ e^{ { x^{ 2 } } } } \\ tx{ e^{ { x^{ 2 } } } }=\int { { x^{ 3 } }\cdot { e^{ { x^{ 2 } } } }dx+c } \\ t{ e^{ { x^{ 2 } } } }=\int { x\cdot { x^{ 2 } }\cdot { e^{ { x^{ 2 } } } }dx+c } \, \, \, \, \, \, \, \, \left[ \begin{array}{l} put\, { x^{ 2 } }=u \\ difference\, \, we\, \, get \\ 2x\, dx=du \end{array} \right] \\ t{ e^{ { x^{ 2 } } } }=\frac { 1 }{ 2 } \int { x\cdot { e^{ { x^{ 2 } } } }dx+c } \, \, \, \, \, \, \, \, \left[ { by\, parts\, \, { { int } }eger } \right] \\ t{ e^{ { x^{ 2 } } } }=\frac { 1 }{ 2 } \left[ { x\cdot { e^{ x } }-\int { 1\cdot { e^{ x } }dx } } \right] \\ t{ e^{ { x^{ 2 } } } }=\frac { 1 }{ 2 } \left[ { 4{ e^{ x } }-{ e^{ x } } } \right] +c \\ t{ e^{ { x^{ 2 } } } }=\frac { { { e^{ { x^{ 2 } } } } } }{ 2 } \left( { { x^{ 2 } }-1 } \right) +c \\ \tan y=\frac { 1 }{ 2 } \left[ { { x^{ 2 } }-1 } \right] +c\cdot { e^{ { x^{ 2 } } } } \end{array}$$