I came across this equation:
$$\frac{dy}{dx} = x^2 + y^2$$ $$y(0)=0$$
I found numerical solutions to it using Runge-Kutta methods, but I want to verify my answers by solving it analytically.
At first, I thought the expression $x^2 + y^2$ indicated that I use polar coordinates instead:
$$\frac{d(r\sin{\theta})}{d(r\cos{\theta})}=r^2$$
$$\frac{\sin{\theta}~dr+r\cos{\theta}~d\theta}{\cos{\theta}~dr-r\sin{\theta}~d\theta}=r^2$$
Well, the situation just got more complicated, so nope, this isnt gonna work.
I then tried using Laplace transforms, but there wasnt a simple expression for $\mathcal{L}\{y^2\}$.
I finally tried plugging it into Matlab to get an answer, and I got this:
pretty(ySol(x))
/ 3 \ / 3 \ 1/4 3/2 / 3 \
x gamma| - | besselk| - -, #1 | 4i - sqrt(2) 4 pi x z besseli| - -, #1 | 1i
\ 4 / \ 4 / \ 4 /
---------------------------------------------------------------------------------
/ 3 \ / 1 \ 1/4 3/2 / 1 \
4 gamma| - | besselk| -, #1 | + sqrt(2) 4 pi z besseli| -, #1 |
\ 4 / \ 4 / \ 4 /
where
2
x 1i
#1 == -----
2
Matlab isnt giving me any solution in terms of simple functions. Does this mean that I can't solve this equation analytically? Any help would be appreciated, thanks!