Solved Exercises on Separable Equations in Differential Equations

Master separable equations: solving first-order differential equations by separation of variables through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic separation
Exercise 1
Solve the separable equation: \(\frac{dy}{dx} = 2xy\) with initial condition y(0) = 3.
Definition:

Separable equation: A first-order differential equation that can be written in the form \(\frac{dy}{dx} = g(x)h(y)\), allowing variables to be separated on opposite sides of the equation.

Separation of variables procedure:
  1. Rewrite the equation as \(\frac{dy}{dx} = g(x)h(y)\)
  2. Separate variables: \(\frac{1}{h(y)}dy = g(x)dx\)
  3. Integrate both sides: \(\int \frac{1}{h(y)}dy = \int g(x)dx\)
  4. Solve for y if possible
  5. Apply initial conditions to find constants
Original Equation
\(\frac{dy}{dx} = 2xy\)
Separated Form
\(\frac{1}{y}dy = 2x dx\)
Integrated
\(\ln|y| = x^2 + C\)
Step 1: Separate the variables

Divide both sides by y (assuming y ≠ 0): \(\frac{1}{y}\frac{dy}{dx} = 2x\)

Then multiply both sides by dx: \(\frac{1}{y}dy = 2x dx\)

\(\int \frac{1}{y}dy = \int 2x dx\)
Step 2: Integrate both sides

Left side: \(\int \frac{1}{y}dy = \ln|y| + C_1\)

Right side: \(\int 2x dx = x^2 + C_2\)

Combining: \(\ln|y| = x^2 + C\) where \(C = C_2 - C_1\)

Step 3: Solve for y

Exponentiate both sides: \(|y| = e^{x^2 + C} = e^C e^{x^2}\)

Let \(A = \pm e^C\), then: \(y = A e^{x^2}\)

Step 4: Apply initial condition y(0) = 3

Substitute x = 0, y = 3: \(3 = A e^{0} = A\)

Therefore: \(A = 3\)

\(y = 3e^{x^2}\)
Final answer:

The solution is \(y = 3e^{x^2}\). Note that y > 0 for all x since the initial condition y(0) = 3 > 0.

Applied rules:

• Variable separation: Rearrange to get all y terms on one side and x terms on the other

• Integration: Apply standard integral formulas to both sides

• Initial conditions: Use given values to determine the constant of integration

2 Trigonometric functions
Exercise 2
Solve: \(\frac{dy}{dx} = \frac{\cos x}{\sin y}\) with initial condition y(π/2) = π/2.
Definition:

Trigonometric separable equation: A separable equation involving trigonometric functions that can be solved using standard trigonometric integrals.

Original Equation
\(\frac{dy}{dx} = \frac{\cos x}{\sin y}\)
Separated Form
\(\sin y \, dy = \cos x \, dx\)
Integrated
\(-\cos y = \sin x + C\)
Step 1: Separate the variables

Multiply both sides by \(\sin y \, dx\): \(\sin y \, dy = \cos x \, dx\)

\(\int \sin y \, dy = \int \cos x \, dx\)
Step 2: Integrate both sides

Left side: \(\int \sin y \, dy = -\cos y + C_1\)

Right side: \(\int \cos x \, dx = \sin x + C_2\)

Combining: \(-\cos y = \sin x + C\) where \(C = C_2 - C_1\)

Step 3: Apply initial condition y(π/2) = π/2

Substitute x = π/2, y = π/2: \(-\cos(π/2) = \sin(π/2) + C\)

This gives: \(-0 = 1 + C\), so \(C = -1\)

Step 4: Write the particular solution

\(-\cos y = \sin x - 1\)

Or equivalently: \(\cos y = 1 - \sin x\)

\(\cos y = 1 - \sin x\)
Final answer:

The implicit solution is \(\cos y = 1 - \sin x\). This cannot be easily solved explicitly for y, but it satisfies the initial condition.

Applied rules:

• Trigonometric integration: Know standard integrals like \(\int \sin y \, dy = -\cos y\)

• Implicit solutions: Sometimes equations cannot be solved explicitly for y

• Domain restrictions: Consider where the original equation is defined (e.g., sin y ≠ 0)

3 Logarithmic solution
Exercise 3
Solve: \(\frac{dy}{dx} = \frac{y}{x}\) with initial condition y(1) = 2. Discuss the domain of the solution.
Definition:

Cauchy-Euler equation: A special type of separable equation of the form \(\frac{dy}{dx} = \frac{y}{x}\) that arises in various applications.

Original Equation
\(\frac{dy}{dx} = \frac{y}{x}\)
Separated Form
\(\frac{1}{y}dy = \frac{1}{x}dx\)
Integrated
\(\ln|y| = \ln|x| + C\)
Step 1: Separate the variables

Divide both sides by y and multiply by dx: \(\frac{1}{y}dy = \frac{1}{x}dx\)

Note: We must have x ≠ 0 and y ≠ 0 for this equation to make sense

\(\int \frac{1}{y}dy = \int \frac{1}{x}dx\)
Step 2: Integrate both sides

Left side: \(\int \frac{1}{y}dy = \ln|y| + C_1\)

Right side: \(\int \frac{1}{x}dx = \ln|x| + C_2\)

Combining: \(\ln|y| = \ln|x| + C\) where \(C = C_2 - C_1\)

Step 3: Solve for y

Exponentiate both sides: \(|y| = e^{\ln|x| + C} = e^C \cdot |x|\)

Let \(A = \pm e^C\), then: \(y = Ax\)

Step 4: Apply initial condition y(1) = 2

Substitute x = 1, y = 2: \(2 = A \cdot 1\)

Therefore: \(A = 2\)

Step 5: Determine the domain

The original equation has a singularity at x = 0

Since the initial condition is at x = 1 > 0, the solution exists for x > 0

The solution is: \(y = 2x\) for \(x > 0\)

\(y = 2x\) for \(x > 0\)
Final answer:

The solution is \(y = 2x\) for \(x > 0\). The domain excludes x = 0 due to the singularity in the original differential equation.

Applied rules:

• Domain consideration: Always check where the original equation is defined

• Singularity analysis: Points where coefficients become infinite restrict the domain

• Continuation principle: Solution continues as far as possible from initial point without encountering singularities

Rules and methods, laws,...
\(\frac{dy}{dx} = g(x)h(y) \Rightarrow \int \frac{1}{h(y)}dy = \int g(x)dx\)
Separation of Variables
Separation
\(\frac{dy}{dx} = g(x)h(y)\)
Original form
Separated
\(\frac{1}{h(y)}dy = g(x)dx\)
After separation
Integrated
\(\int \frac{1}{h(y)}dy = \int g(x)dx\)
After integration
Key definitions:

Separable equation: A first-order differential equation that can be written as \(\frac{dy}{dx} = g(x)h(y)\) where g depends only on x and h depends only on y

Separation of variables: The technique of rearranging the equation so that all x terms are on one side and all y terms on the other

Implicit solution: A solution expressed as F(x,y) = C rather than y = f(x)

Complete methodology:
  1. Identify separability: Verify the equation can be written as \(\frac{dy}{dx} = g(x)h(y)\)
  2. Separate variables: Divide by h(y) and multiply by dx to get \(\frac{1}{h(y)}dy = g(x)dx\)
  3. Integrate both sides: \(\int \frac{1}{h(y)}dy = \int g(x)dx\)
  4. Solve for y: If possible, express y explicitly in terms of x
  5. Apply initial conditions: Use given values to determine constants
  6. Determine domain: Identify where the solution is valid
Tip 1: Always check that you're not dividing by zero when separating variables.
Tip 2: Don't forget absolute value signs when integrating 1/y (though initial conditions may determine the sign).
Tip 3: Some equations have special solutions when h(y) = 0 (equilibrium solutions).
Tip 4: The domain of the solution may be restricted by singularities in the original equation.
Common errors: Dividing by zero, forgetting absolute values, incorrect integration, ignoring domain restrictions.
Applications: Population growth, radioactive decay, mixing problems, Newton's law of cooling.
Formulas to know by heart:

• Separation: \(\frac{dy}{dx} = g(x)h(y) \Rightarrow \frac{1}{h(y)}dy = g(x)dx\)

• Integration: \(\int \frac{1}{h(y)}dy = \int g(x)dx\)

• Standard integrals: \(\int \frac{1}{y}dy = \ln|y| + C\), \(\int \frac{1}{y^2}dy = -\frac{1}{y} + C\)

• Domain restrictions: Consider where the original equation is undefined

Solution: Exercises 4 to 5
4 Radioactive decay model
Exercise 4
The rate of decay of a radioactive substance is proportional to the amount present: \(\frac{dN}{dt} = -kN\) where N is the amount and k > 0. Solve this equation and show that the half-life is \(\frac{\ln 2}{k}\).
Definition:

Radioactive decay: A physical process governed by the differential equation \(\frac{dN}{dt} = -kN\), where k is the decay constant and N is the quantity of radioactive material.

Original Equation
\(\frac{dN}{dt} = -kN\)
Separated Form
\(\frac{1}{N}dN = -k dt\)
Integrated
\(\ln|N| = -kt + C\)
Step 1: Separate the variables

Divide both sides by N (assuming N > 0): \(\frac{1}{N}\frac{dN}{dt} = -k\)

Multiply by dt: \(\frac{1}{N}dN = -k dt\)

\(\int \frac{1}{N}dN = \int -k dt\)
Step 2: Integrate both sides

Left side: \(\int \frac{1}{N}dN = \ln|N| + C_1\)

Right side: \(\int -k dt = -kt + C_2\)

Combining: \(\ln|N| = -kt + C\) where \(C = C_2 - C_1\)

Step 3: Solve for N

Exponentiate both sides: \(|N| = e^{-kt + C} = e^C e^{-kt}\)

Let \(A = e^C\), and since N > 0: \(N = A e^{-kt}\)

Step 4: Apply initial condition N(0) = N₀

At t = 0: \(N_0 = A e^0 = A\)

Therefore: \(N(t) = N_0 e^{-kt}\)

Step 5: Find the half-life

Half-life occurs when \(N(t) = \frac{N_0}{2}\)

\(\frac{N_0}{2} = N_0 e^{-kt_{1/2}}\)

\(\frac{1}{2} = e^{-kt_{1/2}}\)

\(\ln\left(\frac{1}{2}\right) = -kt_{1/2}\)

\(-\ln 2 = -kt_{1/2}\)

\(t_{1/2} = \frac{\ln 2}{k}\)

\(N(t) = N_0 e^{-kt}\), Half-life = \(\frac{\ln 2}{k}\)
Final answer:

The solution is \(N(t) = N_0 e^{-kt}\). The half-life, the time for the quantity to reduce to half its initial value, is \(\frac{\ln 2}{k}\).

Applied rules:

• Physical modeling: Translate real-world problems into differential equations

• Exponential decay: Solutions of the form N(t) = N₀e^{-kt} characterize many natural processes

• Half-life calculation: Set N(t) = N₀/2 and solve for t

5 Logistic growth model
Exercise 5
Solve the logistic equation: \(\frac{dP}{dt} = rP(1 - \frac{P}{K})\) where r and K are positive constants. This models population growth with carrying capacity K.
Definition:

Logistic equation: A nonlinear separable equation modeling population growth with limited resources, where growth rate decreases as population approaches carrying capacity K.

Original Equation
\(\frac{dP}{dt} = rP(1 - \frac{P}{K})\)
Separated Form
\(\frac{1}{P(1 - \frac{P}{K})}dP = r dt\)
Integrated
\(\ln\left|\frac{P}{K-P}\right| = rt + C\)
Step 1: Separate the variables

Divide both sides by \(P(1 - \frac{P}{K})\): \(\frac{1}{P(1 - \frac{P}{K})}\frac{dP}{dt} = r\)

Multiply by dt: \(\frac{1}{P(1 - \frac{P}{K})}dP = r dt\)

Step 2: Simplify the left side using partial fractions

\(\frac{1}{P(1 - \frac{P}{K})} = \frac{1}{P} \cdot \frac{1}{1 - \frac{P}{K}} = \frac{K}{P(K-P)}\)

Using partial fractions: \(\frac{K}{P(K-P)} = \frac{1}{P} + \frac{1}{K-P}\)

\(\int \left(\frac{1}{P} + \frac{1}{K-P}\right)dP = \int r dt\)
Step 3: Integrate both sides

Left side: \(\int \frac{1}{P}dP + \int \frac{1}{K-P}dP = \ln|P| - \ln|K-P| = \ln\left|\frac{P}{K-P}\right|\)

Right side: \(\int r dt = rt + C\)

Therefore: \(\ln\left|\frac{P}{K-P}\right| = rt + C\)

Step 4: Solve for P

Exponentiate both sides: \(\left|\frac{P}{K-P}\right| = e^{rt + C} = Ae^{rt}\) where \(A = e^C > 0\)

Assuming \(0 < P < K\): \(\frac{P}{K-P} = Ae^{rt}\)

Solving for P: \(P = (K-P)Ae^{rt} = KAe^{rt} - PAe^{rt}\)

\(P + PAe^{rt} = KAe^{rt}\)

\(P(1 + Ae^{rt}) = KAe^{rt}\)

\(P = \frac{KAe^{rt}}{1 + Ae^{rt}} = \frac{K}{1 + \frac{1}{A}e^{-rt}}\)

Step 5: Express in standard form

Let \(B = \frac{1}{A}\), then: \(P(t) = \frac{K}{1 + Be^{-rt}}\)

If P(0) = P₀, then: \(P_0 = \frac{K}{1 + B}\), so \(B = \frac{K-P_0}{P_0}\)

Final solution: \(P(t) = \frac{KP_0}{P_0 + (K-P_0)e^{-rt}}\)

\(P(t) = \frac{KP_0}{P_0 + (K-P_0)e^{-rt}}\)
Final answer:

The solution to the logistic equation is \(P(t) = \frac{KP_0}{P_0 + (K-P_0)e^{-rt}}\). As t → ∞, P(t) → K, representing the carrying capacity.

Applied rules:

• Partial fractions: Essential technique for integrating rational functions

• Logistic behavior: Initial exponential growth slowing as population approaches carrying capacity

• Equilibrium solutions: P = 0 (unstable) and P = K (stable) are constant solutions

Key Concepts: Separable Equations, Integration Techniques, Applications
\(\frac{dy}{dx} = g(x)h(y) \Rightarrow \int \frac{1}{h(y)}dy = \int g(x)dx\)
Separation of Variables Formula
Key definitions:

Separable equation: A first-order differential equation of the form \(\frac{dy}{dx} = g(x)h(y)\) where variables can be separated

Separation of variables: The method of rearranging the equation to get all x terms on one side and all y terms on the other

Implicit solution: A solution expressed as F(x,y) = C rather than y = f(x)

Equilibrium solution: Constant solutions found when h(y) = 0 in the separated form

Complete methodology:
  1. Recognize the form: Verify that \(\frac{dy}{dx} = g(x)h(y)\)
  2. Separate variables: Rearrange to \(\frac{1}{h(y)}dy = g(x)dx\)
  3. Integrate both sides: Apply appropriate integration techniques
  4. Solve for y: If possible, express y explicitly in terms of x
  5. Apply initial conditions: Determine the constant of integration
  6. Analyze domain: Identify where the solution is valid
Tip 1: Check for equilibrium solutions by setting h(y) = 0 before separating variables.
Tip 2: Use partial fractions when integrating rational functions of y.
Tip 3: Be careful with absolute values when integrating 1/y, but initial conditions often determine the sign.
Tip 4: Some separable equations lead to implicit solutions that cannot be solved explicitly for y.
Common applications: Population dynamics, chemical reactions, heat transfer, fluid flow, and other physical systems.
Special solutions: Equilibrium solutions occur when the right side equals zero, providing insight into long-term behavior.
Essential formulas and concepts:

• Separation: \(\frac{dy}{dx} = g(x)h(y) \Rightarrow \frac{1}{h(y)}dy = g(x)dx\)

• Integration: \(\int \frac{1}{h(y)}dy = \int g(x)dx\)

• Standard integrals: \(\int \frac{1}{y}dy = \ln|y| + C\), \(\int \frac{1}{a^2-y^2}dy = \frac{1}{2a}\ln\left|\frac{a+y}{a-y}\right| + C\)

• Partial fractions: Useful for integrating rational functions

• Domain restrictions: Consider where original equation is defined and where solution is valid

Questions & Answers

Question: How do I know if a differential equation is separable? What should I look for in the equation?

Answer: To identify if a differential equation is separable, look for the form \(\frac{dy}{dx} = g(x)h(y)\) where:

  • g(x): A function containing only x (and possibly constants)
  • h(y): A function containing only y (and possibly constants)

Examples of separable equations:

  • \(\frac{dy}{dx} = x^2y\) (here g(x) = x², h(y) = y)
  • \(\frac{dy}{dx} = \frac{\sin x}{\cos y}\) (here g(x) = sin x, h(y) = 1/cos y)
  • \(\frac{dy}{dx} = e^x \sqrt{y}\) (here g(x) = eˣ, h(y) = √y)

If you can algebraically rearrange the equation into this form, it's separable. If the x and y terms are mixed together in a way that can't be separated, it's not separable.

Question: What should I do when I encounter an integral that seems too complex to evaluate? Are there alternative approaches?

Answer: When facing complex integrals in separable equations, consider these strategies:

  • Partial fractions: For rational functions, decompose into simpler fractions
  • Trigonometric identities: Use identities to simplify complex trigonometric integrands
  • Substitution: Try u-substitution or other techniques from calculus
  • Implicit solutions: Sometimes it's acceptable to leave the solution in implicit form without evaluating the integral

If the integral truly cannot be evaluated in elementary terms, you might need to resort to numerical methods or special functions. However, most textbook separable equations are designed to have solutions expressible in elementary functions.

Always verify your integration by differentiating the result.

Question: What are some real-world applications of separable equations? How do they arise naturally in science and engineering?

Answer: Separable equations arise frequently in various scientific and engineering contexts:

  • Population growth: \(\frac{dP}{dt} = kP\) (exponential growth) or \(\frac{dP}{dt} = rP(1-\frac{P}{K})\) (logistic growth)
  • Radioactive decay: \(\frac{dN}{dt} = -kN\) (amount decreases exponentially)
  • Newton's law of cooling: \(\frac{dT}{dt} = -k(T-T_a)\) (temperature approaches ambient)
  • Chemical reactions: Rate equations often take separable forms
  • Circuit analysis: RC circuits have separable voltage/current equations

These equations arise naturally when the rate of change of a quantity depends only on the current state of that quantity and time, with no coupling between different variables in complex ways.

The separable form indicates that the system's behavior can be understood by considering the contributions of different variables independently.