Question
-2x(y-1) = dy/dx solution y=1+Ae^{-x^2}
Original question: -2x(y-1) = \frac{dy}{dx} -2x,dx = \frac{1}{y-1},dy -x^2 + c = \ln(y-1) e^{-x^2} \times e^c = |y-1| A = \pm e^c A e^{-x^2} = y-1 y = 1 + A e^{-x^2} (when A=0)
Expert Verified Solution
Key takeaway: This is a separable differential equation. Separate the variables, integrate both sides, and solve for carefully, keeping track of the constant of integration.
Start with
Step 1: Separate variables
Divide by and multiply by :
Step 2: Integrate both sides
This gives
Step 3: Exponentiate
Let , where can absorb the sign as well, so
Therefore,
Step 4: Check the special case
If , then , which also satisfies the differential equation.
Pitfalls the pros know 👇 A common mistake is to forget the absolute value after integrating . Another issue is treating the constant as only positive; after exponentiating, the solution constant should be allowed to be any real number in the final form.
What if the problem changes? If the equation were instead, the exponential would become instead of , so the sign in the exponent matters.
Tags: separable differential equation, integration, initial value