Example 1
Question: Find the general solution of the differential equation \( e^{x}\,dy + (y\,e^{x} - 3x^{2})\,dx = 0 \). Choose the correct option. (A) \( y\,e^{x} - x^{3} = C \) (B) \( y\,e^{x} + x^{3} = C \) (C) \( y + e^{x} = x^{3} + C \) (D) \( y\,e^{-x} - x^{3} = C \)
Solution: Start by dividing the entire equation by \( e^{x} \) (which is never zero). Dividing by \( e^{x} \): \[ dy + \left(y - 3x^{2}e^{-x}\right)dx = 0 \] Rewrite in derivative form: \[ \frac{dy}{dx} + y = 3x^{2}e^{-x} \] This is a linear ODE with \( P(x) = 1 \) and \( Q(x) = 3x^{2}e^{-x} \). Compute the integrating factor: \[ \mu = e^{\int 1\,dx} = e^{x} \] Multiply both sides by \( e^{x} \): \[ e^{x}\frac{dy}{dx} + y\,e^{x} = 3x^{2} \] The left-hand side is an exact derivative: \[ \frac{d}{dx}\left(y\,e^{x}\right) = 3x^{2} \] Integrate both sides with respect to \( x \): \[ y\,e^{x} = \int 3x^{2}\,dx \] \[ y\,e^{x} = x^{3} + C \] This can be written as \( y\,e^{x} - x^{3} = C \), which corresponds to option (A).
Answer: (A) \( y\,e^{x} - x^{3} = C \)
Example 2
Question: Find the general solution of the differential equation \( e^{y}\,dx + (x\,e^{y} + 2y)\,dy = 0 \). Choose the correct option. (A) \( x\,e^{y} + y^{2} = C \) (B) \( x\,e^{y} - y^{2} = C \) (C) \( x + e^{y} = y^{2} + C \) (D) \( x\,e^{-y} + y^{2} = C \)
Solution: Divide the entire equation by \( e^{y} \) (treating \( y \) as the independent variable, so we find \( x \) as a function of \( y \)). Dividing by \( e^{y} \): \[ dx + \left(x + 2y\,e^{-y}\right)dy = 0 \] Rewrite as a linear ODE in \( x \): \[ \frac{dx}{dy} + x = -2y\,e^{-y} \] Here \( P(y) = 1 \) and \( Q(y) = -2y\,e^{-y} \). Compute the integrating factor: \[ \mu = e^{\int 1\,dy} = e^{y} \] Multiply both sides by \( e^{y} \): \[ e^{y}\frac{dx}{dy} + x\,e^{y} = -2y \] The left-hand side is an exact derivative: \[ \frac{d}{dy}\left(x\,e^{y}\right) = -2y \] Integrate both sides with respect to \( y \): \[ x\,e^{y} = \int -2y\,dy \] \[ x\,e^{y} = -y^{2} + C \] This can be written as \( x\,e^{y} + y^{2} = C \), which corresponds to option (A).
Answer: (A) \( x\,e^{y} + y^{2} = C \)