Problem 15
Question
Solve the initial-value problem. \( x^2y' + 2xy = \ln x, y(1) = 2 \)
Step-by-Step Solution
Verified Answer
The solution is \( y = \frac{x \ln x - x + 3}{x^2}. \)
1Step 1: Identify the Type of Differential Equation
The given differential equation is \( x^2y' + 2xy = \ln x \). Since the equation can be rewritten as \( y' + \frac{2}{x}y = \frac{\ln x}{x^2} \), it is a linear first-order differential equation of the form \( y' + P(x)y = Q(x) \).
2Step 2: Calculate the Integrating Factor
To solve the equation, find the integrating factor \( \mu(x) = e^{\int P(x) \, dx} \). Here, \( P(x) = \frac{2}{x} \), so: \[ \mu(x) = e^{\int \frac{2}{x} \, dx} = e^{2 \ln |x|} = x^2. \]
3Step 3: Multiply the Differential Equation by the Integrating Factor
Multiply every term of the differential equation by the integrating factor \( x^2 \). The equation becomes: \[ x^2 \/ (x^2 y' + 2xy) = x^2 \ln x/x^2 \], which simplifies to: \[ x^2y' + 2xy = \ln x. \]
4Step 4: Express the Left Side as a Derivative
The left-hand side of the equation \( x^2y' + 2xy \) can be rewritten as a derivative:\[ \frac{d}{dx}(x^2y) = \ln x. \]
5Step 5: Integrate Both Sides
Integrate both sides with respect to \(x\). The left side becomes:\[ \int \frac{d}{dx}(x^2y) \, dx = x^2y, \]and the right side becomes:\[ \int \ln x \, dx. \]Using integration by parts, let \( u = \ln x \) and \( dv = dx \), then \( du = \frac{1}{x} dx \) and \( v = x \). The integral becomes:\[ \int \ln x \, dx = x \ln x - \int x \cdot \frac{1}{x} \, dx = x \ln x - x + C. \]
6Step 6: Apply the Initial Condition
Using the initial condition \( y(1) = 2 \), substitute into the equation:\[ 1^2 \, y = 1 \ln 1 - 1 + C. \]This simplifies to: \[ 2 = 0 - 1 + C \Rightarrow C = 3. \]
7Step 7: Find the Solution Function
Using all the steps, substitute \( C = 3 \) back into our expression:\[ x^2y = x \ln x - x + 3, \]and solve for \( y(x) \):\[ y = \frac{x \ln x - x + 3}{x^2}. \]
Key Concepts
Linear First-Order Differential EquationIntegrating FactorIntegration by PartsInitial Condition
Linear First-Order Differential Equation
A linear first-order differential equation is a type of equation that involves the first derivative of a function and can be expressed in the form \( y' + P(x)y = Q(x) \). In this context, 'linear' refers to how the function and its derivative appear in the equation—specifically, they are not raised to any power other than one. Linear first-order equations are straightforward to work with because they follow a predictable pattern.
In our original problem, we have an equation \( x^2y' + 2xy = \ln x \). When simplified, this becomes \( y' + \frac{2}{x}y = \frac{\ln x}{x^2} \). This confirms our equation fits the form of a linear first-order differential equation. Such equations are solvable using methods like an integrating factor, as we'll discuss next.
In our original problem, we have an equation \( x^2y' + 2xy = \ln x \). When simplified, this becomes \( y' + \frac{2}{x}y = \frac{\ln x}{x^2} \). This confirms our equation fits the form of a linear first-order differential equation. Such equations are solvable using methods like an integrating factor, as we'll discuss next.
Integrating Factor
The integrating factor is a crucial tool for solving linear first-order differential equations. It is a function, usually denoted \( \mu(x) \), that simplifies the process of solving these equations by allowing us to rewrite them in a more manageable form.
- To find the integrating factor, we use the formula \( \mu(x) = e^{\int P(x) \, dx} \).
- For our equation, \( P(x) = \frac{2}{x} \), which leads to \( \mu(x) = e^{2 \ln |x|} = x^2 \).
Integration by Parts
Integration by parts is a technique used to integrate products of functions, described by the formula \( \int u \, dv = uv - \int v \, du \). It's a key method when dealing with expressions that are difficult to integrate directly.
- The formula is derived from the product rule of differentiation, and is useful specifically for integrals involving products of different types of functions.
- In solving our differential equation, we need to integrate \( \ln x \). By choosing \( u = \ln x \) and \( dv = dx \), we find \( du = \frac{1}{x} dx \) and \( v = x \).
- This leads to \( \int \ln x \, dx = x \ln x - \int x \cdot \frac{1}{x} \, dx = x \ln x - x + C \).
Initial Condition
The initial condition is an additional piece of information provided with a differential equation, specifying the value of the solution at a particular point. It's typically used to find the constant of integration once we have the general solution to the differential equation.
- For the problem at hand, the initial condition is \( y(1) = 2 \).
- After integrating both sides of the equation, an arbitrary constant \( C \) appears. We apply the initial condition to determine \( C \).
- Substituting \( x = 1 \) and \( y = 2 \) into the integrated expression, we solve for \( C \), finding that \( C = 3 \).
Other exercises in this chapter
Problem 14
Sketch the direction field of the differential equation. Then use it to sketch a solution curve that passes through the given point. $$ y^{\prime}=x+y^{2}, \qua
View solution Problem 14
Suppose you have just poured a cup of freshly brewed coffee with temperature \( 95^{\circ} \) in a room where the temperature is \( 20^{\circ}. \) (a) When do y
View solution Problem 15
Find the solution of the differential equation that satisfies the given initial condition. \( x \ln x = y(1 + \sqrt {3 + y^2}) y', y(1) = 1 \)
View solution Problem 15
Use a computer algebra system to draw a direction field for the given differential equation. Ger a printout and sketch on it the solution curve that passes thro
View solution