Example 1
Question: Find the general solution of the differential equation \( x\,dy - (2 + x^2)\,dx = x\,dx \).
Solution: Step 1: Rewrite the equation. Starting from \( x\,dy - (2 + x^2)\,dx = x\,dx \), bring all \(dx\) terms to one side: \[ x\,dy = (2 + x^2)\,dx + x\,dx \] This gives \[ x\,dy = (2 + x + x^2)\,dx. \] Step 2: Divide both sides by \(x\) (assuming \(x \ne 0\)): \[ \frac{dy}{dx} = \frac{2}{x} + 1 + x. \] Step 3: Integrate both sides with respect to \(x\): \[ y = \int \left(\frac{2}{x} + 1 + x\right) dx. \] Evaluating each term: \[ y = 2\ln|x| + x + \frac{x^2}{2} + C. \] This is the required general solution.
Answer: \( y = 2\ln|x| + x + \dfrac{x^2}{2} + C \)
Example 2
Question: Find the general solution of the differential equation \( 2x\,dy = (3x^2 + 4)\,dx \).
Solution: Step 1: Rewrite the equation by dividing both sides by \(2x\) (assuming \(x \ne 0\)): \[ \frac{dy}{dx} = \frac{3x^2 + 4}{2x}. \] Step 2: Split the right-hand side: \[ \frac{dy}{dx} = \frac{3x^2}{2x} + \frac{4}{2x} = \frac{3x}{2} + \frac{2}{x}. \] Step 3: Integrate both sides with respect to \(x\): \[ y = \int \left(\frac{3x}{2} + \frac{2}{x}\right) dx. \] Evaluating each term: \[ y = \frac{3}{2} \cdot \frac{x^2}{2} + 2\ln|x| + C. \] Simplifying: \[ y = \frac{3x^2}{4} + 2\ln|x| + C. \] This is the required general solution.
Answer: \( y = \dfrac{3x^2}{4} + 2\ln|x| + C \)