Solve the differential equation \[ \frac{dy}{dx} + y \cot x = 2x + x^2 \cot x \quad \text{where} \quad x \neq 0. \]
Step 1: Rewrite the equation as a linear first-order differential equation: \[ \frac{dy}{dx} + p(x) y = q(x), \] where \( p(x) = \cot x \) and \( q(x) = 2x + x^2 \cot x \).
Step 2: Use the integrating factor method to solve the equation. The integrating factor is given by: \[ \mu(x) = e^{\int p(x) dx} = e^{\int \cot x \, dx} = e^{\ln|\sin x|} = |\sin x|. \]
Step 3: Multiply both sides of the differential equation by the integrating factor \( |\sin x| \): \[ |\sin x| \frac{dy}{dx} + |\sin x| y \cot x = (2x + x^2 \cot x) |\sin x|. \]
Step 4: The left-hand side is now the derivative of \( y \sin x \), so we have: \[ \frac{d}{dx} \left( y \sin x \right) = 2x \sin x + x^2 \sin x \cot x. \]
Step 5: Integrate both sides of the equation: \[ \int \frac{d}{dx} \left( y \sin x \right) \, dx = \int \left( 2x \sin x + x^2 \sin x \cot x \right) \, dx. \] The integration of the left-hand side is straightforward: \[ y \sin x = \int \left( 2x \sin x + x^2 \sin x \cot x \right) dx. \]
Step 6: Solve the integrals on the right-hand side and simplify. After integrating, substitute back to find \( y(x) \).
If \[ y = 500 e^{7x} + 600 e^{-7x}, \quad \text{then show that} \quad \frac{d^2 y}{dx^2} = 49y. \]
Solve the differential equation \[ (x - y) \frac{dy}{dx} = x + 2y. \]
Minimize Z = 5x + 3y \text{ subject to the constraints} \[ 4x + y \geq 80, \quad x + 5y \geq 115, \quad 3x + 2y \leq 150, \quad x \geq 0, \quad y \geq 0. \]