Math Problem Statement

dy/dx=1+2x-y/x^2 find the solution of differential equation given that when x=1,y=2

Solution

To solve the differential equation dydx=1+2xyx2\frac{dy}{dx} = 1 + \frac{2x - y}{x^2} with the initial condition y(1)=2y(1) = 2, let's go through the steps.

Step 1: Rewrite the Equation

We start by isolating terms involving yy: dydx=1+2xx2yx2\frac{dy}{dx} = 1 + \frac{2x}{x^2} - \frac{y}{x^2} Simplify 2xx2\frac{2x}{x^2} to get 2x\frac{2}{x}: dydx=1+2xyx2\frac{dy}{dx} = 1 + \frac{2}{x} - \frac{y}{x^2}

Step 2: Rearrange to a Linear Form

Rewrite the equation as: dydx+yx2=1+2x\frac{dy}{dx} + \frac{y}{x^2} = 1 + \frac{2}{x} This is now a first-order linear differential equation in the form: dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x) where P(x)=1x2P(x) = \frac{1}{x^2} and Q(x)=1+2xQ(x) = 1 + \frac{2}{x}.

Step 3: Find the Integrating Factor

The integrating factor I(x)I(x) is given by: I(x)=eP(x)dx=e1x2dxI(x) = e^{\int P(x) \, dx} = e^{\int \frac{1}{x^2} \, dx} Calculating the integral: 1x2dx=1x\int \frac{1}{x^2} \, dx = -\frac{1}{x} Thus, the integrating factor is: I(x)=e1x=1e1/xI(x) = e^{-\frac{1}{x}} = \frac{1}{e^{1/x}}

Step 4: Multiply Through by the Integrating Factor

Multiplying both sides of the differential equation by 1e1/x\frac{1}{e^{1/x}}: 1e1/xdydx+yx2e1/x=(1+2x)1e1/x\frac{1}{e^{1/x}} \frac{dy}{dx} + \frac{y}{x^2 e^{1/x}} = \left(1 + \frac{2}{x}\right) \frac{1}{e^{1/x}}

Step 5: Solve

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Differential Equations
Linear Differential Equations
Integrating Factors

Formulas

Linear differential equation form: dy/dx + P(x)y = Q(x)
Integrating factor I(x) = e^(∫P(x) dx)

Theorems

Linear First-Order Differential Equation Solution Theorem

Suitable Grade Level

Undergraduate