SolveItClass 12 · NCERT

NCERT Solutions · Class 12 Mathematics Differential Equations

98 questions · 98 still being checked

EXERCISE 9.5 1–10 (part 7 of 10)

  1. For each of the differential equations given in Exercises $\displaystyle 1$ to $\displaystyle 12$, find the general solution:

    Exercise 1

    dydx+2y=sinx\displaystyle \frac{d y}{d x}+2 y=\sin x

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y=\frac{1}{5}(2 \sin x-\cos x)+\mathrm{C} e^{-2 x}\)
    The equation is linear in \(\displaystyle y\), of the form \(\displaystyle \frac{dy}{dx}+Py=Q\) with \(\displaystyle P=2\), \(\displaystyle Q=\sin x\).\[\mathrm{I.F.}=e^{\int P\,dx}=e^{\int 2\,dx}=e^{2x}\]Multiplying through by the integrating factor makes the left side an exact derivative: \[\frac{d}{dx}\left(y\,e^{2x}\right)=e^{2x}\sin x\qquad\Rightarrow\qquad y\,e^{2x}=\int e^{2x}\sin x\,dx\]Put \(\displaystyle I=\int e^{2x}\sin x\,dx\) and integrate by parts twice: \[I=\frac{e^{2x}}{2}\sin x-\frac{1}{2}\int e^{2x}\cos x\,dx=\frac{e^{2x}}{2}\sin x-\frac{1}{2}\left(\frac{e^{2x}}{2}\cos x+\frac{1}{2}I\right)\] so \(\displaystyle \frac{5}{4}I=\frac{e^{2x}}{4}\left(2\sin x-\cos x\right)\), i.e. \(\displaystyle I=\frac{e^{2x}}{5}\left(2\sin x-\cos x\right)\).Therefore \(\displaystyle y\,e^{2x}=\frac{e^{2x}}{5}\left(2\sin x-\cos x\right)+C\), and dividing by \(\displaystyle e^{2x}\): \[\boxed{\,y=\frac{1}{5}\left(2\sin x-\cos x\right)+C\,e^{-2x}\,}\]
  2. Exercise 2

    dydx+3y=e2x\displaystyle \frac{d y}{d x}+3 y=e^{-2 x}

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y=e^{-2 x}+\mathrm{C} e^{-3 x}\)
    Linear form \(\displaystyle \frac{dy}{dx}+Py=Q\) with \(\displaystyle P=3\), \(\displaystyle Q=e^{-2x}\).\[\mathrm{I.F.}=e^{\int 3\,dx}=e^{3x}\]Multiplying by \(\displaystyle e^{3x}\): \[\frac{d}{dx}\left(y\,e^{3x}\right)=e^{3x}\cdot e^{-2x}=e^{x}\]The step to be careful with is combining the exponentials before integrating — \(\displaystyle e^{3x}e^{-2x}=e^{x}\), not \(\displaystyle e^{-6x^2}\). Integrating, \[y\,e^{3x}=e^{x}+C\]Dividing by \(\displaystyle e^{3x}\): \[\boxed{\,y=e^{-2x}+C\,e^{-3x}\,}\]
  3. Exercise 3

    dydx+yx=x2\displaystyle \frac{d y}{d x}+\frac{y}{x}=x^{2}

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle x y=\frac{x^{4}}{4}+\mathrm{C}\)
    Linear form with \(\displaystyle P=\frac{1}{x}\), \(\displaystyle Q=x^{2}\) (so \(\displaystyle x\neq 0\)).\[\mathrm{I.F.}=e^{\int \frac{1}{x}dx}=e^{\log|x|}=x\] (the constant of integration in the exponent is absorbed, and the sign is absorbed into \(\displaystyle C\)).Multiplying by \(\displaystyle x\): \[\frac{d}{dx}\left(xy\right)=x\cdot x^{2}=x^{3}\]Integrating, \[xy=\frac{x^{4}}{4}+C\]Dividing by \(\displaystyle x\): \[\boxed{\,y=\frac{x^{3}}{4}+\frac{C}{x}\,}\]
  4. Exercise 4

    dydx+(secx)y=tanx(0x<π2)\displaystyle \frac{d y}{d x}+(\sec x) y=\tan x\left(0 \leq x<\frac{\pi}{2}\right)

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y(\sec x+\tan x)=\sec x+\tan x-x+\mathrm{C}\)
    Linear form with \(\displaystyle P=\sec x\), \(\displaystyle Q=\tan x\), on \(\displaystyle 0\le x<\frac{\pi}{2}\).Using \(\displaystyle \int \sec x\,dx=\log|\sec x+\tan x|\), and noting that on \(\displaystyle 0\le x<\frac{\pi}{2}\) both \(\displaystyle \sec x\ge 1\) and \(\displaystyle \tan x\ge 0\), so \(\displaystyle \sec x+\tan x>0\) and the modulus can be dropped: \[\mathrm{I.F.}=e^{\log(\sec x+\tan x)}=\sec x+\tan x\]Multiplying through: \[\frac{d}{dx}\Big(y(\sec x+\tan x)\Big)=\tan x\,(\sec x+\tan x)=\sec x\tan x+\tan^{2}x\]Now replace \(\displaystyle \tan^{2}x\) by \(\displaystyle \sec^{2}x-1\) before integrating: \[\int\left(\sec x\tan x+\sec^{2}x-1\right)dx=\sec x+\tan x-x+C\]Hence \[\boxed{\,y(\sec x+\tan x)=\sec x+\tan x-x+C\,}\] equivalently \(\displaystyle y=1-\dfrac{x-C}{\sec x+\tan x}\).
  5. Exercise 5

    cos2xdydx+y=tanx(0x<π2)\displaystyle \cos ^{2} x \frac{d y}{d x}+y=\tan x\left(0 \leq x<\frac{\pi}{2}\right)

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y=(\tan x-1)+\mathrm{Ce}^{-\tan x}\)
    First put the equation in standard linear form by dividing by \(\displaystyle \cos^{2}x\) (legitimate on \(\displaystyle 0\le x<\frac{\pi}{2}\), where \(\displaystyle \cos x\neq 0\)): \[\frac{dy}{dx}+\sec^{2}x\;y=\sec^{2}x\,\tan x\]So \(\displaystyle P=\sec^{2}x\) and \[\mathrm{I.F.}=e^{\int \sec^{2}x\,dx}=e^{\tan x}\]Multiplying through: \[\frac{d}{dx}\left(y\,e^{\tan x}\right)=e^{\tan x}\sec^{2}x\,\tan x\qquad\Rightarrow\qquad y\,e^{\tan x}=\int e^{\tan x}\tan x\,\sec^{2}x\,dx\]Substitute \(\displaystyle t=\tan x\), so \(\displaystyle dt=\sec^{2}x\,dx\): \[\int t\,e^{t}\,dt=t\,e^{t}-\int e^{t}dt=(t-1)e^{t}+C=(\tan x-1)e^{\tan x}+C\]Therefore \(\displaystyle y\,e^{\tan x}=(\tan x-1)e^{\tan x}+C\), and dividing by \(\displaystyle e^{\tan x}\): \[\boxed{\,y=(\tan x-1)+C\,e^{-\tan x}\,}\]
  6. Exercise 6

    xdydx+2y=x2logx\displaystyle x \frac{d y}{d x}+2 y=x^{2} \log x

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y=\frac{x^{2}}{16}(4 \log |x|-1)+\mathrm{C} x^{-2}\)
    Divide by \(\displaystyle x\) (\(\displaystyle x>0\), as \(\displaystyle \log x\) requires) to reach standard linear form: \[\frac{dy}{dx}+\frac{2}{x}y=x\log x\]So \(\displaystyle P=\frac{2}{x}\) and \[\mathrm{I.F.}=e^{\int \frac{2}{x}dx}=e^{2\log x}=e^{\log x^{2}}=x^{2}\]Multiplying through: \[\frac{d}{dx}\left(x^{2}y\right)=x^{2}\cdot x\log x=x^{3}\log x\]Integrate by parts taking \(\displaystyle \log x\) as the first function: \[\int x^{3}\log x\,dx=\log x\cdot\frac{x^{4}}{4}-\int\frac{1}{x}\cdot\frac{x^{4}}{4}\,dx=\frac{x^{4}}{4}\log x-\frac{x^{4}}{16}+C\]Hence \(\displaystyle x^{2}y=\frac{x^{4}}{4}\log x-\frac{x^{4}}{16}+C\), and dividing by \(\displaystyle x^{2}\): \[\boxed{\,y=\frac{x^{2}}{4}\log x-\frac{x^{2}}{16}+\frac{C}{x^{2}}\,}\]
  7. Exercise 7

    xlogxdydx+y=2xlogx\displaystyle x \log x \frac{d y}{d x}+y=\frac{2}{x} \log x

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y \log x=\frac{-2}{x}(1+\log |x|)+C\)
    Divide by \(\displaystyle x\log x\) (so \(\displaystyle x>0\) and \(\displaystyle x\neq 1\)) to get standard linear form: \[\frac{dy}{dx}+\frac{1}{x\log x}\,y=\frac{2}{x^{2}}\]For the integrating factor, substitute \(\displaystyle t=\log x\), \(\displaystyle dt=\frac{dx}{x}\): \[\int\frac{dx}{x\log x}=\int\frac{dt}{t}=\log|t|=\log|\log x|\quad\Rightarrow\quad \mathrm{I.F.}=e^{\log|\log x|}=\log x\]Multiplying through: \[\frac{d}{dx}\Big(y\log x\Big)=\frac{2\log x}{x^{2}}\]Integrate the right side by parts with \(\displaystyle \log x\) first and \(\displaystyle \frac{2}{x^{2}}\) second: \[\int \frac{2\log x}{x^{2}}dx=\log x\left(-\frac{2}{x}\right)-\int\frac{1}{x}\left(-\frac{2}{x}\right)dx=-\frac{2\log x}{x}+2\int\frac{dx}{x^{2}}=-\frac{2\log x}{x}-\frac{2}{x}+C\]Therefore \[\boxed{\,y\log x=-\frac{2}{x}\left(1+\log x\right)+C\,}\]
  8. Exercise 8

    (1+x2)dy+2xydx=cotxdx(x0)\displaystyle \left(1+x^{2}\right) d y+2 x y d x=\cot x d x(x \neq 0)

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y=(1+x)^{-1} \log |\sin x|+\mathrm{C}\left(1+x^{2}\right)^{-1}\)
    Write the equation with \(\displaystyle x\) as the independent variable: \[\left(1+x^{2}\right)\frac{dy}{dx}+2xy=\cot x\qquad\Rightarrow\qquad \frac{dy}{dx}+\frac{2x}{1+x^{2}}\,y=\frac{\cot x}{1+x^{2}}\]This is linear with \(\displaystyle P=\frac{2x}{1+x^{2}}\): \[\int\frac{2x}{1+x^{2}}dx=\log\left(1+x^{2}\right)\quad\Rightarrow\quad \mathrm{I.F.}=e^{\log(1+x^{2})}=1+x^{2}\](Notice that the original left side, \(\displaystyle \left(1+x^{2}\right)dy+2xy\,dx\), is already \(\displaystyle d\!\left[(1+x^{2})y\right]\) — the integrating factor is \(\displaystyle 1\) times what is there.)Multiplying by \(\displaystyle 1+x^{2}\): \[\frac{d}{dx}\Big(\left(1+x^{2}\right)y\Big)=\cot x\qquad\Rightarrow\qquad \left(1+x^{2}\right)y=\int\cot x\,dx=\log|\sin x|+C\]Hence \[\boxed{\,y\left(1+x^{2}\right)=\log|\sin x|+C\,}\] valid where \(\displaystyle \sin x\neq 0\).
  9. Exercise 9

    xdydx+yx+xycotx=0(x0)\displaystyle x \frac{d y}{d x}+y-x+x y \cot x=0(x \neq 0)

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle y=\frac{1}{x}-\cot x+\frac{\mathrm{C}}{x \sin x}\)
    Divide by \(\displaystyle x\) (\(\displaystyle x\neq 0\)) and collect the terms in \(\displaystyle y\): \[\frac{dy}{dx}+\frac{y}{x}-1+y\cot x=0\qquad\Rightarrow\qquad \frac{dy}{dx}+\left(\frac{1}{x}+\cot x\right)y=1\]This is linear with \(\displaystyle P=\frac{1}{x}+\cot x\): \[\int P\,dx=\log|x|+\log|\sin x|=\log|x\sin x|\quad\Rightarrow\quad \mathrm{I.F.}=x\sin x\]Multiplying through: \[\frac{d}{dx}\Big(y\,x\sin x\Big)=x\sin x\]Integrate the right side by parts (\(\displaystyle x\) first, \(\displaystyle \sin x\) second): \[\int x\sin x\,dx=-x\cos x+\int\cos x\,dx=-x\cos x+\sin x+C\]So \(\displaystyle y\,x\sin x=-x\cos x+\sin x+C\). Dividing by \(\displaystyle x\sin x\): \[\boxed{\,y=-\cot x+\frac{1}{x}+\frac{C}{x\sin x}\,}\]
  10. Exercise 10

    (x+y)dydx=1\displaystyle (x+y) \frac{d y}{d x}=1

    Not cross-checked

    This solution has not been cross-checked against the answer printed in NCERT.

    NCERT’s answer
    \(\displaystyle (x+y+1)=\mathrm{C} e^{y}\)
    As written, \(\displaystyle \frac{dy}{dx}=\frac{1}{x+y}\) is not linear in \(\displaystyle y\). The key step is to invert the derivative and treat \(\displaystyle x\) as the dependent variable and \(\displaystyle y\) as the independent one: \[\frac{dx}{dy}=x+y\qquad\Rightarrow\qquad \frac{dx}{dy}-x=y\]This is linear in \(\displaystyle x\) with \(\displaystyle P_{1}=-1\), \(\displaystyle Q_{1}=y\): \[\mathrm{I.F.}=e^{\int(-1)dy}=e^{-y}\]Multiplying through: \[\frac{d}{dy}\left(x\,e^{-y}\right)=y\,e^{-y}\]Integrating by parts, \[\int y\,e^{-y}dy=-y\,e^{-y}+\int e^{-y}dy=-y\,e^{-y}-e^{-y}+C=-(y+1)e^{-y}+C\]So \(\displaystyle x\,e^{-y}=-(y+1)e^{-y}+C\). Multiplying by \(\displaystyle e^{y}\): \[\boxed{\,x+y+1=C\,e^{y}\,}\]