How to use these solutions#
These are the worked solutions to the Practice questions in the lesson Differential Equations and Separable Variables . Try each question first, then read the steps and compare. Throughout, y ′ y' y ′ means d y d x \displaystyle \frac{dy}{dx} d x d y and y ′ ′ y'' y ′′ means d 2 y d x 2 \displaystyle \frac{d^2y}{dx^2} d x 2 d 2 y ; log \log log means the natural logarithm.
Question 1: Order and degree#
The problem#
State the order and degree of:
(a) y ′ ′ ′ + 2 y ′ ′ − y ′ = 0 y''' + 2y'' - y' = 0 y ′′′ + 2 y ′′ − y ′ = 0
(b) ( y ′ ) 2 + 3 y = cos x (y')^2 + 3y = \cos x ( y ′ ) 2 + 3 y = cos x
(c) ( 1 + ( y ′ ) 2 ) 3 / 2 = y ′ ′ \left(1 + (y')^2\right)^{3/2} = y'' ( 1 + ( y ′ ) 2 ) 3/2 = y ′′ (square both sides first)
Understanding the problem#
The order is the order of the highest derivative present. The degree is the power of that highest derivative, but only once the equation is a polynomial in the derivatives (no fractional powers, no derivative inside sin \sin sin , etc.).
The idea#
Find the highest derivative, make sure the equation is polynomial in the derivatives, then read its power.
Step-by-step solution#
Part (a)
Step 1. The highest derivative is y ′ ′ ′ y''' y ′′′ , so the order is 3 3 3 .
Step 2. y ′ ′ ′ y''' y ′′′ appears to the power 1 1 1 , and everything is already polynomial. Degree 1 1 1 .
Part (b)
Step 1. The only derivative is y ′ y' y ′ , so the order is 1 1 1 .
Step 2. It appears as ( y ′ ) 2 (y')^2 ( y ′ ) 2 , so the degree is 2 2 2 . (The cos x \cos x cos x involves only x x x , not a derivative, so it does not matter.)
Part (c)
Step 1. The power 3 2 \displaystyle \tfrac{3}{2} 2 3 is not a whole number, so the equation is not yet a polynomial in the derivatives. Square both sides.
( 1 + ( y ′ ) 2 ) 3 = ( y ′ ′ ) 2 \left(1 + (y')^2\right)^3 = (y'')^2 ( 1 + ( y ′ ) 2 ) 3 = ( y ′′ ) 2
Step 2. The highest derivative is y ′ ′ y'' y ′′ : order 2 2 2 .
Step 3. y ′ ′ y'' y ′′ appears squared: degree 2 2 2 .
Checking the answer#
In (c) the left side, when expanded, contains ( y ′ ) 6 (y')^6 ( y ′ ) 6 , but y ′ y' y ′ is not the highest derivative, so its power does not decide the degree.
Answer#
(a) order 3 3 3 , degree 1 1 1 (b) order 1 1 1 , degree 2 2 2 (c) order 2 2 2 , degree 2 2 2
Common mistake to avoid#
In (c), reading the degree as 1 1 1 from the original form. Always clear fractional powers first.
Question 2: Verifying a solution#
The problem#
Verify that y = e − x + 2 x − 2 y = e^{-x} + 2x - 2 y = e − x + 2 x − 2 satisfies y ′ + y = 2 x y' + y = 2x y ′ + y = 2 x .
Understanding the problem#
"Verify" means: differentiate the given y y y , substitute y y y and y ′ y' y ′ into the left side, and show you get the right side.
The idea#
Direct substitution.
Step-by-step solution#
Step 1. Differentiate.
y ′ = − e − x + 2 y' = -e^{-x} + 2 y ′ = − e − x + 2
Step 2. Add y y y .
y ′ + y = ( − e − x + 2 ) + ( e − x + 2 x − 2 ) = 2 x \begin{aligned}
y' + y &= (-e^{-x} + 2) + (e^{-x} + 2x - 2)\\
&= 2x
\end{aligned} y ′ + y = ( − e − x + 2 ) + ( e − x + 2 x − 2 ) = 2 x
The e − x e^{-x} e − x terms cancel and 2 − 2 = 0 2 - 2 = 0 2 − 2 = 0 .
Checking the answer#
At x = 0 x = 0 x = 0 : y = 1 + 0 − 2 = − 1 y = 1 + 0 - 2 = -1 y = 1 + 0 − 2 = − 1 , y ′ = − 1 + 2 = 1 y' = -1 + 2 = 1 y ′ = − 1 + 2 = 1 ; y ′ + y = 0 = 2 × 0 y' + y = 0 = 2 \times 0 y ′ + y = 0 = 2 × 0 .
Answer#
y ′ + y = 2 x y' + y = 2x y ′ + y = 2 x , so the function is a solution.
Question 3: Verifying a solution with a square root#
The problem#
Verify that y = 1 + x 2 y = \sqrt{1 + x^2} y = 1 + x 2 satisfies y y ′ = x yy' = x y y ′ = x .
Understanding the problem#
Find y ′ y' y ′ by the chain rule, then multiply by y y y .
The idea#
d d x u = 1 2 u ⋅ d u d x \displaystyle \frac{d}{dx}\sqrt{u} = \frac{1}{2\sqrt{u}}\cdot\frac{du}{dx} d x d u = 2 u 1 ⋅ d x d u .
Step-by-step solution#
Step 1. Differentiate with u = 1 + x 2 u = 1 + x^2 u = 1 + x 2 .
y ′ = 1 2 1 + x 2 ⋅ 2 x = x 1 + x 2 \displaystyle y' = \frac{1}{2\sqrt{1 + x^2}}\cdot 2x = \frac{x}{\sqrt{1 + x^2}} y ′ = 2 1 + x 2 1 ⋅ 2 x = 1 + x 2 x
Step 2. Multiply by y y y .
y y ′ = 1 + x 2 ⋅ x 1 + x 2 = x \displaystyle yy' = \sqrt{1 + x^2}\cdot\frac{x}{\sqrt{1 + x^2}} = x y y ′ = 1 + x 2 ⋅ 1 + x 2 x = x
Checking the answer#
At x = 0 x = 0 x = 0 : y = 1 y = 1 y = 1 , y ′ = 0 y' = 0 y ′ = 0 , and y y ′ = 0 = x yy' = 0 = x y y ′ = 0 = x .
Answer#
y y ′ = x yy' = x y y ′ = x , so the function is a solution.
The problem#
Form the differential equation of y = a e 2 x + b e − x y = ae^{2x} + be^{-x} y = a e 2 x + b e − x .
Understanding the problem#
a a a and b b b are arbitrary constants. We need an equation in x x x , y y y and derivatives only, with no a a a or b b b .
The idea#
Two constants means differentiate twice, giving three equations; then eliminate a a a and b b b .
Step-by-step solution#
Step 1. Write y y y and its first two derivatives.
y = a e 2 x + b e − x ( 1 ) y ′ = 2 a e 2 x − b e − x ( 2 ) y ′ ′ = 4 a e 2 x + b e − 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} y y ′ y ′′ = a e 2 x + b e − x = 2 a e 2 x − b e − x = 4 a e 2 x + b e − x ( 1 ) ( 2 ) ( 3 )
Step 2. Look for numbers p p p , q q q with y ′ ′ + p y ′ + q y = 0 y'' + py' + qy = 0 y ′′ + p y ′ + q y = 0 . Collecting the a e 2 x ae^{2x} a e 2 x terms: 4 + 2 p + q = 0 4 + 2p + q = 0 4 + 2 p + q = 0 . Collecting the b e − x be^{-x} b e − x terms: 1 − p + q = 0 1 - p + q = 0 1 − p + q = 0 .
Step 3. Solve. Subtract the second from the first: 3 + 3 p = 0 3 + 3p = 0 3 + 3 p = 0 , so p = − 1 p = -1 p = − 1 . Then q = p − 1 = − 2 q = p - 1 = -2 q = p − 1 = − 2 .
Step 4. Write the equation.
y ′ ′ − y ′ − 2 y = 0 y'' - y' - 2y = 0 y ′′ − y ′ − 2 y = 0
Checking the answer#
Substitute (1), (2), (3): ( 4 a − 2 a − 2 a ) e 2 x + ( b + b − 2 b ) e − x = 0 (4a - 2a - 2a)e^{2x} + (b + b - 2b)e^{-x} = 0 ( 4 a − 2 a − 2 a ) e 2 x + ( b + b − 2 b ) e − x = 0 . Correct.
Answer#
y ′ ′ − y ′ − 2 y = 0 y'' - y' - 2y = 0 y ′′ − y ′ − 2 y = 0
Question 5: Circles touching the y y y -axis at the origin#
The problem#
Form the differential equation of all circles touching the y y y -axis at the origin, x 2 + y 2 = 2 a x x^2 + y^2 = 2ax x 2 + y 2 = 2 a x .
Understanding the problem#
Each circle has centre ( a , 0 ) (a, 0) ( a , 0 ) and radius ∣ a ∣ |a| ∣ a ∣ , so it touches the y y y -axis at ( 0 , 0 ) (0, 0) ( 0 , 0 ) . There is one constant, a a a .
The idea#
Differentiate once, express a a a in terms of x x x , y y y , y ′ y' y ′ , and substitute back into the original equation.
Step-by-step solution#
Step 1. Differentiate x 2 + y 2 = 2 a x x^2 + y^2 = 2ax x 2 + y 2 = 2 a x with respect to x x x (remember y y y is a function of x x x ).
2 x + 2 y y ′ = 2 a ⇒ a = x + y y ′ 2x + 2yy' = 2a \;\Rightarrow\; a = x + yy' 2 x + 2 y y ′ = 2 a ⇒ a = x + y y ′
Step 2. Substitute a a a into the original equation.
x 2 + y 2 = 2 x ( x + y y ′ ) = 2 x 2 + 2 x y y ′ x^2 + y^2 = 2x(x + yy') = 2x^2 + 2xyy' x 2 + y 2 = 2 x ( x + y y ′ ) = 2 x 2 + 2 x y y ′
Step 3. Rearrange.
2 x y y ′ = y 2 − x 2 2xyy' = y^2 - x^2 2 x y y ′ = y 2 − x 2
Checking the answer#
Take the circle a = 1 a = 1 a = 1 : ( x − 1 ) 2 + y 2 = 1 (x - 1)^2 + y^2 = 1 ( x − 1 ) 2 + y 2 = 1 . At the point ( 1 , 1 ) (1, 1) ( 1 , 1 ) the tangent is horizontal, so y ′ = 0 y' = 0 y ′ = 0 ; the equation gives 2 ⋅ 1 ⋅ 1 ⋅ 0 = 1 − 1 = 0 2 \cdot 1 \cdot 1 \cdot 0 = 1 - 1 = 0 2 ⋅ 1 ⋅ 1 ⋅ 0 = 1 − 1 = 0 . Correct.
Answer#
2 x y y ′ = y 2 − x 2 2xyy' = y^2 - x^2 2 x y y ′ = y 2 − x 2
Question 6: Separating the variables#
The problem#
Solve:
(a) d y d x = 1 + y 1 + x \displaystyle \frac{dy}{dx} = \frac{1 + y}{1 + x} d x d y = 1 + x 1 + y
(b) e x tan y d x + ( 1 − e x ) sec 2 y d y = 0 e^x\tan y\,dx + (1 - e^x)\sec^2 y\,dy = 0 e x tan y d x + ( 1 − e x ) sec 2 y d y = 0
Understanding the problem#
In each equation we can move all the y y y terms to one side with d y dy d y and all the x x x terms to the other side with d x dx d x . That is what "variables separable" means.
The idea#
Separate, integrate both sides, and add one constant.
Step-by-step solution#
Part (a)
Step 1. Separate.
d y 1 + y = d x 1 + x \displaystyle \frac{dy}{1 + y} = \frac{dx}{1 + x} 1 + y d y = 1 + x d x
Step 2. Integrate both sides.
log ∣ 1 + y ∣ = log ∣ 1 + x ∣ + log ∣ C ∣ \log|1 + y| = \log|1 + x| + \log|C| log ∣1 + y ∣ = log ∣1 + x ∣ + log ∣ C ∣
(Writing the constant as log ∣ C ∣ \log|C| log ∣ C ∣ makes the next step neat.)
Step 3. Combine the logarithms 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) log ∣1 + y ∣ = log ∣ C ( 1 + x ) ∣ ⇒ 1 + y = C ( 1 + x )
Part (b)
Step 1. Move the d y dy d y term to the other side.
e x tan y d x = − ( 1 − e x ) sec 2 y d y = ( e x − 1 ) sec 2 y d y e^x\tan y\,dx = -(1 - e^x)\sec^2 y\,dy = (e^x - 1)\sec^2 y\,dy e x tan y d x = − ( 1 − e x ) sec 2 y d y = ( e x − 1 ) sec 2 y d y
Step 2. Divide by tan y ( e x − 1 ) \tan y\,(e^x - 1) tan y ( e x − 1 ) to separate.
sec 2 y tan y d y = e x e x − 1 d x \displaystyle \frac{\sec^2 y}{\tan y}\,dy = \frac{e^x}{e^x - 1}\,dx tan y sec 2 y d y = e x − 1 e x d x
Step 3. Integrate. On each side the numerator is the derivative of the denominator, so each integral is a logarithm.
log ∣ tan y ∣ = log ∣ e x − 1 ∣ + log ∣ C ∣ \log|\tan y| = \log|e^x - 1| + \log|C| log ∣ tan y ∣ = log ∣ e x − 1∣ + log ∣ C ∣
Step 4. Remove the logarithms.
tan y = C ( e x − 1 ) \tan y = C(e^x - 1) tan y = C ( e x − 1 )
Since C C C is any constant, you can equally write this as tan y = C ( 1 − e x ) \tan y = C(1 - e^x) tan y = C ( 1 − e x ) (replace C C C by − C -C − C ).
Checking the answer#
(a) Differentiate y = C ( 1 + x ) − 1 y = C(1 + x) - 1 y = C ( 1 + x ) − 1 : y ′ = C = 1 + y 1 + x \displaystyle y' = C = \frac{1 + y}{1 + x} y ′ = C = 1 + x 1 + y . Correct.
Answer#
(a) 1 + y = C ( 1 + x ) 1 + y = C(1 + x) 1 + y = C ( 1 + x ) (b) tan y = C ( 1 − e x ) \tan y = C(1 - e^x) tan y = C ( 1 − e x )
Question 7: A particular solution of d y d x = 2 x y \displaystyle \frac{dy}{dx} = 2xy d x d y = 2 x y #
The problem#
Solve d y d x = 2 x y \displaystyle \frac{dy}{dx} = 2xy d x d y = 2 x y with y ( 0 ) = 3 y(0) = 3 y ( 0 ) = 3 .
Understanding the problem#
We need the general solution first, then the particular one that passes through x = 0 x = 0 x = 0 , y = 3 y = 3 y = 3 .
The idea#
Separate: d y y = 2 x d x \displaystyle \frac{dy}{y} = 2x\,dx y d y = 2 x d x , integrate, then use the condition to find the constant.
Step-by-step solution#
Step 1. Separate and integrate.
d y y = 2 x d x ⇒ log ∣ y ∣ = x 2 + c \displaystyle \frac{dy}{y} = 2x\,dx \;\Rightarrow\; \log|y| = x^2 + c y d y = 2 x d x ⇒ log ∣ y ∣ = x 2 + c
Step 2. Remove the logarithm.
y = A e x 2 ( A = ± e c ) y = Ae^{x^2} \quad (A = \pm e^c) y = A e x 2 ( A = ± e c )
Step 3. Use y ( 0 ) = 3 y(0) = 3 y ( 0 ) = 3 .
3 = A e 0 = A 3 = Ae^{0} = A 3 = A e 0 = A
Step 4. Write the particular solution.
y = 3 e x 2 y = 3e^{x^2} y = 3 e x 2
Checking the answer#
y ′ = 3 e x 2 ⋅ 2 x = 2 x y y' = 3e^{x^2}\cdot 2x = 2x\,y y ′ = 3 e x 2 ⋅ 2 x = 2 x y , and y ( 0 ) = 3 y(0) = 3 y ( 0 ) = 3 .
Answer#
y = 3 e x 2 y = 3e^{x^2} y = 3 e x 2
Question 8: A particular solution of d y d x = y x \displaystyle \frac{dy}{dx} = \frac{y}{x} d x d y = x y #
The problem#
Solve d y d x = y x \displaystyle \frac{dy}{dx} = \frac{y}{x} d x d y = x y with y ( 1 ) = 4 y(1) = 4 y ( 1 ) = 4 .
Understanding the problem#
Separate, integrate, then use x = 1 x = 1 x = 1 , y = 4 y = 4 y = 4 .
The idea#
d y y = d x x \displaystyle \frac{dy}{y} = \frac{dx}{x} y d y = x d x , which integrates to logarithms.
Step-by-step solution#
Step 1. Separate and integrate.
d y y = d x x ⇒ log ∣ y ∣ = log ∣ x ∣ + log ∣ C ∣ \displaystyle \frac{dy}{y} = \frac{dx}{x} \;\Rightarrow\; \log|y| = \log|x| + \log|C| y d y = x d x ⇒ log ∣ y ∣ = log ∣ x ∣ + log ∣ C ∣
Step 2. Remove the logarithms.
y = C x y = Cx y = C x
Step 3. Use y ( 1 ) = 4 y(1) = 4 y ( 1 ) = 4 : 4 = C × 1 4 = C \times 1 4 = C × 1 , so C = 4 C = 4 C = 4 .
y = 4 x y = 4x y = 4 x
Checking the answer#
y ′ = 4 y' = 4 y ′ = 4 and y x = 4 x x = 4 \displaystyle \frac{y}{x} = \frac{4x}{x} = 4 x y = x 4 x = 4 . Also y ( 1 ) = 4 y(1) = 4 y ( 1 ) = 4 .
Answer#
y = 4 x y = 4x y = 4 x
Question 9: Radioactive decay#
The problem#
A radioactive substance decays at a rate proportional to the amount present; half disappears in 50 50 50 years. How long until 1 8 \displaystyle \tfrac{1}{8} 8 1 remains?
Understanding the problem#
Let N N N be the amount at time t t t years, with N 0 N_0 N 0 at t = 0 t = 0 t = 0 . "Decays at a rate proportional to the amount" means d N d t = − k N \displaystyle \frac{dN}{dt} = -kN d t d N = − k N with k > 0 k > 0 k > 0 (negative because it decreases). "Half disappears in 50 50 50 years" means N = 1 2 N 0 \displaystyle N = \tfrac{1}{2}N_0 N = 2 1 N 0 when t = 50 t = 50 t = 50 .
The idea#
Solve the separable equation to get N = N 0 e − k t N = N_0e^{-kt} N = N 0 e − k t , find k k k from the half-life, then find t t t when N = 1 8 N 0 \displaystyle N = \tfrac{1}{8}N_0 N = 8 1 N 0 .
Step-by-step solution#
Step 1. Separate and integrate.
d N N = − k d t ⇒ log N = − k t + c ⇒ N = N 0 e − k t \displaystyle \frac{dN}{N} = -k\,dt \;\Rightarrow\; \log N = -kt + c \;\Rightarrow\; N = N_0e^{-kt} N d N = − k d t ⇒ log N = − k t + c ⇒ N = N 0 e − k t
Step 2. Use the half-life.
1 2 N 0 = N 0 e − 50 k ⇒ e − 50 k = 1 2 ⇒ k = log 2 50 \displaystyle \frac{1}{2}N_0 = N_0e^{-50k} \;\Rightarrow\; e^{-50k} = \frac{1}{2} \;\Rightarrow\; k = \frac{\log 2}{50} 2 1 N 0 = N 0 e − 50 k ⇒ e − 50 k = 2 1 ⇒ k = 50 log 2
Step 3. Set N = 1 8 N 0 \displaystyle N = \tfrac{1}{8}N_0 N = 8 1 N 0 .
e − k t = 1 8 ⇒ k t = log 8 = 3 log 2 \displaystyle e^{-kt} = \frac{1}{8} \;\Rightarrow\; kt = \log 8 = 3\log 2 e − k t = 8 1 ⇒ k t = log 8 = 3 log 2
Step 4. Substitute k k k .
t = 3 log 2 log 2 / 50 = 3 × 50 = 150 \displaystyle t = \frac{3\log 2}{\log 2 / 50} = 3 \times 50 = 150 t = log 2/50 3 log 2 = 3 × 50 = 150
Checking the answer#
Think in half-lives: after 50 50 50 years 1 2 \displaystyle \tfrac{1}{2} 2 1 is left, after 100 100 100 years 1 4 \displaystyle \tfrac{1}{4} 4 1 , after 150 150 150 years 1 8 \displaystyle \tfrac{1}{8} 8 1 .
Answer#
150 150 150 years.
Question 10: A curve from its slope#
The problem#
The slope of a curve at ( x , y ) (x, y) ( x , y ) is 2 y x \displaystyle \frac{2y}{x} x 2 y , and the curve passes through ( 1 , 3 ) (1, 3) ( 1 , 3 ) . Find it.
Understanding the problem#
"Slope at ( x , y ) (x, y) ( x , y ) " is d y d x \displaystyle \frac{dy}{dx} d x d y . So we must solve d y d x = 2 y x \displaystyle \frac{dy}{dx} = \frac{2y}{x} d x d y = x 2 y with y = 3 y = 3 y = 3 when x = 1 x = 1 x = 1 .
The idea#
Separate the variables, integrate, then use the point to fix the constant.
Step-by-step solution#
Step 1. Separate.
d y y = 2 d x x \displaystyle \frac{dy}{y} = \frac{2\,dx}{x} y d y = x 2 d x
Step 2. Integrate.
log ∣ y ∣ = 2 log ∣ x ∣ + log ∣ C ∣ = log ∣ C x 2 ∣ \log|y| = 2\log|x| + \log|C| = \log|Cx^2| log ∣ y ∣ = 2 log ∣ x ∣ + log ∣ C ∣ = log ∣ C x 2 ∣
Step 3. Remove the logarithms.
y = C x 2 y = Cx^2 y = C x 2
Step 4. Use the point ( 1 , 3 ) (1, 3) ( 1 , 3 ) : 3 = C × 1 2 3 = C \times 1^2 3 = C × 1 2 , so C = 3 C = 3 C = 3 .
y = 3 x 2 y = 3x^2 y = 3 x 2
Checking the answer#
d y d x = 6 x \displaystyle \frac{dy}{dx} = 6x d x d y = 6 x and 2 y x = 6 x 2 x = 6 x \displaystyle \frac{2y}{x} = \frac{6x^2}{x} = 6x x 2 y = x 6 x 2 = 6 x . Equal. And at x = 1 x = 1 x = 1 , y = 3 y = 3 y = 3 .
Answer#
The curve is y = 3 x 2 y = 3x^2 y = 3 x 2 .