How to use these solu­tions

These are the worked solu­tions to the Prac­tice ques­tions in the les­son Dif­fer­en­tial Equa­tions and Sep­a­ra­ble Vari­ables. Try each ques­tion first, then read the steps and com­pare. Through­out, y′y' means dydx\displaystyle \frac{dy}{dx} and y′′y'' means d2ydx2\displaystyle \frac{d^2y}{dx^2}; log⁡\log means the nat­ural log­a­rithm.

Ques­tion 1: Order and degree

The prob­lem

State the order and degree of:

(a) y′′′+2y′′−y′=0y''' + 2y'' - y' = 0

(b) (y′)2+3y=cos⁡x(y')^2 + 3y = \cos x

(c) (1+(y′)2)3/2=y′′\left(1 + (y')^2\right)^{3/2} = y'' (square both sides first)

Under­stand­ing the prob­lem

The order is the order of the high­est deriv­a­tive present. The degree is the power of that high­est deriv­a­tive, but only once the equa­tion is a poly­no­mial in the deriv­a­tives (no frac­tional pow­ers, no deriv­a­tive inside sin⁡\sin, etc.).

The idea

Find the high­est deriv­a­tive, make sure the equa­tion is poly­no­mial in the deriv­a­tives, then read its power.

Step-by-step solu­tion

Part (a)

Step 1. The high­est deriv­a­tive is y′′′y''', so the order is 33.

Step 2. y′′′y''' appears to the power 11, and every­thing is already poly­no­mial. Degree 11.

Part (b)

Step 1. The only deriv­a­tive is y′y', so the order is 11.

Step 2. It appears as (y′)2(y')^2, so the degree is 22. (The cos⁡x\cos x involves only xx, not a deriv­a­tive, so it does not mat­ter.)

Part (c)

Step 1. The power 32\displaystyle \tfrac{3}{2} is not a whole num­ber, so the equa­tion is not yet a poly­no­mial in the deriv­a­tives. Square both sides.

(1+(y′)2)3=(y′′)2\left(1 + (y')^2\right)^3 = (y'')^2

Step 2. The high­est deriv­a­tive is y′′y'': order 22.

Step 3. y′′y'' appears squared: degree 22.

Check­ing the answer

In (c) the left side, when expanded, con­tains (y′)6(y')^6, but y′y' is not the high­est deriv­a­tive, so its power does not decide the degree.

Answer

(a) order 33, degree 11 (b) order 11, degree 22 (c) order 22, degree 22

Com­mon mis­take to avoid

In (c), read­ing the degree as 11 from the orig­i­nal form. Always clear frac­tional pow­ers first.

Ques­tion 2: Ver­i­fy­ing a solu­tion

The prob­lem

Ver­ify that y=e−x+2x−2y = e^{-x} + 2x - 2 sat­is­fies y′+y=2xy' + y = 2x.

Under­stand­ing the prob­lem

"Ver­ify" means: dif­fer­en­ti­ate the given yy, sub­sti­tute yy and y′y' into the left side, and show you get the right side.

The idea

Direct sub­sti­tu­tion.

Step-by-step solu­tion

Step 1. Dif­fer­en­ti­ate.

y′=−e−x+2y' = -e^{-x} + 2

Step 2. Add yy.

y′+y=(−e−x+2)+(e−x+2x−2)=2x\begin{aligned} y' + y &= (-e^{-x} + 2) + (e^{-x} + 2x - 2)\\ &= 2x \end{aligned}

The e−xe^{-x} terms can­cel and 2−2=02 - 2 = 0.

Check­ing the answer

At x=0x = 0: y=1+0−2=−1y = 1 + 0 - 2 = -1, y′=−1+2=1y' = -1 + 2 = 1; y′+y=0=2×0y' + y = 0 = 2 \times 0.

Answer

y′+y=2xy' + y = 2x, so the func­tion is a solu­tion.

Ques­tion 3: Ver­i­fy­ing a solu­tion with a square root

The prob­lem

Ver­ify that y=1+x2y = \sqrt{1 + x^2} sat­is­fies yy′=xyy' = x.

Under­stand­ing the prob­lem

Find y′y' by the chain rule, then mul­ti­ply by yy.

The idea

ddxu=12u⋅dudx\displaystyle \frac{d}{dx}\sqrt{u} = \frac{1}{2\sqrt{u}}\cdot\frac{du}{dx}.

Step-by-step solu­tion

Step 1. Dif­fer­en­ti­ate with u=1+x2u = 1 + x^2.

y′=121+x2⋅2x=x1+x2\displaystyle y' = \frac{1}{2\sqrt{1 + x^2}}\cdot 2x = \frac{x}{\sqrt{1 + x^2}}

Step 2. Mul­ti­ply by yy.

yy′=1+x2⋅x1+x2=x\displaystyle yy' = \sqrt{1 + x^2}\cdot\frac{x}{\sqrt{1 + x^2}} = x

Check­ing the answer

At x=0x = 0: y=1y = 1, y′=0y' = 0, and yy′=0=xyy' = 0 = x.

Answer

yy′=xyy' = x, so the func­tion is a solu­tion.

Ques­tion 4: Form­ing an equa­tion with two con­stants

The prob­lem

Form the dif­fer­en­tial equa­tion of y=ae2x+be−xy = ae^{2x} + be^{-x}.

Under­stand­ing the prob­lem

aa and bb are arbi­trary con­stants. We need an equa­tion in xx, yy and deriv­a­tives only, with no aa or bb.

The idea

Two con­stants means dif­fer­en­ti­ate twice, giv­ing three equa­tions; then elim­i­nate aa and bb.

Step-by-step solu­tion

Step 1. Write yy and its first two deriv­a­tives.

y=ae2x+be−x(1)y′=2ae2x−be−x(2)y′′=4ae2x+be−x(3)\begin{aligned} y &= ae^{2x} + be^{-x} \quad &(1)\\ y' &= 2ae^{2x} - be^{-x} \quad &(2)\\ y'' &= 4ae^{2x} + be^{-x} \quad &(3) \end{aligned}

Step 2. Look for num­bers pp, qq with y′′+py′+qy=0y'' + py' + qy = 0. Col­lect­ing the ae2xae^{2x} terms: 4+2p+q=04 + 2p + q = 0. Col­lect­ing the be−xbe^{-x} terms: 1−p+q=01 - p + q = 0.

Step 3. Solve. Sub­tract the sec­ond from the first: 3+3p=03 + 3p = 0, so p=−1p = -1. Then q=p−1=−2q = p - 1 = -2.

Step 4. Write the equa­tion.

y′′−y′−2y=0y'' - y' - 2y = 0

Check­ing the answer

Sub­sti­tute (1), (2), (3): (4a−2a−2a)e2x+(b+b−2b)e−x=0(4a - 2a - 2a)e^{2x} + (b + b - 2b)e^{-x} = 0. Cor­rect.

Answer

y′′−y′−2y=0y'' - y' - 2y = 0

Ques­tion 5: Cir­cles touch­ing the yy-axis at the ori­gin

The prob­lem

Form the dif­fer­en­tial equa­tion of all cir­cles touch­ing the yy-axis at the ori­gin, x2+y2=2axx^2 + y^2 = 2ax.

Under­stand­ing the prob­lem

Each cir­cle has cen­tre (a,0)(a, 0) and radius ∣a∣|a|, so it touches the yy-axis at (0,0)(0, 0). There is one con­stant, aa.

The idea

Dif­fer­en­ti­ate once, express aa in terms of xx, yy, y′y', and sub­sti­tute back into the orig­i­nal equa­tion.

Step-by-step solu­tion

Step 1. Dif­fer­en­ti­ate x2+y2=2axx^2 + y^2 = 2ax with respect to xx (remem­ber yy is a func­tion of xx).

2x+2yy′=2a  ⇒  a=x+yy′2x + 2yy' = 2a \;\Rightarrow\; a = x + yy'

Step 2. Sub­sti­tute aa into the orig­i­nal equa­tion.

x2+y2=2x(x+yy′)=2x2+2xyy′x^2 + y^2 = 2x(x + yy') = 2x^2 + 2xyy'

Step 3. Rearrange.

2xyy′=y2−x22xyy' = y^2 - x^2

Check­ing the answer

Take the cir­cle a=1a = 1: (x−1)2+y2=1(x - 1)^2 + y^2 = 1. At the point (1,1)(1, 1) the tan­gent is hor­i­zon­tal, so y′=0y' = 0; the equa­tion gives 2⋅1⋅1⋅0=1−1=02 \cdot 1 \cdot 1 \cdot 0 = 1 - 1 = 0. Cor­rect.

Answer

2xyy′=y2−x22xyy' = y^2 - x^2

Ques­tion 6: Sep­a­rat­ing the vari­ables

The prob­lem

Solve:

(a) dydx=1+y1+x\displaystyle \frac{dy}{dx} = \frac{1 + y}{1 + x}

(b) extan⁡y dx+(1−ex)sec⁡2y dy=0e^x\tan y\,dx + (1 - e^x)\sec^2 y\,dy = 0

Under­stand­ing the prob­lem

In each equa­tion we can move all the yy terms to one side with dydy and all the xx terms to the other side with dxdx. That is what "vari­ables sep­a­ra­ble" means.

The idea

Sep­a­rate, inte­grate both sides, and add one con­stant.

Step-by-step solu­tion

Part (a)

Step 1. Sep­a­rate.

dy1+y=dx1+x\displaystyle \frac{dy}{1 + y} = \frac{dx}{1 + x}

Step 2. Inte­grate both sides.

log⁡∣1+y∣=log⁡∣1+x∣+log⁡∣C∣\log|1 + y| = \log|1 + x| + \log|C|

(Writ­ing the con­stant as log⁡∣C∣\log|C| makes the next step neat.)

Step 3. Com­bine the log­a­rithms and remove them.

log⁡∣1+y∣=log⁡∣C(1+x)∣  ⇒  1+y=C(1+x)\log|1 + y| = \log|C(1 + x)| \;\Rightarrow\; 1 + y = C(1 + x)

Part (b)

Step 1. Move the dydy term to the other side.

extan⁡y dx=−(1−ex)sec⁡2y dy=(ex−1)sec⁡2y dye^x\tan y\,dx = -(1 - e^x)\sec^2 y\,dy = (e^x - 1)\sec^2 y\,dy

Step 2. Divide by tan⁡y (ex−1)\tan y\,(e^x - 1) to sep­a­rate.

sec⁡2ytan⁡y dy=exex−1 dx\displaystyle \frac{\sec^2 y}{\tan y}\,dy = \frac{e^x}{e^x - 1}\,dx

Step 3. Inte­grate. On each side the numer­a­tor is the deriv­a­tive of the denom­i­na­tor, so each inte­gral is a log­a­rithm.

log⁡∣tan⁡y∣=log⁡∣ex−1∣+log⁡∣C∣\log|\tan y| = \log|e^x - 1| + \log|C|

Step 4. Remove the log­a­rithms.

tan⁡y=C(ex−1)\tan y = C(e^x - 1)

Since CC is any con­stant, you can equally write this as tan⁡y=C(1−ex)\tan y = C(1 - e^x) (replace CC by −C-C).

Check­ing the answer

(a) Dif­fer­en­ti­ate y=C(1+x)−1y = C(1 + x) - 1: y′=C=1+y1+x\displaystyle y' = C = \frac{1 + y}{1 + x}. Cor­rect.

Answer

(a) 1+y=C(1+x)1 + y = C(1 + x) (b) tan⁡y=C(1−ex)\tan y = C(1 - e^x)

Ques­tion 7: A par­tic­u­lar solu­tion of dydx=2xy\displaystyle \frac{dy}{dx} = 2xy

The prob­lem

Solve dydx=2xy\displaystyle \frac{dy}{dx} = 2xy with y(0)=3y(0) = 3.

Under­stand­ing the prob­lem

We need the gen­eral solu­tion first, then the par­tic­u­lar one that passes through x=0x = 0, y=3y = 3.

The idea

Sep­a­rate: dyy=2x dx\displaystyle \frac{dy}{y} = 2x\,dx, inte­grate, then use the con­di­tion to find the con­stant.

Step-by-step solu­tion

Step 1. Sep­a­rate and inte­grate.

dyy=2x dx  ⇒  log⁡∣y∣=x2+c\displaystyle \frac{dy}{y} = 2x\,dx \;\Rightarrow\; \log|y| = x^2 + c

Step 2. Remove the log­a­rithm.

y=Aex2(A=±ec)y = Ae^{x^2} \quad (A = \pm e^c)

Step 3. Use y(0)=3y(0) = 3.

3=Ae0=A3 = Ae^{0} = A

Step 4. Write the par­tic­u­lar solu­tion.

y=3ex2y = 3e^{x^2}

Check­ing the answer

y′=3ex2⋅2x=2x yy' = 3e^{x^2}\cdot 2x = 2x\,y, and y(0)=3y(0) = 3.

Answer

y=3ex2y = 3e^{x^2}

Ques­tion 8: A par­tic­u­lar solu­tion of dydx=yx\displaystyle \frac{dy}{dx} = \frac{y}{x}

The prob­lem

Solve dydx=yx\displaystyle \frac{dy}{dx} = \frac{y}{x} with y(1)=4y(1) = 4.

Under­stand­ing the prob­lem

Sep­a­rate, inte­grate, then use x=1x = 1, y=4y = 4.

The idea

dyy=dxx\displaystyle \frac{dy}{y} = \frac{dx}{x}, which inte­grates to log­a­rithms.

Step-by-step solu­tion

Step 1. Sep­a­rate and inte­grate.

dyy=dxx  ⇒  log⁡∣y∣=log⁡∣x∣+log⁡∣C∣\displaystyle \frac{dy}{y} = \frac{dx}{x} \;\Rightarrow\; \log|y| = \log|x| + \log|C|

Step 2. Remove the log­a­rithms.

y=Cxy = Cx

Step 3. Use y(1)=4y(1) = 4: 4=C×14 = C \times 1, so C=4C = 4.

y=4xy = 4x

Check­ing the answer

y′=4y' = 4 and yx=4xx=4\displaystyle \frac{y}{x} = \frac{4x}{x} = 4. Also y(1)=4y(1) = 4.

Answer

y=4xy = 4x

Ques­tion 9: Radioac­tive decay

The prob­lem

A radioac­tive sub­stance decays at a rate pro­por­tional to the amount present; half dis­ap­pears in 5050 years. How long until 18\displaystyle \tfrac{1}{8} remains?

Under­stand­ing the prob­lem

Let NN be the amount at time tt years, with N0N_0 at t=0t = 0. "Decays at a rate pro­por­tional to the amount" means dNdt=−kN\displaystyle \frac{dN}{dt} = -kN with k>0k > 0 (neg­a­tive because it decreases). "Half dis­ap­pears in 5050 years" means N=12N0\displaystyle N = \tfrac{1}{2}N_0 when t=50t = 50.

The idea

Solve the sep­a­ra­ble equa­tion to get N=N0e−ktN = N_0e^{-kt}, find kk from the half-life, then find tt when N=18N0\displaystyle N = \tfrac{1}{8}N_0.

Step-by-step solu­tion

Step 1. Sep­a­rate and inte­grate.

dNN=−k dt  ⇒  log⁡N=−kt+c  ⇒  N=N0e−kt\displaystyle \frac{dN}{N} = -k\,dt \;\Rightarrow\; \log N = -kt + c \;\Rightarrow\; N = N_0e^{-kt}

Step 2. Use the half-life.

12N0=N0e−50k  ⇒  e−50k=12  ⇒  k=log⁡250\displaystyle \frac{1}{2}N_0 = N_0e^{-50k} \;\Rightarrow\; e^{-50k} = \frac{1}{2} \;\Rightarrow\; k = \frac{\log 2}{50}

Step 3. Set N=18N0\displaystyle N = \tfrac{1}{8}N_0.

e−kt=18  ⇒  kt=log⁡8=3log⁡2\displaystyle e^{-kt} = \frac{1}{8} \;\Rightarrow\; kt = \log 8 = 3\log 2

Step 4. Sub­sti­tute kk.

t=3log⁡2log⁡2/50=3×50=150\displaystyle t = \frac{3\log 2}{\log 2 / 50} = 3 \times 50 = 150

Check­ing the answer

Think in half-lives: after 5050 years 12\displaystyle \tfrac{1}{2} is left, after 100100 years 14\displaystyle \tfrac{1}{4}, after 150150 years 18\displaystyle \tfrac{1}{8}.

Answer

150150 years.

Ques­tion 10: A curve from its slope

The prob­lem

The slope of a curve at (x,y)(x, y) is 2yx\displaystyle \frac{2y}{x}, and the curve passes through (1,3)(1, 3). Find it.

Under­stand­ing the prob­lem

"Slope at (x,y)(x, y)" is dydx\displaystyle \frac{dy}{dx}. So we must solve dydx=2yx\displaystyle \frac{dy}{dx} = \frac{2y}{x} with y=3y = 3 when x=1x = 1.

The idea

Sep­a­rate the vari­ables, inte­grate, then use the point to fix the con­stant.

Step-by-step solu­tion

Step 1. Sep­a­rate.

dyy=2 dxx\displaystyle \frac{dy}{y} = \frac{2\,dx}{x}

Step 2. Inte­grate.

log⁡∣y∣=2log⁡∣x∣+log⁡∣C∣=log⁡∣Cx2∣\log|y| = 2\log|x| + \log|C| = \log|Cx^2|

Step 3. Remove the log­a­rithms.

y=Cx2y = Cx^2

Step 4. Use the point (1,3)(1, 3): 3=C×123 = C \times 1^2, so C=3C = 3.

y=3x2y = 3x^2

Check­ing the answer

dydx=6x\displaystyle \frac{dy}{dx} = 6x and 2yx=6x2x=6x\displaystyle \frac{2y}{x} = \frac{6x^2}{x} = 6x. Equal. And at x=1x = 1, y=3y = 3.

Answer

The curve is y=3x2y = 3x^2.