Linear Differential Equations

RS Aggarwal Class 12 Maths Solutions Exercise 21 — Linear Differential Equations

RS Aggarwal, Class 12 Mathematics — Linear Differential Equations, Exercise 21. All 51 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

Every question in this exercise is a linear first-order equation, $\dfrac{dy}{dx}+Py=Q$ (or $\dfrac{dx}{dy}+Px=Q$ when it is easier to treat $x$ as the unknown). Questions 1 to 34 ask for the general solution, 35 to 41 for a particular solution through a given point, 42 and 43 build the equation from a statement about a curve, and 44 to 51 are the $\dfrac{dx}{dy}$ type, with 50 and 51 ending in a given condition.

Key insight. Compute the integrating factor $\text{I.F.}=e^{\int P\,dx}$ and multiply the whole equation by it: the left side becomes $\dfrac{d}{dx}(y\cdot\text{I.F.})$, so the solution is $y\cdot\text{I.F.}=\int Q\cdot\text{I.F.}\,dx+C$. The one thing to check first is that the coefficient of $\dfrac{dy}{dx}$ is $1$; if it is not, divide through before reading off $P$ and $Q$.

Question 1

Find the general solution of $\frac{dy}{dx}+\frac{1}{x}\cdot y=x^2$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac1xy=x^2$$

So $P=\frac1x$ and $Q=x^2$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x\right)=x^3.$$

Integrating both sides:

$$y\cdot x=\frac{x^4}{4}+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac{x^3}{4}+\frac{C}{x}$$

Question 2

Find the general solution of $x\frac{dy}{dx}+2y=x^2$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{2}{x}y=x$$

So $P=\frac2x$ and $Q=x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x^2$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x^2\right)=x^3.$$

Integrating both sides:

$$y\cdot x^2=\frac{x^4}{4}+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac{x^2}{4}+\frac{C}{x^2}$$

Question 3

Find the general solution of $2x\frac{dy}{dx}+y=6x^3$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{1}{2x}y=3x^2$$

So $P=\frac1{2x}$ and $Q=3x^2$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sqrt x$ (because $\int\frac{dx}{2x}=\tfrac12\ln x$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sqrt x\right)=3x^{5/2}.$$

Integrating both sides:

$$y\cdot \sqrt x=\frac67x^{7/2}+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac67x^3+\frac{C}{\sqrt x}$$

Question 4

Find the general solution of $x\frac{dy}{dx}+y=3x^2-2,\ x>0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac1xy=3x-\frac2x$$

So $P=\frac1x$ and $Q=3x-\frac2x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x\right)=3x^2-2.$$

Integrating both sides:

$$y\cdot x=x^3-2x+C.$$

Dividing by the I.F. gives the solution.

$$y=x^2-2+\frac{C}{x}$$

Question 5

Find the general solution of $x\frac{dy}{dx}-y=2x^3$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac1xy=2x^2$$

So $P=-\frac1x$ and $Q=2x^2$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=2x.$$

Integrating both sides:

$$y\cdot \frac1x=x^2+C.$$

Dividing by the I.F. gives the solution.

$$y=x^3+Cx$$

Question 6

Find the general solution of $x\frac{dy}{dx}-y=x+1$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac1xy=1+\frac1x$$

So $P=-\frac1x$ and $Q=1+\frac1x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=\frac1x+\frac1{x^2}.$$

Integrating both sides:

$$y\cdot \frac1x=\ln x-\frac1x+C.$$

Dividing by the I.F. gives the solution.

$$y=x\ln x-1+Cx$$

Question 7

Find the general solution of $(1+x^2)\frac{dy}{dx}+2xy=\frac{1}{(1+x^2)}$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{2x}{1+x^2}y=\frac1{(1+x^2)^2}$$

So $P=\frac{2x}{1+x^2}$ and $Q=\frac1{(1+x^2)^2}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=1+x^2$ (because $\int\frac{2x}{1+x^2}dx=\ln(1+x^2)$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y(1+x^2)\right)=\frac1{1+x^2}.$$

Integrating both sides:

$$y(1+x^2)=\tan^{-1}x+C.$$

Dividing by the I.F. gives the solution.

$$y(1+x^2)=\tan^{-1}x+C$$

Question 8

Find the general solution of $(1-x^2)\frac{dy}{dx}+xy=x\sqrt{1-x^2}$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{x}{1-x^2}y=\frac{x}{\sqrt{1-x^2}}$$

So $P=\frac{x}{1-x^2}$ and $Q=\frac{x}{\sqrt{1-x^2}}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1{\sqrt{1-x^2}}$ (because $\int\frac{x}{1-x^2}dx=-\tfrac12\ln(1-x^2)$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1{\sqrt{1-x^2}}\right)=\frac{x}{1-x^2}.$$

Integrating both sides:

$$y\cdot \frac1{\sqrt{1-x^2}}=-\tfrac12\ln(1-x^2)+C.$$

Dividing by the I.F. gives the solution.

$$y=\sqrt{1-x^2}\left[-\tfrac12\ln(1-x^2)+C\right]$$

Question 9

Find the general solution of $(1-x^2)\frac{dy}{dx}+xy=ax$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{x}{1-x^2}y=\frac{ax}{1-x^2}$$

So $P=\frac{x}{1-x^2}$ and $Q=\frac{ax}{1-x^2}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1{\sqrt{1-x^2}}$ (because $\int\frac{x}{1-x^2}dx=-\tfrac12\ln(1-x^2)$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1{\sqrt{1-x^2}}\right)=\frac{ax}{(1-x^2)^{3/2}}.$$

Integrating both sides:

$$y\cdot \frac1{\sqrt{1-x^2}}=\frac{a}{\sqrt{1-x^2}}+C.$$

Dividing by the I.F. gives the solution.

$$y=a+C\sqrt{1-x^2}$$

Question 10

Find the general solution of $(x^2+1)\frac{dy}{dx}-2xy=(x^2+1)(x^2+2)$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac{2x}{x^2+1}y=x^2+2$$

So $P=-\frac{2x}{x^2+1}$ and $Q=x^2+2$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1{x^2+1}$ (because $-\int\frac{2x}{x^2+1}dx=-\ln(x^2+1)$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1{x^2+1}\right)=\frac{x^2+2}{x^2+1}=1+\frac1{x^2+1}.$$

Integrating both sides:

$$y\cdot \frac1{x^2+1}=x+\tan^{-1}x+C.$$

Dividing by the I.F. gives the solution.

$$y=(x^2+1)(x+\tan^{-1}x+C)$$

Question 11

Find the general solution of $\frac{dy}{dx}+2y=6e^x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+2y=6e^x$$

So $P=2$ and $Q=6e^x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{2x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{2x}\right)=6e^{3x}.$$

Integrating both sides:

$$y\cdot e^{2x}=2e^{3x}+C.$$

Dividing by the I.F. gives the solution.

$$y=2e^x+Ce^{-2x}$$

Question 12

Find the general solution of $\frac{dy}{dx}+3y=e^{-2x}$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+3y=e^{-2x}$$

So $P=3$ and $Q=e^{-2x}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{3x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{3x}\right)=e^{x}.$$

Integrating both sides:

$$y\cdot e^{3x}=e^x+C.$$

Dividing by the I.F. gives the solution.

$$y=e^{-2x}+Ce^{-3x}$$

Question 13

Find the general solution of $\frac{dy}{dx}+8y=5e^{-3x}$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+8y=5e^{-3x}$$

So $P=8$ and $Q=5e^{-3x}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{8x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{8x}\right)=5e^{5x}.$$

Integrating both sides:

$$y\cdot e^{8x}=e^{5x}+C.$$

Dividing by the I.F. gives the solution.

$$y=e^{-3x}+Ce^{-8x}$$

Question 14

Find the general solution of $x\frac{dy}{dx}-y=(x-1)e^x,\ x>0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac1xy=\frac{(x-1)e^x}{x}$$

So $P=-\frac1x$ and $Q=\frac{(x-1)e^x}{x}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=\frac{(x-1)e^x}{x^2}.$$

For the integral on the right, note that $\text{differentiating }\frac{e^x}{x}\text{ gives }\frac{xe^x-e^x}{x^2}=\frac{(x-1)e^x}{x^2}$.

Integrating both sides:

$$y\cdot \frac1x=\frac{e^x}{x}+C.$$

Dividing by the I.F. gives the solution.

$$y=e^x+Cx$$

Question 15

Find the general solution of $\frac{dy}{dx}-y\tan x=e^x\sec x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\tan xy=e^x\sec x$$

So $P=-\tan x$ and $Q=e^x\sec x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\cos x$ (because $-\int\tan x\,dx=\ln\cos x$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \cos x\right)=e^x.$$

Integrating both sides:

$$y\cdot \cos x=e^x+C.$$

Dividing by the I.F. gives the solution.

$$y\cos x=e^x+C$$

Question 16

Find the general solution of $(x\log x)\frac{dy}{dx}+y=2\log x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac1{x\ln x}y=\frac2x$$

So $P=\frac1{x\ln x}$ and $Q=\frac2x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\ln x$ (because $\int\frac{dx}{x\ln x}=\ln(\ln x)$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \ln x\right)=\frac{2\ln x}{x}.$$

Integrating both sides:

$$y\cdot \ln x=(\ln x)^2+C.$$

Dividing by the I.F. gives the solution.

$$y\ln x=(\ln x)^2+C$$

Question 17

Find the general solution of $x\frac{dy}{dx}+y=x\log x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac1xy=\ln x$$

So $P=\frac1x$ and $Q=\ln x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x\right)=x\ln x.$$

Integrating both sides, with $\int x\ln x\,dx=\frac{x^2}{2}\ln x-\int\frac{x}{2}dx$ by parts:

$$y\cdot x=\frac{x^2}{2}\ln x-\frac{x^2}{4}+C.$$

Dividing by the I.F. gives the solution.

$$4xy=2x^2\ln x-x^2+C$$

Question 18

Find the general solution of $x\frac{dy}{dx}+2y=x^2\log x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac2xy=x\ln x$$

So $P=\frac2x$ and $Q=x\ln x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x^2$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x^2\right)=x^3\ln x.$$

Integrating both sides, with $\int x^3\ln x\,dx=\frac{x^4}{4}\ln x-\int\frac{x^3}{4}dx$ by parts:

$$y\cdot x^2=\frac{x^4}{4}\ln x-\frac{x^4}{16}+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac{x^2}{16}(4\ln x-1)+\frac{C}{x^2}$$

Question 19

Find the general solution of $(1+x)\frac{dy}{dx}-y=e^{3x}(1+x)^2$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac1{1+x}y=e^{3x}(1+x)$$

So $P=-\frac1{1+x}$ and $Q=e^{3x}(1+x)$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1{1+x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1{1+x}\right)=e^{3x}.$$

Integrating both sides:

$$y\cdot \frac1{1+x}=\frac{e^{3x}}{3}+C.$$

Dividing by the I.F. gives the solution.

$$y=(1+x)\left(\frac{e^{3x}}{3}+C\right)$$

Question 20

Find the general solution of $\frac{dy}{dx}+\frac{4x}{(x^2+1)}y+\frac{1}{(x^2+1)^2}=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{4x}{x^2+1}y=-\frac1{(x^2+1)^2}$$

So $P=\frac{4x}{x^2+1}$ and $Q=-\frac1{(x^2+1)^2}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=(x^2+1)^2$ (because $\int\frac{4x}{x^2+1}dx=2\ln(x^2+1)$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot (x^2+1)^2\right)=-1.$$

Integrating both sides:

$$y\cdot (x^2+1)^2=-x+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac{C-x}{(x^2+1)^2}$$

Question 21

Find the general solution of $(y+3x^2)\frac{dx}{dy}=x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}=\frac{y+3x^2}{x}\ \Rightarrow\ \frac{dy}{dx}-\frac1xy=3x$$

So $P=-\frac1x$ and $Q=3x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=3.$$

Integrating both sides:

$$y\cdot \frac1x=3x+C.$$

Dividing by the I.F. gives the solution.

$$y=3x^2+Cx$$

Question 22

Find the general solution of $x\,dy-(y+2x^2)dx=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}=\frac{y+2x^2}{x}\ \Rightarrow\ \frac{dy}{dx}-\frac1xy=2x$$

So $P=-\frac1x$ and $Q=2x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=2.$$

Integrating both sides:

$$y\cdot \frac1x=2x+C.$$

Dividing by the I.F. gives the solution.

$$y=2x^2+Cx$$

Question 23

Find the general solution of $x\,dy+(y-x^3)dx=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}=\frac{x^3-y}{x}\ \Rightarrow\ \frac{dy}{dx}+\frac1xy=x^2$$

So $P=\frac1x$ and $Q=x^2$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x\right)=x^3.$$

Integrating both sides:

$$y\cdot x=\frac{x^4}{4}+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac{x^3}{4}+\frac{C}{x}$$

Question 24

Find the general solution of $\frac{dy}{dx}+2y=\sin x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+2y=\sin x$$

So $P=2$ and $Q=\sin x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{2x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{2x}\right)=e^{2x}\sin x.$$

For the integral on the right, note that $\text{by parts twice, }\int e^{2x}\sin x\,dx=\frac{e^{2x}(2\sin x-\cos x)}{5}$.

Integrating both sides:

$$y\cdot e^{2x}=\frac{e^{2x}}{5}(2\sin x-\cos x)+C.$$

Dividing by the I.F. gives the solution.

$$y=\frac15(2\sin x-\cos x)+Ce^{-2x}$$

Question 25

Find the general solution of $\frac{dy}{dx}+y=\cos x-\sin x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+y=\cos x-\sin x$$

So $P=1$ and $Q=\cos x-\sin x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{x}\right)=e^x(\cos x-\sin x).$$

For the integral on the right, note that $\frac{d}{dx}(e^x\cos x)=e^x\cos x-e^x\sin x$.

Integrating both sides:

$$y\cdot e^{x}=e^x\cos x+C.$$

Dividing by the I.F. gives the solution.

$$y=\cos x+Ce^{-x}$$

Question 26

Find the general solution of $\sec x\frac{dy}{dx}-y=\sin x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-(\cos x)y=\sin x\cos x$$

So $P=-\cos x$ and $Q=\sin x\cos x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{-\sin x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{-\sin x}\right)=\sin x\cos x\,e^{-\sin x}.$$

For the integral on the right, note that $\text{put }t=\sin x:\ \int te^{-t}dt=-(t+1)e^{-t}$.

Integrating both sides:

$$y\cdot e^{-\sin x}=-(1+\sin x)e^{-\sin x}+C.$$

Dividing by the I.F. gives the solution.

$$y=Ce^{\sin x}-(1+\sin x)$$

Question 27

Find the general solution of $(1+x^2)dy+2xy\,dx=\cot x\,dx$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{2x}{1+x^2}y=\frac{\cot x}{1+x^2}$$

So $P=\frac{2x}{1+x^2}$ and $Q=\frac{\cot x}{1+x^2}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=1+x^2$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y(1+x^2)\right)=\cot x.$$

Integrating both sides:

$$y(1+x^2)=\ln|\sin x|+C.$$

Dividing by the I.F. gives the solution.

$$y(1+x^2)=\ln|\sin x|+C$$

Question 28

Find the general solution of $(\sin x)\frac{dy}{dx}+(\cos x)y=\cos x\sin^2x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+(\cot x)y=\sin x\cos x$$

So $P=\cot x$ and $Q=\sin x\cos x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sin x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sin x\right)=\sin^2x\cos x.$$

Integrating both sides:

$$y\cdot \sin x=\frac{\sin^3x}{3}+C.$$

Dividing by the I.F. gives the solution.

$$y\sin x=\frac13\sin^3x+C$$

Question 29

Find the general solution of $\frac{dy}{dx}+2y\cot x=3x^2\mathrm{cosec}^2x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+2\cot xy=3x^2\operatorname{cosec}^2x$$

So $P=2\cot x$ and $Q=3x^2\operatorname{cosec}^2x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sin^2x$ (because $\int2\cot x\,dx=2\ln\sin x$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sin^2x\right)=3x^2.$$

Integrating both sides:

$$y\cdot \sin^2x=x^3+C.$$

Dividing by the I.F. gives the solution.

$$y\sin^2x=x^3+C$$

Question 30

Find the general solution of $x\frac{dy}{dx}-y=2x^2\sec x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac1xy=2x\sec x$$

So $P=-\frac1x$ and $Q=2x\sec x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=2\sec x.$$

Integrating both sides:

$$y\cdot \frac1x=2\ln|\sec x+\tan x|+C.$$

Dividing by the I.F. gives the solution.

$$y=Cx+2x\ln|\sec x+\tan x|$$

Question 31

Find the general solution of $\frac{dy}{dx}=y\tan x-2\sin x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-(\tan x)y=-2\sin x$$

So $P=-\tan x$ and $Q=-2\sin x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\cos x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \cos x\right)=-2\sin x\cos x=-\sin2x.$$

Integrating both sides:

$$y\cdot \cos x=\frac{\cos2x}{2}+C.$$

Dividing by the I.F. gives the solution.

$$2y\cos x=\cos2x+C$$

Question 32

Find the general solution of $\frac{dy}{dx}+y\cot x=\sin2x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\cot xy=\sin2x$$

So $P=\cot x$ and $Q=\sin2x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sin x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sin x\right)=\sin2x\sin x=2\sin^2x\cos x.$$

Integrating both sides:

$$y\cdot \sin x=\frac23\sin^3x+C.$$

Dividing by the I.F. gives the solution.

$$y\sin x=\frac23\sin^3x+C$$

Question 33

Find the general solution of $\frac{dy}{dx}+2y\tan x=\sin x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+2\tan xy=\sin x$$

So $P=2\tan x$ and $Q=\sin x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sec^2x$ (because $2\int\tan x\,dx=2\ln\sec x$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sec^2x\right)=\frac{\sin x}{\cos^2x}=\sec x\tan x.$$

Integrating both sides:

$$y\cdot \sec^2x=\sec x+C.$$

Dividing by the I.F. gives the solution.

$$y=\cos x+C\cos^2x$$

Question 34

Find the general solution of $\frac{dy}{dx}+y\cot x=x^2\cot x+2x$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\cot xy=x^2\cot x+2x$$

So $P=\cot x$ and $Q=x^2\cot x+2x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sin x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sin x\right)=x^2\cos x+2x\sin x.$$

For the integral on the right, note that $\frac{d}{dx}(x^2\sin x)=x^2\cos x+2x\sin x$.

Integrating both sides:

$$y\cdot \sin x=x^2\sin x+C.$$

Dividing by the I.F. gives the solution.

$$y=x^2+C\operatorname{cosec}x$$

Question 35

Find a particular solution of $x\frac{dy}{dx}+y=x^3$, given that $y=1$ when $x=2$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac1xy=x^2$$

So $P=\frac1x$ and $Q=x^2$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot x\right)=x^3.$$

Integrating both sides:

$$y\cdot x=\frac{x^4}{4}+C.$$

Putting $x=2,\ y=1$ in $xy=\frac{x^4}{4}+C$: $2=4+C$, so $C=-2$.

Dividing by the I.F. gives the solution.

$$y=\frac{x^3}{4}-\frac2x$$

Question 36

Find a particular solution of $\frac{dy}{dx}+y\cot x=4x\,\mathrm{cosec}\,x$, given that $y=0$ when $x=\frac{\pi}{2}$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\cot xy=4x\operatorname{cosec}x$$

So $P=\cot x$ and $Q=4x\operatorname{cosec}x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sin x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sin x\right)=4x.$$

Integrating both sides:

$$y\cdot \sin x=2x^2+C.$$

Putting $x=\frac\pi2,\ y=0$: $0=2\cdot\frac{\pi^2}{4}+C$, so $C=-\frac{\pi^2}{2}$.

Dividing by the I.F. gives the solution.

$$y\sin x=2x^2-\frac{\pi^2}{2}$$

Question 37

Find a particular solution of $\frac{dy}{dx}+2xy=x$, given that $y=1$ when $x=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+2xy=x$$

So $P=2x$ and $Q=x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{x^2}$ (because $\int2x\,dx=x^2$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{x^2}\right)=xe^{x^2}.$$

Integrating both sides:

$$y\cdot e^{x^2}=\frac{e^{x^2}}{2}+C.$$

Putting $x=0,\ y=1$ in $ye^{x^2}=\frac{e^{x^2}}{2}+C$: $1=\frac12+C$, so $C=\frac12$.

Dividing by the I.F. gives the solution.

$$2y=1+e^{-x^2}$$

Question 38

Find a particular solution of $\frac{dy}{dx}+2y=e^{-2x}\sin x$, given that $y=0$ when $x=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+2y=e^{-2x}\sin x$$

So $P=2$ and $Q=e^{-2x}\sin x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=e^{2x}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot e^{2x}\right)=\sin x.$$

Integrating both sides:

$$y\cdot e^{2x}=-\cos x+C.$$

Putting $x=0,\ y=0$ in $ye^{2x}=-\cos x+C$: $0=-1+C$, so $C=1$.

Dividing by the I.F. gives the solution.

$$y=e^{-2x}(1-\cos x)$$

Question 39

Find a particular solution of $(1+x^2)\frac{dy}{dx}+2xy=4x^2$, given that $y=0$ when $x=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\frac{2x}{1+x^2}y=\frac{4x^2}{1+x^2}$$

So $P=\frac{2x}{1+x^2}$ and $Q=\frac{4x^2}{1+x^2}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=1+x^2$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y(1+x^2)\right)=4x^2.$$

Integrating both sides:

$$y(1+x^2)=\frac{4x^3}{3}+C.$$

Putting $x=0,\ y=0$: $0=0+C$, so $C=0$.

Dividing by the I.F. gives the solution.

$$y=\frac{4x^3}{3(1+x^2)}$$

Question 40

Find a particular solution of $x\frac{dy}{dx}-y=\log x$, given that $y=0$ when $x=1$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}-\frac1xy=\frac{\ln x}{x}$$

So $P=-\frac1x$ and $Q=\frac{\ln x}{x}$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\frac1x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \frac1x\right)=\frac{\ln x}{x^2}.$$

Integrating both sides, with $\int\frac{\ln x}{x^2}dx=-\frac{\ln x}{x}+\int\frac1{x^2}dx=-\frac{\ln x+1}{x}$ by parts:

$$y\cdot \frac1x=-\frac{\ln x+1}{x}+C.$$

Multiplying by $x$: $y=-\ln x-1+Cx$. Putting $x=1,\ y=0$: $0=0-1+C$, so $C=1$.

Dividing by the I.F. gives the solution.

$$y=x-1-\ln x$$

Question 41

Find a particular solution of $\frac{dy}{dx}+y\tan x=2x+x^2\tan x$, given that $y=1$ when $x=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dy}{dx}+Py=Q$ with $P$ and $Q$ depending on $x$ alone:

$$\frac{dy}{dx}+\tan xy=2x+x^2\tan x$$

So $P=\tan x$ and $Q=2x+x^2\tan x$. The integrating factor is $e^{\int P\,dx}$, which here is $\text{I.F.}=\sec x$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dx}\left(y\cdot \sec x\right)=(2x+x^2\tan x)\sec x.$$

For the integral on the right, note that $\frac{d}{dx}(x^2\sec x)=2x\sec x+x^2\sec x\tan x$.

Integrating both sides:

$$y\cdot \sec x=x^2\sec x+C.$$

Dividing by $\sec x$: $y=x^2+C\cos x$. Putting $x=0,\ y=1$: $1=0+C$, so $C=1$.

Dividing by the I.F. gives the solution.

$$y=x^2+\cos x$$

Question 42

A curve passes through the origin. At each point $(x,y)$ on it, the gradient of the tangent equals $x+y$, the sum of that point’s coordinates. Find the equation of the curve.

Solution. The slope condition reads $\dfrac{dy}{dx}=x+y$, that is $\dfrac{dy}{dx}-y=x$. Here $P=-1$ and $Q=x$, so $\text{I.F.}=e^{-x}$ and

$$\frac{d}{dx}\left(ye^{-x}\right)=xe^{-x}.$$

By parts, $\int xe^{-x}dx=-xe^{-x}+\int e^{-x}dx=-(x+1)e^{-x}$. Hence $ye^{-x}=-(x+1)e^{-x}+C$, i.e. $y=-x-1+Ce^{x}$.

The curve passes through the origin: $0=-1+C$, so $C=1$ and $y=e^x-x-1$, which can be written $x+y+1=e^x$.

$$x+y+1=e^{x}$$

Question 43

Find the curve through the point $(0,2)$ for which, at every point $(x,y)$ on it, $x+y$ is larger than the absolute value of the tangent’s slope by exactly $5$.

Solution. Read literally, the condition is $x+y-\left|\dfrac{dy}{dx}\right|=5$. At the point $(0,2)$ this would need $\left|\dfrac{dy}{dx}\right|=-3$, which is impossible, so the condition can only be met if the slope is taken with its sign, $x+y-\dfrac{dy}{dx}=5$. We solve that signed form, so $\dfrac{dy}{dx}-y=x-5$. Here $P=-1$ and $Q=x-5$, so $\text{I.F.}=e^{-x}$ and

$$\frac{d}{dx}\left(ye^{-x}\right)=(x-5)e^{-x}.$$

By parts, $\int(x-5)e^{-x}dx=-(x-5)e^{-x}+\int e^{-x}dx=-(x-4)e^{-x}$. Hence $ye^{-x}=-(x-4)e^{-x}+C$, i.e. $y=4-x+Ce^{x}$.

The curve passes through $(0,2)$: $2=4+C$, so $C=-2$.

$$y=4-x-2e^{x}$$

Question 44

Find the general solution of $y\,dx-(x+2y^2)dy=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}=\frac{x+2y^2}{y}\ \Rightarrow\ \frac{dx}{dy}-\frac1yx=2y$$

So $P=-\frac1y$ and $Q=2y$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=\frac1y$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot \frac1y\right)=2.$$

Integrating both sides:

$$x\cdot \frac1y=2y+C.$$

Dividing by the I.F. gives the solution.

$$x=2y^2+Cy$$

Question 45

Find the general solution of $y\,dx+(x-y^2)dy=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}=\frac{y^2-x}{y}\ \Rightarrow\ \frac{dx}{dy}+\frac1yx=y$$

So $P=\frac1y$ and $Q=y$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=y$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot y\right)=y^2.$$

Integrating both sides:

$$x\cdot y=\frac{y^3}{3}+C.$$

Dividing by the I.F. gives the solution.

$$x=\frac{y^2}{3}+\frac{C}{y}$$

Question 46

Find the general solution of $(x-y^3)\frac{dy}{dx}+y=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}=-\frac{x-y^3}{y}\ \Rightarrow\ \frac{dx}{dy}+\frac1yx=y^2$$

So $P=\frac1y$ and $Q=y^2$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=y$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot y\right)=y^3.$$

Integrating both sides:

$$x\cdot y=\frac{y^4}{4}+C.$$

Dividing by the I.F. gives the solution.

$$x=\frac{y^3}{4}+\frac{C}{y}$$

Question 47

Find the general solution of $(x+3y^2)\frac{dy}{dx}=y,\ (y>0)$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}=\frac{x+3y^2}{y}\ \Rightarrow\ \frac{dx}{dy}-\frac1yx=3y$$

So $P=-\frac1y$ and $Q=3y$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=\frac1y$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot \frac1y\right)=3.$$

Integrating both sides:

$$x\cdot \frac1y=3y+C.$$

Dividing by the I.F. gives the solution.

$$x=3y^2+Cy$$

Question 48

Find the general solution of $(x+y)\frac{dy}{dx}=1$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}=x+y\ \Rightarrow\ \frac{dx}{dy}-x=y$$

So $P=-1$ and $Q=y$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=e^{-y}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot e^{-y}\right)=ye^{-y}.$$

Integrating both sides, with $\int ye^{-y}dy=-ye^{-y}+\int e^{-y}dy=-(y+1)e^{-y}$ by parts:

$$x\cdot e^{-y}=-(y+1)e^{-y}+C.$$

Dividing by the I.F. gives the solution.

$$x=Ce^y-(y+1)$$

Question 49

Find the general solution of $(x+y+1)\frac{dy}{dx}=1$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}=x+y+1\ \Rightarrow\ \frac{dx}{dy}-x=y+1$$

So $P=-1$ and $Q=y+1$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=e^{-y}$.

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot e^{-y}\right)=(y+1)e^{-y}.$$

Integrating both sides, with $\int(y+1)e^{-y}dy=-(y+1)e^{-y}+\int e^{-y}dy=-(y+2)e^{-y}$ by parts:

$$x\cdot e^{-y}=-(y+2)e^{-y}+C.$$

Dividing by the I.F. gives the solution.

$$x=Ce^y-(y+2)$$

Question 50

Solve $(x+1)\frac{dy}{dx}=2e^{-y}-1$, given that $x=0$ when $y=0$.

Solution. Rewrite as $e^{y}\dfrac{dy}{dx}=\dfrac{2-e^{y}}{x+1}$ (multiply both sides by $e^y$). Put $z=e^{y}$, so $\dfrac{dz}{dx}=e^{y}\dfrac{dy}{dx}$ and the equation becomes the linear one

$$\frac{dz}{dx}+\frac{1}{x+1}z=\frac{2}{x+1}.$$

Here $P=\dfrac1{x+1}$, $Q=\dfrac{2}{x+1}$, and since $\int\dfrac{dx}{x+1}=\ln(x+1)$ the integrating factor is $\text{I.F.}=x+1$. Then

$$\frac{d}{dx}\big(z(x+1)\big)=2,\qquad z(x+1)=2x+C.$$

When $x=0,\ y=0$ we have $z=e^0=1$, so $1=0+C$ and $C=1$. Thus $e^{y}(x+1)=2x+1$, which gives $e^{y}=\dfrac{2x+1}{x+1}$.

$$y=\ln\left|\frac{2x+1}{x+1}\right|$$

Question 51

Solve $(1+y^2)dx+(x-e^{-\tan^{-1}y})dy=0$, given that when $y=0$, then $x=0$.

Solution. This is a first-order linear equation. Write it as $\frac{dx}{dy}+Px=Q$ with $P$ and $Q$ depending on $y$ alone:

$$\frac{dx}{dy}+\frac1{1+y^2}x=\frac{e^{-\tan^{-1}y}}{1+y^2}$$

So $P=\frac1{1+y^2}$ and $Q=\frac{e^{-\tan^{-1}y}}{1+y^2}$. The integrating factor is $e^{\int P\,dy}$, which here is $\text{I.F.}=e^{\tan^{-1}y}$ (because $\int\frac{dy}{1+y^2}=\tan^{-1}y$).

Multiplying by the I.F. turns the left side into one derivative:

$$\frac{d}{dy}\left(x\cdot e^{\tan^{-1}y}\right)=\frac1{1+y^2}.$$

Integrating both sides:

$$x\cdot e^{\tan^{-1}y}=\tan^{-1}y+C.$$

Putting $y=0,\ x=0$: $0=0+C$, so $C=0$.

Dividing by the I.F. gives the solution.

$$xe^{\tan^{-1}y}=\tan^{-1}y$$

Common mistakes

  • Reading $P$ before dividing by the coefficient of $\dfrac{dy}{dx}$. In $x\dfrac{dy}{dx}+2y=x^2$ the value is $P=\dfrac2x$, not $2$, and in $2x\dfrac{dy}{dx}+y=6x^3$ it is $P=\dfrac1{2x}$.
  • Dropping the sign of $P$. For $x\dfrac{dy}{dx}-y=2x^3$ we have $P=-\dfrac1x$, giving I.F. $=\dfrac1x$, not $x$.
  • Forgetting to divide by the I.F. at the end (e.g. leaving $y\cdot e^{8x}=e^{5x}+C$ instead of $y=e^{-3x}+Ce^{-8x}$), so that $C$ ends up multiplying the wrong factor.
  • Applying the initial condition before the constant has been placed correctly, or using it on the $y\cdot\text{I.F.}$ form with the wrong I.F. value.
  • Treating $\dfrac{dy}{dx}=\dfrac{y+3x^2}{x}$-type questions given in differential form as non-linear, instead of choosing the variable that makes them linear (Questions 44 to 49 and 51 are linear in $x$).

Practise next

  • Solve $\dfrac{dy}{dx}+2y=4x$, given that $y=1$ when $x=0$.
Show answer

$y=2x-1+2e^{-2x}$. The integrating factor is $e^{2x}$, so $ye^{2x}=\int4xe^{2x}dx=(2x-1)e^{2x}+C$; the condition $y(0)=1$ gives $C=2$.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe