Differential Equations
Linear Differential Equations
Grade 12

Question:

<p>We have, \(\frac{dy}{dx} + \left(\frac{-1}{x}\right)y = x\left(xe^x + e^x - 1\right)\). If \(y(x=1) = e-1\), find \(k\) such that \(y(2) = k \cdot y(1) \cdot [y(1)+2]\), and compute \(\frac{k^2}{5}\).</p>

Step-by-Step Solution

Key Concept: Recognize this as a first-order linear ODE in standard form dy/dx + P(x)y = Q(x), requiring an integrating factor μ(x) = e^(∫P(x)dx) to solve. The integrating factor here is e^(-ln|x|) = 1/x.
<p><strong>Step 1: Identify the standard form</strong></p><p>The equation is: dy/dx + (-1/x)y = x(xe^x + e^x - 1)</p><p>This is a linear ODE with P(x) = -1/x and Q(x) = x(xe^x + e^x - 1) = x²e^x + xe^x - x</p><p><strong>Step 2: Find the integrating factor</strong></p><p>μ(x) = e^(∫(-1/x)dx) = e^(-ln|x|) = 1/x</p><p><strong>Step 3: Multiply both sides by μ(x) = 1/x</strong></p><p>(1/x)dy/dx - (1/x²)y = xe^x + e^x - 1</p><p><strong>Step 4: Recognize left side as a product derivative</strong></p><p>d/dx[y/x] = xe^x + e^x - 1</p><p><strong>Step 5: Integrate both sides</strong></p><p>y/x = ∫(xe^x + e^x - 1)dx</p><p>For ∫xe^x dx, use integration by parts: u = x, dv = e^x dx → du = dx, v = e^x</p><p>∫xe^x dx = xe^x - e^x</p><p>Therefore: y/x = (xe^x - e^x) + e^x - x + C = xe^x - x + C</p><p>So: y = x²e^x - x² + Cx</p><p><strong>Step 6: Apply initial condition y(1) = e - 1</strong></p><p>e - 1 = 1·e^1 - 1 + C·1</p><p>e - 1 = e - 1 + C</p><p>C = 0</p><p><strong>Step 7: Write the particular solution</strong></p><p>y = x²e^x - x²</p><p><strong>Step 8: Find y(1)</strong></p><p>y(1) = 1·e - 1 = e - 1</p><p><strong>Step 9: Find y(2)</strong></p><p>y(2) = 4e² - 4</p><p><strong>Step 10: Use the relation y(2) = k·y(1)·[y(1) + 2]</strong></p><p>4e² - 4 = k(e - 1)[(e - 1) + 2]</p><p>4e² - 4 = k(e - 1)(e + 1)</p><p>4(e² - 1) = k(e² - 1)</p><p>4 = k</p><p><strong>Step 11: Calculate k²/5</strong></p><p>k²/5 = 16/5 = 3.2</p><p><strong>∴ Answer: 3.20</strong></p>
Correct Answer: 3.20

Master Differential Equations with Mathbee

Practice this topic under real exam conditions with strict timers, or ask our AI Mentor to explain the concepts step-by-step.

Start Practicing for Free