I know how to solve some differential equations assuming that the solution is a Taylor series, but I'm stuck on the following equation. Normally I would equate coefficients, but here I have a cosine term, and it's a cosine of a function of the solution which seems bizarre.
Problem: Find the Taylor series solution to $y^{\prime} = 3\cos(xy+y-4) + y^2 -12$ given that $y(0) = 4$.
I assume that the series is centered at 0 so that $y = \Sigma_{n=0}^\infty c_nx^n$. From the initial value we have that $c_0 = 4$.
Normally I would substitute this solution into the equation. To that end $$ y^{\prime} = \Sigma_{n=1}^\infty nc_nx^{n-1} $$ and $$ xy+y-4 = (4+c_1)x + (c_1+c_2)x^2 + (c_2+c_3)x^3 + \cdots. $$ But then taking the cosine of the above? Does that all simplify somehow?