Posts

Is python step debugging still available on Netbeans

Image
0 I'm a long time user of Netbeans for PHP, and previously my python scripts were simple enough that I got by with gedit and ipython. Now I'm trying to do my python in Netbeans too. Earlier this year I was able to debug - as in step though the code line-by-line and examine variables etc. Now I'm returning to it and the Debug button is greyed out? What do I need to check to get it working again? Version numbers if relevant: Netbeans 8.2 Python 2.7.14 Xubuntu 17.10 python netbeans share | improve this question asked Nov 21 '18 at 9:27 djnz0feh 135 2 12 ...

Solve $frac{d^2y}{dx^2}+2frac{dy}{dx}+y=x sin^2x$

Image
2 2 Solve the differential equation Solve $$frac{d^2y}{dx^2}+2frac{dy}{dx}+y=x sin^2x$$ i used the substitution $frac{dy}{dx}+y=t$ we get $$frac{dt}{dx}+t=xsin^2x$$ which is linear first order, using integrating factor method we get the solution $$te^x=int xe^xsin^2xdx+C$$ $$te^x=frac{1}{2} left(int xe^xdx-int xe^xcos 2xdxright)+C=frac{1}{2}left(P-Qright)+C tag{1}$$ we have $$P=int xe^x=(x-1)e^x+C'$$ now using integration by parts we have $$Q=int xe^x cos2xdx=xint e^xcos 2xdx-int left(int e^xcos 2xdxright)dx$$ $$int xe^x cos2xdx=frac{xe^x}{5}left(cos 2x+2sin 2xright)-frac{1}{5}int e^x(cos 2x+2sin 2x)dx $$ $$int xe^x cos2xdx=frac{xe^x}{5}left(cos 2x+2sin 2xright)-frac{1}{5}left(frac{e^x}{5}(cos 2x+2sin 2x)right)-left(frac{2e^x}{5}(sin 2x-2 cos 2x)right)$$ finally we need to solve another linear ...