Solved Exercises on Separable Differential Equations in Calculus 2

Master separable differential equations: learn the separation technique, integration methods, and apply initial conditions through these 3 detailed exercises.

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

Separable differential equation: A first-order differential equation that can be written in the form \(\frac{dy}{dx} = g(x)h(y)\), where the right side can be expressed as a product of a function of x alone and a function of y alone.

Separation of variables method:
  1. Rewrite the equation in the form \(\frac{dy}{dx} = g(x)h(y)\)
  2. Divide both sides by \(h(y)\) to get \(\frac{1}{h(y)}\frac{dy}{dx} = g(x)\)
  3. Multiply both sides by \(dx\) to separate variables: \(\frac{1}{h(y)}dy = g(x)dx\)
  4. Integrate both sides: \(\int \frac{1}{h(y)}dy = \int g(x)dx\)
  5. Solve for y in terms of x, using initial conditions if provided
Original Equation
\(\frac{dy}{dx} = \frac{x}{y}\)
Separated Form
\(y\,dy = x\,dx\)
Step 1: Separate variables

Multiply both sides by \(y\) and by \(dx\):

\(y\,dy = x\,dx\)

Step 2: Integrate both sides

\(\int y\,dy = \int x\,dx\)

\(\frac{y^2}{2} = \frac{x^2}{2} + C_1\)

Step 3: Solve for the general solution

Multiply both sides by 2:

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

where \(C = 2C_1\)

Therefore: \(y = \pm\sqrt{x^2 + C}\)

Step 4: Apply initial condition

Using \(y(0) = 2\):

\(2 = \pm\sqrt{0^2 + C} = \pm\sqrt{C}\)

Since \(y(0) = 2 > 0\), we take the positive root:

\(2 = \sqrt{C}\), so \(C = 4\)

\(y = \sqrt{x^2 + 4}\)
Final answer:

The particular solution is \(y = \sqrt{x^2 + 4}\). Note that we chose the positive root because the initial condition requires a positive value.

Applied rules:

• Separation of variables: Rearrange to get all y terms on one side and all x terms on the other

• Integration: Integrate both sides after separation

• Initial conditions: Use to determine the constant of integration

2 Trigonometric functions
Exercise 2
Solve the differential equation:
\(\frac{dy}{dx} = \cos(x)\sin(y)\)
with the initial condition \(y(0) = \frac{\pi}{2}\)
Definition:

Trigonometric separable equation: A separable equation involving trigonometric functions. These often require special integration techniques and may involve inverse trigonometric functions in the solution.

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

Divide both sides by \(\sin(y)\) and multiply by \(dx\):

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

Step 2: Integrate both sides

Left side: \(\int \frac{dy}{\sin(y)} = \int \csc(y)\,dy = -\ln|\csc(y) + \cot(y)| + C_1\)

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

Step 3: Combine constants

\(-\ln|\csc(y) + \cot(y)| = \sin(x) + C\)

where \(C = C_2 - C_1\)

Step 4: Apply initial condition

Using \(y(0) = \frac{\pi}{2}\):

\(-\ln|\csc(\frac{\pi}{2}) + \cot(\frac{\pi}{2})| = \sin(0) + C\)

\(-\ln|1 + 0| = 0 + C\)

\(-\ln(1) = C\), so \(C = 0\)

Step 5: Solve for y

\(-\ln|\csc(y) + \cot(y)| = \sin(x)\)

\(\ln|\csc(y) + \cot(y)| = -\sin(x)\)

\(|\csc(y) + \cot(y)| = e^{-\sin(x)}\)

\(\csc(y) + \cot(y) = \pm e^{-\sin(x)}\)

\(\csc(y) + \cot(y) = \pm e^{-\sin(x)}\)
Final answer:

The solution is implicitly defined by \(\csc(y) + \cot(y) = e^{-\sin(x)}\) (choosing the positive sign to satisfy the initial condition). This is an implicit solution since we cannot easily solve for y explicitly.

Applied rules:

• Integration of \(\csc(y)\): \(\int \csc(y)\,dy = -\ln|\csc(y) + \cot(y)| + C\)

• Implicit solutions: Sometimes we cannot solve explicitly for y, so we leave the solution in implicit form

• Initial conditions: Used to determine the constant and select the appropriate sign

3 Exponential growth model
Exercise 3
Solve the differential equation modeling population growth:
\(\frac{dP}{dt} = kP\)
with the initial condition \(P(0) = P_0\), where k is a positive constant.
Definition:

Exponential growth/decay equation: A fundamental separable equation of the form \(\frac{dy}{dx} = ky\), where k is a constant. When k > 0, it represents exponential growth; when k < 0, it represents exponential decay.

Original Equation
\(\frac{dP}{dt} = kP\)
Separated Form
\(\frac{dP}{P} = k\,dt\)
Step 1: Separate variables

Divide both sides by \(P\) and multiply by \(dt\):

\(\frac{dP}{P} = k\,dt\)

Step 2: Integrate both sides

Left side: \(\int \frac{dP}{P} = \ln|P| + C_1\)

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

Step 3: Combine constants

\(\ln|P| = kt + C\)

where \(C = C_2 - C_1\)

Step 4: Exponentiate both sides

\(|P| = e^{kt + C} = e^C \cdot e^{kt}\)

Let \(A = e^C\), so \(|P| = A e^{kt}\)

Since \(A > 0\), we can write: \(P = \pm A e^{kt}\)

Let \(B = \pm A\), so \(P = B e^{kt}\)

Step 5: Apply initial condition

Using \(P(0) = P_0\):

\(P_0 = B e^{k \cdot 0} = B e^0 = B\)

Therefore, \(B = P_0\)

Step 6: Write the final solution

\(P(t) = P_0 e^{kt}\)

\(P(t) = P_0 e^{kt}\)
Final answer:

The solution is \(P(t) = P_0 e^{kt}\), which represents exponential growth if \(k > 0\) or exponential decay if \(k < 0\). This is the famous exponential growth/decay law.

Applied rules:

• Integration of \(\frac{1}{P}\): \(\int \frac{dP}{P} = \ln|P| + C\)

• Exponentiating: To eliminate logarithms, raise both sides as exponents of e

• Initial value problems: Use initial conditions to find the particular solution

Rules and methods, laws,...
\(\frac{dy}{dx} = g(x)h(y)\)
Separable Form
Key definitions:

Separable equation: A differential equation that can be written as \(\frac{dy}{dx} = g(x)h(y)\) where the variables can be separated.

General solution: The family of all solutions containing an arbitrary constant.

Particular solution: A specific solution obtained by assigning a value to the arbitrary constant using initial conditions.

Implicit solution: A solution where y is not explicitly solved in terms of x.

Complete methodology:
  1. Identify separability: Check if the equation can be written as \(\frac{dy}{dx} = g(x)h(y)\)
  2. Separate variables: Rearrange to get all y terms on one side and x terms on the other
  3. Integrate both sides: Perform integration after separation
  4. Solve for y: If possible, express y explicitly in terms of x
  5. Apply initial conditions: Use to find the particular solution
Tip 1: Always check if the equation is truly separable before attempting the method.
Tip 2: Be careful with absolute values when integrating functions like 1/y.
Tip 3: Some equations may have implicit solutions that cannot be solved explicitly.
Tip 4: Verify your solution by substituting back into the original equation.
Common errors: Forgetting to separate variables properly, incorrect integration, missing absolute values.
Exam preparation: Practice with various function types (polynomial, exponential, trigonometric).
Formulas to know by heart:

• Standard forms: \(\int \frac{dy}{y} = \ln|y| + C\), \(\int \csc(y)dy = -\ln|\csc(y) + \cot(y)| + C\)

• Exponential growth: \(\frac{dy}{dx} = ky \Rightarrow y = Ce^{kx}\)

• Logistic growth: \(\frac{dy}{dx} = ky(1-\frac{y}{L}) \Rightarrow y = \frac{L}{1 + Ae^{-kt}}\)

• Integration techniques: U-substitution, partial fractions, trigonometric integrals

Detailed Summary: Separable Differential Equations
\(\frac{dy}{dx} = g(x)h(y)\)
Separable Form
Standard Form
\(\frac{dy}{dx} = g(x)h(y)\)
Variables separated
Separated Form
\(\frac{dy}{h(y)} = g(x)dx\)
Ready for integration
Integrated Form
\(\int \frac{dy}{h(y)} = \int g(x)dx\)
Solution approach
Core Concepts:

Separable differential equation: A first-order differential equation that can be written in the form \(\frac{dy}{dx} = g(x)h(y)\), where the variables can be separated into functions of x alone and functions of y alone.

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

General solution: The family of all solutions to a differential equation, containing one arbitrary constant.

Particular solution: A specific solution obtained by using initial conditions to determine the value of the arbitrary constant.

Detailed Solution Process:
  1. Recognition: Identify that the equation is of the form \(\frac{dy}{dx} = g(x)h(y)\). If not immediately obvious, try algebraic manipulation to achieve this form.
  2. Division: Divide both sides by \(h(y)\) (assuming \(h(y) \neq 0\)) to get \(\frac{1}{h(y)}\frac{dy}{dx} = g(x)\).
  3. Multiplication: Multiply both sides by \(dx\) to obtain \(\frac{1}{h(y)}dy = g(x)dx\).
  4. Integration: Integrate both sides: \(\int \frac{1}{h(y)}dy = \int g(x)dx\).
  5. Simplification: Simplify the resulting equation and solve for y in terms of x if possible.
  6. Application of initial conditions: Use given initial conditions to find the particular solution.
Checking Separability: If you can write the equation as \(\frac{dy}{dx} = \frac{f(x)}{g(y)}\) or \(\frac{dy}{dx} = f(x) \cdot g(y)\), it's separable.
Domain Considerations: Be mindful of values where division by zero occurs (e.g., when \(h(y) = 0\)).
Implicit vs Explicit: Some solutions cannot be solved explicitly for y; implicit solutions are perfectly acceptable.
Verification: Always substitute your solution back into the original equation to verify correctness.
Applications: Population growth, radioactive decay, Newton's law of cooling, mixing problems.
Advantages: Systematic method that reduces differential equations to integration problems.
Limitations: Only applies to a specific class of equations; some equations require other methods.
Important Rules and Principles:

• Existence and Uniqueness: Under suitable conditions, there exists exactly one solution satisfying given initial conditions.

• Domain Restrictions: Solutions may be restricted by domain considerations (division by zero, square roots of negatives, etc.).

• Constant Solutions: Check if \(h(y) = 0\) yields constant solutions that might be missed during separation.

• Verification: Always verify solutions by differentiation and substitution into the original equation.

Questions & Answers

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

Answer: To determine if a differential equation is separable, look for these characteristics:

  • The equation should be in the form \(\frac{dy}{dx} = f(x,y)\) where the right side can be factored into a function of x alone multiplied by a function of y alone: \(\frac{dy}{dx} = g(x)h(y)\)
  • Look for products of functions where one depends only on x and another only on y
  • Examples of separable: \(\frac{dy}{dx} = x^2y\), \(\frac{dy}{dx} = \frac{\sin x}{y^2}\), \(\frac{dy}{dx} = e^x \cos y\)
  • Examples of non-separable: \(\frac{dy}{dx} = x + y\), \(\frac{dy}{dx} = \sin(xy)\), \(\frac{dy}{dx} = x^2 + y^2\)

Sometimes you need to algebraically manipulate the equation to reveal the separable form. If you can write it as \(\frac{dy}{dx} = \frac{f(x)}{g(y)}\) or \(\frac{dy}{dx} = f(x) \cdot g(y)\), then it's separable.

Question: What happens if I encounter \(\frac{dy}{dx} = 0\) during separation? Should I worry about this case?

Answer: Yes, you should definitely consider the case where the right side equals zero! This is important:

  • When solving \(\frac{dy}{dx} = g(x)h(y)\), you typically divide by \(h(y)\), which assumes \(h(y) \neq 0\)
  • You must separately consider the case where \(h(y) = 0\)
  • If \(h(y_0) = 0\) for some constant \(y_0\), then \(y = y_0\) is a constant solution
  • These constant solutions are sometimes called equilibrium solutions or steady-state solutions

For example, in \(\frac{dy}{dx} = y(1-y)\), we have \(h(y) = y(1-y)\). Setting \(h(y) = 0\) gives \(y = 0\) or \(y = 1\), which are constant solutions that you might miss if you only consider the separated form.

Question: When should I expect an implicit solution versus an explicit solution?

Answer: Whether you get an implicit or explicit solution depends on the complexity of the integration and the resulting equation:

  • Explicit solutions: When the integration results in an equation that can be easily solved for y in terms of x (e.g., \(\ln|y| = x^2 + C\) leads to \(y = Ce^{x^2}\))
  • Implicit solutions: When the resulting equation cannot be solved explicitly for y (e.g., \(\sin(y) = x^2 + C\) or more complex transcendental equations)
  • Trigonometric and logarithmic functions often lead to implicit solutions

An implicit solution is still a valid and complete solution. Don't feel you need to force an explicit form if it's mathematically impossible or unnecessarily complex. Both forms are valuable, and implicit solutions can still be analyzed and graphed.