Quick Recap — Order, Degree & Basic Solutions

  • Order = order of the highest derivative present; degree = power of that highest derivative (only when the equation is polynomial in derivatives).
  • The general solution of an nnth-order DE contains nn arbitrary constants; a particular solution has none.
  • Simple integrations: dydx=f(x)y=f(x)dx+C\tfrac{dy}{dx}=f(x)\Rightarrow y=\int f(x)\,dx+C.

Beyond-NCERT JEE Formulae

These four devices handle the JEE first-order ODEs that fall outside the NCERT toolkit (separable, homogeneous, and linear-with-IF\mathrm{IF}).

1. Bernoulli's Equation

dydx+P(x)y=Q(x)yn,n0,1.\dfrac{dy}{dx}+P(x)\,y=Q(x)\,y^{n},\qquad n\neq 0,1. Divide throughout by yny^{n} and substitute v=y1nv=y^{1-n}, so that dvdx=(1n)yndydx\dfrac{dv}{dx}=(1-n)\,y^{-n}\dfrac{dy}{dx}. The equation linearises to dvdx+(1n)P(x)v=(1n)Q(x),\dfrac{dv}{dx}+(1-n)\,P(x)\,v=(1-n)\,Q(x), now solved by the ordinary integrating factor IF=e(1n)Pdx\mathrm{IF}=e^{\int (1-n)P\,dx}. [JEE Tip] Spot Bernoulli the moment a bare power yny^{n} sits on the right; do not waste time attempting separation first.

2. Linear in xx (swap the roles of the variables)

An equation that is messy in yy is often linear when xx is treated as the dependent variable: dxdy+P(y)x=Q(y),IF=ePdy,\dfrac{dx}{dy}+P(y)\,x=Q(y),\qquad \mathrm{IF}=e^{\int P\,dy}, after which xIF=QIFdy+Cx\cdot\mathrm{IF}=\displaystyle\int Q\cdot\mathrm{IF}\,dy+C. Use this whenever yy enters awkwardly (through tan1y\tan^{-1}y, eye^{y}, lny\ln y, …) while xx appears only to the first power.

3. Exact-Differential Recognitions (regrouping)

Memorise these total differentials and read them backwards: d(xy)=xdy+ydx,d ⁣(yx)=xdyydxx2,d ⁣(xy)=ydxxdyy2,d(xy)=x\,dy+y\,dx,\qquad d\!\left(\dfrac{y}{x}\right)=\dfrac{x\,dy-y\,dx}{x^{2}},\qquad d\!\left(\dfrac{x}{y}\right)=\dfrac{y\,dx-x\,dy}{y^{2}}, d ⁣(x2+y2)=2(xdx+ydy),d ⁣(tan1yx)=xdyydxx2+y2.d\!\left(x^{2}+y^{2}\right)=2\,(x\,dx+y\,dy),\qquad d\!\left(\tan^{-1}\dfrac{y}{x}\right)=\dfrac{x\,dy-y\,dx}{x^{2}+y^{2}}. [JEE Tip] When you spot the block xdyydxx\,dy-y\,dx or xdx+ydyx\,dx+y\,dy, divide by the matching factor (x2x^{2}, y2y^{2}, x2+y2x^{2}+y^{2}, or 2x2+y22\sqrt{x^{2}+y^{2}}) to fold the whole equation into a single total differential, then integrate on sight.

4. Substitution dydx=f(ax+by+c)\dfrac{dy}{dx}=f(ax+by+c)

Put t=ax+by+ct=ax+by+c; then dtdx=a+bdydx=a+bf(t)\dfrac{dt}{dx}=a+b\,\dfrac{dy}{dx}=a+b\,f(t), which is always variables-separable: dta+bf(t)=dx.\dfrac{dt}{a+b\,f(t)}=dx. Integrate and back-substitute t=ax+by+ct=ax+by+c at the end.

Solved Examples — Beyond-NCERT Formulae

Example 1 (Bernoulli). Solve dydx+yx=y2\dfrac{dy}{dx}+\dfrac{y}{x}=y^{2}.

Here n=2n=2. Dividing by y2y^{2} gives y2dydx+1xy1=1y^{-2}\dfrac{dy}{dx}+\dfrac{1}{x}\,y^{-1}=1. Put v=y1v=y^{-1}, so that dvdx=y2dydx\dfrac{dv}{dx}=-y^{-2}\dfrac{dy}{dx}, and the equation becomes dvdx+vx=1dvdxvx=1.-\dfrac{dv}{dx}+\dfrac{v}{x}=1\quad\Longrightarrow\quad \dfrac{dv}{dx}-\dfrac{v}{x}=-1. With IF=edx/x=1x\mathrm{IF}=e^{-\int dx/x}=\dfrac{1}{x}, this is ddx ⁣(vx)=1x\dfrac{d}{dx}\!\left(\dfrac{v}{x}\right)=-\dfrac{1}{x}, so vx=lnx+C\dfrac{v}{x}=-\ln x+C. Hence v=x(Clnx)v=x\,(C-\ln x), and since v=1yv=\dfrac{1}{y}, 1y=x(Clnx).\dfrac{1}{y}=x\,(C-\ln x).

Example 2 (Bernoulli). Solve xdydx+y=y2lnxx\dfrac{dy}{dx}+y=y^{2}\ln x.

Divide by xx to reach standard form dydx+yx=lnxxy2\dfrac{dy}{dx}+\dfrac{y}{x}=\dfrac{\ln x}{x}\,y^{2} (n=2n=2). Dividing by y2y^{2} and putting v=y1v=y^{-1} (so dvdx=y2dydx\dfrac{dv}{dx}=-y^{-2}\dfrac{dy}{dx}), dvdxvx=lnxx.\dfrac{dv}{dx}-\dfrac{v}{x}=-\dfrac{\ln x}{x}. Here IF=1x\mathrm{IF}=\dfrac{1}{x}, so ddx ⁣(vx)=lnxx2\dfrac{d}{dx}\!\left(\dfrac{v}{x}\right)=-\dfrac{\ln x}{x^{2}}. Using lnxx2dx=lnxx1x\displaystyle\int\dfrac{\ln x}{x^{2}}\,dx=-\dfrac{\ln x}{x}-\dfrac{1}{x}, we get vx=lnxx+1x+C\dfrac{v}{x}=\dfrac{\ln x}{x}+\dfrac{1}{x}+C, i.e. v=1+lnx+Cxv=1+\ln x+Cx. Therefore 1y=1+lnx+Cx.\dfrac{1}{y}=1+\ln x+Cx.

Example 3 (Linear in xx). Solve (1+y2)dx=(tan1yx)dy(1+y^{2})\,dx=(\tan^{-1}y-x)\,dy.

The presence of tan1y\tan^{-1}y blocks a linear-in-yy reading, so divide by (1+y2)dy(1+y^{2})\,dy and collect xx: dxdy+x1+y2=tan1y1+y2.\dfrac{dx}{dy}+\dfrac{x}{1+y^{2}}=\dfrac{\tan^{-1}y}{1+y^{2}}. Here P(y)=11+y2P(y)=\dfrac{1}{1+y^{2}}, so IF=edy/(1+y2)=etan1y\mathrm{IF}=e^{\int dy/(1+y^{2})}=e^{\tan^{-1}y}. Putting s=tan1ys=\tan^{-1}y, the right side integrates by parts as sesds=(s1)es\displaystyle\int s\,e^{s}\,ds=(s-1)e^{s}, giving xetan1y=(tan1y1)etan1y+Cx\,e^{\tan^{-1}y}=(\tan^{-1}y-1)\,e^{\tan^{-1}y}+C. Thus x=tan1y1+Cetan1y.x=\tan^{-1}y-1+C\,e^{-\tan^{-1}y}.

Example 4 (Linear in xx). Solve (2x10y3)dydx+y=0(2x-10y^{3})\dfrac{dy}{dx}+y=0, with y>0y>0.

This is quadratic-looking in yy but linear in xx. Invert the derivative: dxdy=2x10y3y=2xy+10y2dxdy+2yx=10y2.\dfrac{dx}{dy}=\dfrac{2x-10y^{3}}{-y}=-\dfrac{2x}{y}+10y^{2}\quad\Longrightarrow\quad \dfrac{dx}{dy}+\dfrac{2}{y}\,x=10y^{2}. Then IF=e(2/y)dy=y2\mathrm{IF}=e^{\int (2/y)\,dy}=y^{2}, so ddy ⁣(xy2)=10y4\dfrac{d}{dy}\!\left(x\,y^{2}\right)=10y^{4}, giving xy2=2y5+Cx\,y^{2}=2y^{5}+C. Hence x=2y3+Cy2.x=2y^{3}+\dfrac{C}{y^{2}}.

Example 5 (Regrouping). Solve xdyydx=(x2+y2)dxx\,dy-y\,dx=(x^{2}+y^{2})\,dx.

Divide by x2+y2x^{2}+y^{2} and read the left side as a total differential using d ⁣(tan1yx)=xdyydxx2+y2d\!\left(\tan^{-1}\dfrac{y}{x}\right)=\dfrac{x\,dy-y\,dx}{x^{2}+y^{2}}: xdyydxx2+y2=dxd ⁣(tan1yx)=dx.\dfrac{x\,dy-y\,dx}{x^{2}+y^{2}}=dx\quad\Longrightarrow\quad d\!\left(\tan^{-1}\dfrac{y}{x}\right)=dx. Integrating gives tan1yx=x+C\tan^{-1}\dfrac{y}{x}=x+C, that is y=xtan(x+C).y=x\tan(x+C).

Example 6 (Regrouping). Solve xdy+ydx=xydxx\,dy+y\,dx=xy\,dx.

The left side is exactly d(xy)d(xy). Put u=xyu=xy; the equation becomes du=udxdu=u\,dx, so duu=dx\dfrac{du}{u}=dx and lnu=x+C1\ln|u|=x+C_{1}. Exponentiating, u=Aexu=A\,e^{x}, i.e. xy=Aex.xy=A\,e^{x}.

Example 7 (Substitution t=x+yt=x+y). Solve dydx=(x+y)2\dfrac{dy}{dx}=(x+y)^{2}.

Put t=x+yt=x+y, so dtdx=1+dydx=1+t2\dfrac{dt}{dx}=1+\dfrac{dy}{dx}=1+t^{2}. This separates as dt1+t2=dx\dfrac{dt}{1+t^{2}}=dx, giving tan1t=x+C\tan^{-1}t=x+C. Back-substituting t=x+yt=x+y, x+y=tan(x+C)y=tan(x+C)x.x+y=\tan(x+C)\quad\Longrightarrow\quad y=\tan(x+C)-x. (For instance y(0)=0y(0)=0 forces C=0C=0, so y=tanxxy=\tan x-x.)

Example 8 (Substitution t=x+yt=x+y). Solve dydx=cos(x+y)\dfrac{dy}{dx}=\cos(x+y).

Put t=x+yt=x+y, so dtdx=1+cost\dfrac{dt}{dx}=1+\cos t. Using 1+cost=2cos2t21+\cos t=2\cos^{2}\dfrac{t}{2}, dt2cos2(t/2)=dx12sec2t2dt=dxtant2=x+C.\dfrac{dt}{2\cos^{2}(t/2)}=dx\quad\Longrightarrow\quad \tfrac{1}{2}\int \sec^{2}\dfrac{t}{2}\,dt=\int dx\quad\Longrightarrow\quad \tan\dfrac{t}{2}=x+C. Therefore \tan!\left(\dfrac{x+y}{2}\right)=x+C.