Practice: First-Order Differential Equations

Recognition · Error diagnosis

Asked to solve d y d x = 2 x y , a learner answers " y = 3 " and objects that y = 3 e x 2 is not a real answer because it still contains x .

What is wrong?

2 hints available, least help first.

Hint 1: Retrieval cue

What kind of object is the unknown in a differential equation?

Hint 2: Concept cue

Differentiate 3 e x 2 and compare the result with 2 x y .

Classification · Method selection

Classify d y d x = x + y .

2 hints available, least help first.

Hint 1: Retrieval cue

Can x + y be written as a function of x multiplied by a function of y ?

Hint 2: Concept cue

Rearrange to y ′ − y = x and compare with the standard linear form y ′ + P ( x ) y = Q ( x ) .

Direct application

Solve d y d x = y x with y ( 1 ) = 4 .

The solution has the form y = A x . What is A ?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

The right side factors as ( 1 / x ) ( y ) , so the variables separate.

Hint 2: Concept cue

Integrating both sides gives y = A x . Substitute the initial condition.

Direct application

For the equation 2 d y d x + 4 y = 8 , what is the integrating factor μ ?

2 hints available, least help first.

Hint 1: Retrieval cue

Put the equation in standard form first, what must the coefficient of y ′ be?

Hint 2: Concept cue

After dividing by 2 the equation reads y ′ + 2 y = 4 . Now μ = e ∫ P d x .

Direct application

The general solution of y ′ + 2 y = 6 is y = 3 + C e − 2 x .

Given y ( 0 ) = 1 , what is C ?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Substitute x = 0 into the general solution and set the result equal to the given value.

Hint 2: Concept cue

e 0 = 1 , so the equation is 3 + C = 1 .

Construction · Direct application · Explanation

(a) Verify that y = e x − x − 1 solves d y d x = x + y with y ( 0 ) = 0 .

(b) Classify d y d x = 2 x y , then solve it with y ( 0 ) = 3 by the method you chose.

(c) Solve y ′ − y = e 2 x with y ( 0 ) = 0 using an integrating factor.

(d) Find every solution of y ′ = y ( 1 − y ) , including any the separation method does not produce. Say which step loses them.

(e) Explain why a differential equation has a family of solutions rather than one, and why y ′ = y 2 with y ( 0 ) = 1 has a solution that ceases to exist at x = 1 even though y 2 is defined everywhere.

Write your answer, then compare it with the worked solution.

3 hints available, least help first.

Hint 1: Retrieval cue

Classify each equation before solving. The right side's shape decides the method.

Hint 2: Concept cue

In (d), find the roots of the divisor before dividing by it.

Hint 3: Strategy cue

In (e), count the integrations: each one introduces a constant.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) Verifying y = e x − x − 1 . Differentiate: y ′ = e x − 1 . Compute the right-hand side: x + y = x + ( e x − x − 1 ) = e x − 1 . The two agree identically, so the equation holds for every x ✓. The initial condition: y ( 0 ) = e 0 − 0 − 1 = 1 − 1 = 0 ✓. Numerical confirmation. At x = 0 , 1 , 2 the derivative is 0 , 1.718282 , 6.389056 and x + y is 0 , 1.718282 , 6.389056 ✓. Verification is a differentiation, always available and independent of how the solution was found. (b) d y d x = 2 x y with y ( 0 ) = 3 . Classify. The right side factors as ( 2 x ) ( y ) , so it is separable. Rearranged as y ′ − 2 x y = 0 it is also linear, so either method works; separation is shorter. Note the constant solution. g ( y ) = y vanishes at y = 0 , so y = 0 is a solution the division will discard. Separate and integrate.

d y y = 2 x d x ⟹ ln ⁡ | y | = x 2 + C ⟹ y = A e x 2 ,

with A = ± e C . The constant entered at the integration and was absorbed during exponentiation; writing y = e x 2 + C instead would not solve the equation. Apply the condition. y ( 0 ) = A e 0 = A = 3 , so

y = 3 e x 2 .

Verify. y ′ = 6 x e x 2 and 2 x y = 2 x ⋅ 3 e x 2 = 6 x e x 2 ✓. Numerically y ′ / y at x = 0 , 0.5 , 1 gives 0 , 1.000000 , 2.000000 , exactly 2 x . Here A = 0 recovers the discarded y = 0 , so nothing was permanently lost. (c) y ′ − y = e 2 x with y ( 0 ) = 0 . Standard form already holds, with P = − 1 and Q = e 2 x . Integrating factor. μ = e ∫ ( − 1 ) d x = e − x . Multiplying through:

e − x y ′ − e − x y = e − x e 2 x = e x ,

and the left side is exactly ( e − x y ) ′ , which the product rule confirms as e − x y ′ − e − x y . Integrate. e − x y = e x + C , so y = e 2 x + C e x . Apply the condition. y ( 0 ) = 1 + C = 0 gives C = − 1 :

y = e 2 x − e x .

Verify. y ′ = 2 e 2 x − e x , so y ′ − y = 2 e 2 x − e x − e 2 x + e x = e 2 x ✓. Numerically at x = 0 , 0.5 , 1 , y ′ − y gives 1.000000 , 2.718282 , 7.389056 , matching e 2 x ✓. (d) Every solution of y ′ = y ( 1 − y ) . Constant solutions first. Before dividing, find the roots of g ( y ) = y ( 1 − y ) : they are y = 0 and y = 1 . Each gives a constant function with y ′ = 0 , and g vanishes there too, so both are solutions ✓. Separate. Dividing by y ( 1 − y ) , legitimate only where it is nonzero, and using partial fractions 1 y ( 1 − y ) = 1 y + 1 1 − y :

∫ ( 1 y + 1 1 − y ) d y = ∫ d x ⟹ ln ⁡ | y 1 − y | = x + C ,

which rearranges to

y = 1 1 + A e − x .

Verify. At A = 1 and x = 0 , 2 , 5 the derivative matches y ( 1 − y ) to eight decimals; likewise at A = 4 ✓. Which step loses them. The division by y ( 1 − y ) . It assumed the divisor was nonzero, which is exactly false at y = 0 and y = 1 . The general form recovers one of them: A = 0 gives y = 1 . But no finite A gives y = 0 , since 1 1 + A e − x is never identically zero. So y = 0 must be restored by inspection: it is a genuine solution that the method cannot produce. The complete solution set is y = 1 1 + A e − x for arbitrary A , together with y = 0 . (e) Why a family, and why solutions can end. Why a family. The equation specifies the rate y ′ at each point, which determines the shape of the solution curve but not its height. Translating a solution vertically changes where it sits without changing its slope pattern, so if one curve fits, a whole family does. Formally, solving involves an integration, and every integration introduces an arbitrary constant. A first-order equation involves one integration, hence one constant, hence a one-parameter family. An initial condition supplies the missing information by naming one point the curve must pass through, which fixes the constant and selects one member. That is why the count matches: one constant, one condition. Why y ′ = y 2 escapes. Separating gives ∫ y − 2 d y = ∫ d x , so − 1 y = x + C and y = 1 C − x . With y ( 0 ) = 1 , C = 1 :

y = 1 1 − x .

Verify: at x = 0 , 0.5 , 0.9 , 0.99 the derivative equals y 2 exactly ✓, with values 1 , 2 , 10 , 100 . As x → 1 − the denominator vanishes and y → ∞ . The solution exists only on ( − ∞ , 1 ) and ceases to exist in finite x . Why this is not a defect in the equation. The right-hand side y 2 is continuous and differentiable everywhere, so the existence theorem applies at every point, but it guarantees a solution only on some interval around the starting point, not on all of R . The blow-up is a property of the solution, produced by the feedback in the equation: the larger y becomes, the faster it grows, and that acceleration is enough to reach infinity in finite time. Contrast the linear case y ′ + 2 y = 6 , whose solution y = 3 − 2 e − 2 x exists for every real x . Linearity rules out this kind of runaway, which is why the linear existence theorem can promise a solution on the whole interval where P and Q are continuous.

A complete answer does each of these:

  • verifies by substitution
  • classifies equation type
  • separates variables
  • applies integrating factor
  • determines constant
  • explains solution family

Transfer · Interpretation

Brine flows into a well-stirred tank and out again at the same rate. The salt content S ( t ) in kilograms satisfies

d S d t = 12 − 0.4 S .

Whatever the tank starts with, the salt content settles at a steady value. What is it, in kilograms?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

What is true of the derivative when a quantity has stopped changing?

Hint 2: Concept cue

Set the right-hand side to zero and solve for S .

Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.