Example 1
Question: Find the equation of a curve passing through the point \((0, 2)\). The slope of the tangent to the curve at any point \((x, y)\) equals twice the \(x\)-coordinate minus the product of the \(x\)-coordinate and the \(y\)-coordinate of that point.
Solution: The slope of the tangent at \((x, y)\) is \(\frac{dy}{dx}\). According to the given condition: \[\frac{dy}{dx} = 2x - xy\] Rearranging into the standard linear form: \[\frac{dy}{dx} + xy = 2x\] Here \(P(x) = x\) and \(Q(x) = 2x\). The integrating factor is: \[\mu = e^{\int x\,dx} = e^{\frac{x^2}{2}}\] Multiplying both sides by \(e^{\frac{x^2}{2}}\): \[\frac{d}{dx}\left(y\cdot e^{\frac{x^2}{2}}\right) = 2x\,e^{\frac{x^2}{2}}\] Integrating both sides with respect to \(x\): \[y\cdot e^{\frac{x^2}{2}} = \int 2x\,e^{\frac{x^2}{2}}\,dx\] Let \(t = \frac{x^2}{2}\), so \(dt = x\,dx\). Then: \[\int 2x\,e^{\frac{x^2}{2}}\,dx = 2\int e^{t}\,dt = 2e^{t} + C = 2e^{\frac{x^2}{2}} + C\] Therefore: \[y\cdot e^{\frac{x^2}{2}} = 2e^{\frac{x^2}{2}} + C\] Dividing both sides by \(e^{\frac{x^2}{2}}\): \[y = 2 + Ce^{-\frac{x^2}{2}}\] Applying the initial condition \((0, 2)\): substituting \(x = 0\) and \(y = 2\): \[2 = 2 + Ce^{0} \implies 2 = 2 + C \implies C = 0\] Therefore the particular solution is: \[y = 2\]
Answer: \(y = 2\)
Example 2
Question: Find the equation of a curve passing through the point \((0, -1)\). The slope of the tangent at any point \((x, y)\) on the curve equals the sum of three times the \(x\)-coordinate and the product of the \(x\)-coordinate and the \(y\)-coordinate of that point.
Solution: The slope of the tangent at \((x, y)\) is \(\frac{dy}{dx}\). The given condition yields: \[\frac{dy}{dx} = 3x + xy\] Rearranging into the standard linear form: \[\frac{dy}{dx} - xy = 3x\] Here \(P(x) = -x\) and \(Q(x) = 3x\). The integrating factor is: \[\mu = e^{\int -x\,dx} = e^{-\frac{x^2}{2}}\] Multiplying both sides by \(e^{-\frac{x^2}{2}}\): \[\frac{d}{dx}\left(y\cdot e^{-\frac{x^2}{2}}\right) = 3x\,e^{-\frac{x^2}{2}}\] Integrating both sides with respect to \(x\): \[y\cdot e^{-\frac{x^2}{2}} = \int 3x\,e^{-\frac{x^2}{2}}\,dx\] Let \(t = -\frac{x^2}{2}\), so \(dt = -x\,dx\), i.e., \(x\,dx = -dt\). Then: \[\int 3x\,e^{-\frac{x^2}{2}}\,dx = 3\int e^{t}(-dt) = -3e^{t} + C = -3e^{-\frac{x^2}{2}} + C\] Therefore: \[y\cdot e^{-\frac{x^2}{2}} = -3e^{-\frac{x^2}{2}} + C\] Dividing both sides by \(e^{-\frac{x^2}{2}}\): \[y = -3 + Ce^{\frac{x^2}{2}}\] Applying the initial condition \((0, -1)\): substituting \(x = 0\) and \(y = -1\): \[-1 = -3 + Ce^{0} \implies -1 = -3 + C \implies C = 2\] Therefore the particular solution is: \[y = -3 + 2e^{\frac{x^2}{2}}\]
Answer: \(y = 2e^{\frac{x^2}{2}} - 3\)