Solved Exercises on Differential Equations Introduction in Calculus 1

Master differential equations introduction: basic concepts, order, linearity, separable equations, and initial value problems through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Order and Linearity
Exercise 1
Determine the order and linearity of the following differential equation:
\(\frac{d^2y}{dx^2} + 3\frac{dy}{dx} + 2y = \sin x\)
Definition:

Differential Equation: An equation that relates a function with one or more of its derivatives.

Order: The highest derivative that appears in the equation.

Linearity: An equation is linear if the dependent variable and its derivatives appear to the first power and are not multiplied together.

Classification method:
  1. Identify the highest derivative in the equation
  2. Determine the order based on the highest derivative
  3. Check if the dependent variable and its derivatives appear linearly
  4. Classify as linear or nonlinear
Original Equation
\(\frac{d^2y}{dx^2} + 3\frac{dy}{dx} + 2y = \sin x\)
Highest Derivative
\(\frac{d^2y}{dx^2}\)
Classification
Second-order linear
Step 1: Identify the highest derivative

The equation contains \(\frac{d^2y}{dx^2}\) (second derivative), \(\frac{dy}{dx}\) (first derivative), and \(y\) (zeroth derivative).

Step 2: Determine the order

The highest derivative is \(\frac{d^2y}{dx^2}\), so this is a second-order differential equation.

Step 3: Check for linearity

Examine each term containing \(y\) or its derivatives:

  • \(\frac{d^2y}{dx^2}\): First power, linear
  • \(3\frac{dy}{dx}\): First power, linear
  • \(2y\): First power, linear
Step 4: Final classification

Since all terms containing \(y\) or its derivatives appear to the first power and are not multiplied together, this is a linear differential equation.

Second-order linear differential equation
Final answer:

This is a second-order linear differential equation.

Applied rules:

• Order Determination: Highest derivative determines the order

• Linearity Test: Dependent variable and derivatives to first power

• No Multiplication: \(y\) and its derivatives are not multiplied together

Tip: Count the highest number of primes (') or d/dx operations to find the order.
Warning: Terms like \(y^2\) or \(y \cdot \frac{dy}{dx}\) make equations nonlinear!
2 Separable Equation
Exercise 2
Solve the separable differential equation:
\(\frac{dy}{dx} = xy\)
Definition:

Separable Differential Equation: An equation that can be written in the form \(\frac{dy}{dx} = g(x)h(y)\), allowing variables to be separated.

Original Equation
\(\frac{dy}{dx} = xy\)
Separate Variables
\(\frac{dy}{y} = x \, dx\)
General Solution
\(y = Ce^{x^2/2}\)
Step 1: Rewrite the equation

\(\frac{dy}{dx} = xy\) can be rewritten as \(\frac{dy}{dx} = x \cdot y\)

Step 2: Separate variables

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

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

Step 3: Integrate both sides

\(\int \frac{1}{y} \, dy = \int x \, dx\)

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

Step 4: Solve for \(y\)

Take the exponential of both sides:

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

Let \(C = e^{C_1}\) (where \(C > 0\)): \(|y| = C e^{\frac{x^2}{2}}\)

Step 5: Remove absolute value

Since \(C > 0\) and we can have \(y\) positive or negative, we can write:

\(y = Ce^{\frac{x^2}{2}}\) where \(C\) is an arbitrary constant.

\(y = Ce^{\frac{x^2}{2}}\)
Final answer:

The general solution is \(y = Ce^{\frac{x^2}{2}}\) where \(C\) is an arbitrary constant.

Applied rules:

• Separation of Variables: Rearrange to get all \(y\) terms on one side, all \(x\) terms on the other

• Integration: Integrate both sides separately

• Exponential Property: \(e^{a+b} = e^a \cdot e^b\)

Tip: Look for equations where you can separate \(y\) and \(x\) terms to opposite sides.
Warning: Always consider the domain restrictions (like \(y \neq 0\) when dividing by \(y\)).
3 Verification of Solution
Exercise 3
Verify that \(y = e^{2x}\) is a solution to the differential equation \(\frac{dy}{dx} = 2y\).
Definition:

Solution Verification: To verify that a function is a solution to a differential equation, substitute the function and its derivatives into the equation and check if both sides are equal.

Given Solution
\(y = e^{2x}\)
Compute Derivative
\(\frac{dy}{dx} = 2e^{2x}\)
Verification
Left side = Right side ✓
Step 1: Find the derivative of the given solution

If \(y = e^{2x}\), then \(\frac{dy}{dx} = 2e^{2x}\) (using the chain rule)

Step 2: Substitute into the left side of the differential equation

Left side: \(\frac{dy}{dx} = 2e^{2x}\)

Step 3: Substitute into the right side of the differential equation

Right side: \(2y = 2(e^{2x}) = 2e^{2x}\)

Step 4: Compare both sides

Left side = \(2e^{2x}\) and Right side = \(2e^{2x}\)

Since both sides are equal, the solution is verified.

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

Yes, \(y = e^{2x}\) is a solution to \(\frac{dy}{dx} = 2y\).

Applied rules:

• Solution Verification: Substitute function and derivatives into the equation

• Chain Rule: \(\frac{d}{dx}[e^{2x}] = 2e^{2x}\)

• Equality Check: Both sides must be identical

Tip: Always verify solutions by substitution to catch calculation errors.
Warning: Don't assume a function is a solution without verification!
Rules and methods, laws,...
\(\frac{dy}{dx} = f(x,y)\)
General Form
First-order
\(\frac{dy}{dx} = g(x)h(y)\)
Separable Form
Linear
\(\frac{dy}{dx} + P(x)y = Q(x)\)
Linear Form
Second-order
\(\frac{d^2y}{dx^2} + P(x)\frac{dy}{dx} + Q(x)y = R(x)\)
Linear Form
Key definitions:

Differential Equation: An equation that relates a function with one or more of its derivatives.

Order: The highest derivative that appears in the equation.

Linearity: An equation is linear if the dependent variable and its derivatives appear to the first power and are not multiplied together.

Classification methodology:
  1. Identify the highest derivative: Count the number of primes or d/dx operations
  2. Determine the order: Based on the highest derivative
  3. Check linearity: Verify if terms appear to the first power
  4. Identify the type: Separable, linear, homogeneous, etc.
Tip 1: The order is determined by the highest derivative, not the coefficient of that derivative.
Tip 2: For linearity, check that \(y\) and its derivatives appear linearly (not squared, cubed, or multiplied together).
Tip 3: Always verify solutions by substitution.
Common errors: Misidentifying the order, incorrectly determining linearity, forgetting to verify solutions, not considering domain restrictions.
Key patterns: \(\frac{dy}{dx} = g(x)h(y)\) (separable), linear combinations of \(y\) and its derivatives.
Essential classifications to memorize:

• First-order: Contains \(\frac{dy}{dx}\) but no higher derivatives

• Second-order: Contains \(\frac{d^2y}{dx^2}\) but no higher derivatives

• Linear: \(y\) and its derivatives appear to the first power

• Nonlinear: Contains terms like \(y^2\), \((\frac{dy}{dx})^2\), or \(y \cdot \frac{dy}{dx}\)

• Separable: Can be written as \(\frac{dy}{dx} = g(x)h(y)\)

Solution: Exercises 4 to 5
4 Initial Value Problem
Exercise 4
Solve the initial value problem: \(\frac{dy}{dx} = 3y\), with \(y(0) = 2\).
Definition:

Initial Value Problem (IVP): A differential equation along with one or more initial conditions that specify the value of the unknown function and possibly its derivatives at a particular point.

Original IVP
\(\frac{dy}{dx} = 3y\), \(y(0) = 2\)
Separate Variables
\(\frac{dy}{y} = 3 \, dx\)
Particular Solution
\(y = 2e^{3x}\)
Step 1: Separate variables

\(\frac{dy}{dx} = 3y\) becomes \(\frac{dy}{y} = 3 \, dx\) (assuming \(y \neq 0\))

Step 2: Integrate both sides

\(\int \frac{1}{y} \, dy = \int 3 \, dx\)

\(\ln|y| = 3x + C_1\)

Step 3: Solve for \(y\)

\(|y| = e^{3x + C_1} = e^{C_1} \cdot e^{3x}\)

Let \(C = e^{C_1}\): \(|y| = C e^{3x}\)

Therefore: \(y = Ce^{3x}\) (where \(C\) can be positive or negative)

Step 4: Apply initial condition

Using \(y(0) = 2\): \(2 = Ce^{3(0)} = C \cdot 1 = C\)

So \(C = 2\)

Step 5: Write the particular solution

The solution to the IVP is \(y = 2e^{3x}\)

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

The solution to the initial value problem is \(y = 2e^{3x}\).

Applied rules:

• Separation of Variables: Rearrange equation to separate variables

• Initial Condition: Use to find the specific value of the constant

• Particular Solution: Solution that satisfies both the DE and initial condition

Tip: First find the general solution, then use initial conditions to find the particular solution.
Warning: Always verify that your solution satisfies both the DE and the initial condition!
5 Nonlinear Equation
Exercise 5
Determine if the equation \(\frac{dy}{dx} = y^2 + x\) is linear or nonlinear, and explain why.
Definition:

Linear Differential Equation: The dependent variable \(y\) and its derivatives appear only to the first power and are not multiplied together.

Nonlinear Differential Equation: Contains terms where \(y\) or its derivatives appear to powers other than one, or are multiplied together.

Original Equation
\(\frac{dy}{dx} = y^2 + x\)
Term Analysis
Contains \(y^2\) term
Classification
Nonlinear
Step 1: Examine each term containing \(y\) or its derivatives

The equation is \(\frac{dy}{dx} = y^2 + x\)

Terms containing \(y\) or its derivatives: \(\frac{dy}{dx}\) and \(y^2\)

Step 2: Check the \(\frac{dy}{dx}\) term

\(\frac{dy}{dx}\) appears to the first power, which is linear.

Step 3: Check the \(y^2\) term

\(y^2\) means \(y\) appears to the second power, which is nonlinear.

Step 4: Determine overall linearity

Since the equation contains a nonlinear term (\(y^2\)), the entire equation is nonlinear.

Step 5: Conclusion

The presence of any nonlinear term makes the entire differential equation nonlinear.

Nonlinear differential equation
Final answer:

This is a nonlinear differential equation because it contains the term \(y^2\), which is not linear.

Applied rules:

• Linearity Test: Check each term containing \(y\) or its derivatives

• Power Criterion: Terms must be to the first power only

• Multiplication Test: \(y\) and its derivatives should not be multiplied together

Tip: Even one nonlinear term makes the entire equation nonlinear.
Warning: Terms like \(y^2\), \(\sin(y)\), \(e^y\), or \(\frac{dy}{dx} \cdot y\) make equations nonlinear!
Detailed Summary: Differential Equations Introduction Mastery
\(\frac{dy}{dx} = f(x,y)\)
General Form
Key definitions:

Differential Equation: An equation that relates a function with one or more of its derivatives. It describes how a quantity changes over time or space.

Order: The highest derivative that appears in the equation. A first-order equation contains only first derivatives, a second-order equation contains up to second derivatives, etc.

Linearity: An equation is linear if the dependent variable and its derivatives appear to the first power and are not multiplied together. Otherwise, it's nonlinear.

Initial Value Problem (IVP): A differential equation along with initial conditions specifying the value of the unknown function and possibly its derivatives at a particular point.

Classification methodology:
  1. Identify the highest derivative: Look for the term with the most primes or highest d/dx operations
  2. Determine the order: Based on the highest derivative found
  3. Check linearity: Verify if all terms containing \(y\) or its derivatives are linear
  4. Identify the type: Classify as separable, linear, homogeneous, etc.
Tip 1: The order is determined by the highest derivative, regardless of its coefficient.
Tip 2: For linearity, check that \(y\) and its derivatives appear linearly (no powers higher than 1, no multiplication between them).
Tip 3: Always verify solutions by substituting back into the original equation.
Tip 4: Separable equations can be written as \(\frac{dy}{dx} = g(x)h(y)\) and solved by separating variables.
Common errors: Misidentifying the order, incorrectly determining linearity, forgetting to verify solutions, not considering domain restrictions when separating variables, mixing up general and particular solutions.
Key applications: Physics (motion, heat transfer), biology (population growth), economics (compound interest), engineering (control systems).
Complete classification reference:

• First-order: Contains \(\frac{dy}{dx}\) but no higher derivatives

• Second-order: Contains \(\frac{d^2y}{dx^2}\) but no higher derivatives

• Linear: \(y\) and its derivatives appear to the first power only

• Nonlinear: Contains terms like \(y^2\), \((\frac{dy}{dx})^2\), \(\sin(y)\), \(e^y\), or \(y \cdot \frac{dy}{dx}\)

• Separable: Can be written as \(\frac{dy}{dx} = g(x)h(y)\)

• Homogeneous: Can be written as \(\frac{dy}{dx} = f(\frac{y}{x})\)

Examples:
Concrete Applications
Linear Example: \(\frac{dy}{dx} + 2xy = x\) (first-order linear)
Nonlinear Example: \(\frac{dy}{dx} = y^2 + x\) (nonlinear due to \(y^2\))
Separable Example: \(\frac{dy}{dx} = \frac{x}{y}\) (can separate as \(y \, dy = x \, dx\))
Second-order Example: \(\frac{d^2y}{dx^2} + 4y = 0\) (linear, second-order)
Important Note: Most differential equations cannot be solved analytically and require numerical methods for approximation.
Memorization Aid: Think of linearity as "no powers or products" of the dependent variable and its derivatives.

Questions & Answers

Question: What's the difference between a general solution and a particular solution of a differential equation?

Answer: The difference is fundamental to understanding differential equations:

  • General Solution: Contains arbitrary constants (one for each order of the equation) and represents the entire family of possible solutions. For example, for a first-order equation, the general solution might be \(y = Ce^{2x}\) where \(C\) is any real number.
  • Particular Solution: A specific member of the general solution family, obtained by using initial conditions to determine the values of the arbitrary constants. For example, if we have the initial condition \(y(0) = 5\), then \(5 = Ce^{2(0)} = C\), so the particular solution is \(y = 5e^{2x}\).

Think of the general solution as describing all possible behaviors of a system, while the particular solution describes the specific behavior that occurs under given starting conditions.

Question: Why do we need to be careful about dividing by the dependent variable when solving separable equations? What happens if the variable equals zero?

Answer: This is an important consideration! When solving \(\frac{dy}{dx} = xy\) by separating variables, we divide by \(y\) to get \(\frac{dy}{y} = x \, dx\).

This division is only valid when \(y \neq 0\). We need to check if \(y = 0\) is also a solution:

  • Substituting \(y = 0\) into the original equation: \(\frac{dy}{dx} = x \cdot 0 = 0\)
  • This means \(\frac{dy}{dx} = 0\), so \(y\) is constant
  • Since we assumed \(y = 0\), this is consistent

Therefore, \(y = 0\) is a solution that we found by checking separately. Our general solution \(y = Ce^{x^2/2}\) includes this case when \(C = 0\), but it's important to be aware of the restriction during the separation process.

Question: How do I know if I should try separation of variables or another method for solving a differential equation?

Answer: Here are systematic ways to identify if an equation is separable:

  • Look for the form: Try to write the equation as \(\frac{dy}{dx} = g(x)h(y)\) where \(g(x)\) depends only on \(x\) and \(h(y)\) depends only on \(y\).
  • Check for factorization: Can you factor the right side into a function of \(x\) times a function of \(y\)?
  • Try rearranging: If you have \(\frac{dy}{dx} = f(x,y)\), can you express \(f(x,y)\) as a product of functions of \(x\) and \(y\) alone?

For example:

  • \(\frac{dy}{dx} = xy\) is separable: \(\frac{dy}{dx} = x \cdot y\)
  • \(\frac{dy}{dx} = x + y\) is NOT separable (cannot be factored into \(g(x)h(y)\))
  • \(\frac{dy}{dx} = \frac{x^2}{y^3}\) is separable: \(\frac{dy}{dx} = x^2 \cdot y^{-3}\)

If the equation isn't separable, consider other methods like linear equations, exact equations, or substitution techniques.