Question:medium

Find the particular solution of the differential equation

\(\dfrac{dy}{dx} - 2xy = 3x^{2} e^{x^{2}}\); \(y(0) = 5\).

Show Hint

Write it as a linear equation, find the integrating factor e^(-x^2), integrate, then use y(0) = 5 to fix the constant.
Updated On: Nov 20, 2026
Show Solution

Solution and Explanation

Step 1: Guess the shape of the solution:
The matching homogeneous equation is $\dfrac{dy}{dx} = 2xy$.
Separating variables gives $y = c\,e^{x^{2}}$.
So we look for a solution of the form $y = u(x)\,e^{x^{2}}$, where $u$ is a function of $x$.

Step 2: Substitute in the given equation:
Differentiate using the product rule.
\[ \dfrac{dy}{dx} = u^{\prime}e^{x^{2}} + 2x\,u\,e^{x^{2}} \]
Now $\dfrac{dy}{dx} - 2xy$ becomes $u^{\prime}e^{x^{2}}$, because the two terms with $2xu\,e^{x^{2}}$ cancel.

Step 3: Solve for u:
The equation now reads $u^{\prime}e^{x^{2}} = 3x^{2}e^{x^{2}}$.
Cancel the common factor $e^{x^{2}}$ to get $u^{\prime} = 3x^{2}$.
Integrating, $u = x^{3} + C$.
So the general solution is $y = (x^{3} + C)\,e^{x^{2}}$.

Step 4: Apply the initial value:
At $x = 0$ we need $y = 5$.
\[ 5 = (0 + C)\cdot 1 \Rightarrow C = 5 \]

Step 5: Check the answer:
For $y = (x^{3}+5)e^{x^{2}}$ we get $\dfrac{dy}{dx} = 3x^{2}e^{x^{2}} + 2x(x^{3}+5)e^{x^{2}}$.
Subtracting $2xy$ leaves $3x^{2}e^{x^{2}}$, which matches the right side.

Final Answer:
\[ \boxed{y = (x^{3} + 5)\,e^{x^{2}}} \]
Was this answer helpful?
0