Problem 48
Question
(a) An integrating factor for \(y^{\prime}-2 x y=-1\) is \(e^{-x^{2}} .\) Thus \\[ \begin{aligned} \frac{d}{d x}\left[e^{-x^{2}} y\right] &=-e^{-x^{2}} \\ e^{-x^{2}} y &=-\int_{0}^{x} e^{-t^{2}} d t=-\frac{\sqrt{\pi}}{2} \operatorname{erf}(x)+c \end{aligned} \\] From \(y(0)=\sqrt{\pi} / 2,\) and noting that erf \((0)=0,\) we get \(c=\sqrt{\pi} / 2 .\) Thus \\[ y=e^{x^{2}}\left(-\frac{\sqrt{\pi}}{2} \operatorname{erf}(x)+\frac{\sqrt{\pi}}{2}\right)=\frac{\sqrt{\pi}}{2} e^{x^{2}}(1-\operatorname{erf}(x))=\frac{\sqrt{\pi}}{2} e^{x^{2}} \operatorname{erfc}(x) \\] (b) Using a CAS we find \(y(2) \approx 0.226339\)
Step-by-Step Solution
Verified Answer
The solution is \( y = \frac{\sqrt{\pi}}{2} e^{x^2} \operatorname{erfc}(x) \), with \( y(2) \approx 0.226339 \).
1Step 1: Identify the Differential Equation
The given differential equation is \( y' - 2xy = -1 \). Our goal is to solve this first-order linear differential equation using the integrating factor method.
2Step 2: Integrating Factor Calculation
The given integrating factor is \( e^{-x^2} \). An integrating factor is generally expressed as \( e^{\int P(x) \, dx} \) for an equation of the form \( y' + P(x)y = Q(x) \). Here, \( P(x) = -2x \), so the integrating factor is indeed \( e^{-x^2} \).
3Step 3: Multiply the Equation by the Integrating Factor
We multiply the entire differential equation by the integrating factor, \( e^{-x^2} \), to obtain \( e^{-x^2} y' - 2xe^{-x^2}y = -e^{-x^2} \). This allows the left-hand side to be re-written as the derivative of a product.
4Step 4: Write as Derivative of a Product
Express the left-hand side as the derivative of a product: \( \frac{d}{dx}(e^{-x^2}y) = -e^{-x^2} \). This step simplifies the integration process.
5Step 5: Integrate Both Sides
Integrate both sides with respect to \( x \): \( e^{-x^2}y = -\int_{0}^{x} e^{-t^2} \ dt + C \). The integral on the right-hand side cannot be expressed in elementary functions, hence it involves the error function \( \operatorname{erf}(x) \).
6Step 6: Simplify Using Error Function
The integral \( -\int_{0}^{x} e^{-t^2} \ dt \) results in \( -\frac{\sqrt{\pi}}{2} \operatorname{erf}(x) \), based on the integration limits and the definition of the error function.
7Step 7: Apply Initial Condition to Find Constant
Given \( y(0) = \frac{\sqrt{\pi}}{2} \) and \( \operatorname{erf}(0) = 0 \), substitute in the equation to solve for \( C \): \( \frac{\sqrt{\pi}}{2} = C \). Thus, \( C = \frac{\sqrt{\pi}}{2} \).
8Step 8: Find General Solution
Substitute \( C \) back into the equation: \( y = e^{x^2}\left(-\frac{\sqrt{\pi}}{2} \operatorname{erf}(x) + \frac{\sqrt{\pi}}{2}\right) \). Simplify to get \( y = \frac{\sqrt{\pi}}{2} e^{x^2} (1 - \operatorname{erf}(x)) = \frac{\sqrt{\pi}}{2} e^{x^2} \operatorname{erfc}(x) \), where \( \operatorname{erfc}(x) = 1 - \operatorname{erf}(x) \).
9Step 9: Evaluate Particular Solution Using CAS
Using a Computer Algebra System (CAS), evaluate the expression at \( x = 2 \) for numerical approximation. The solution \( y(2) \approx 0.226339 \) is confirmed.
Key Concepts
Integrating FactorError Function (erf)Initial Value ProblemFirst-Order Linear Differential Equation
Integrating Factor
An integral part of solving first-order linear differential equations is the use of an integrating factor. This is a function that helps transform a differential equation so that it becomes easier to solve. In our exercise, we have the differential equation \( y' - 2xy = -1 \). To solve it, we need an integrating factor that can convert the left-hand side into the derivative of a specific product. The general formula for the integrating factor \( \ \) is \( e^{\int P(x) \, dx} \), where \( P(x) \) is the coefficient of \( y \) in the standard form of the equation \( y' + P(x)y = Q(x) \). In our problem, \( P(x) = -2x \), which makes the integrating factor \( e^{-x^2} \). This simple step paves the way for the equation to be solved as the product of a derivative.
Error Function (erf)
The error function, denoted as \( \operatorname{erf}(x) \), plays a crucial role in this particular exercise. While performing the integration of \( e^{-t^2} \), we encounter a function that cannot be expressed in terms of elementary functions. Here, the error function comes into play. It is defined as:
- \( \operatorname{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} \, dt \)
Initial Value Problem
When solving differential equations, initial value problems provide specific conditions that must be satisfied by the solution. It involves finding a particular solution to a differential equation that passes through a given initial point. In our example, the initial condition is \( y(0) = \frac{\sqrt{\pi}}{2} \).This condition helps determine the constant \( C \) after integration. Substituting \( x = 0 \) into \( y = e^{x^2} \left(-\frac{\sqrt{\pi}}{2} \operatorname{erf}(x) + C\right) \), we find that since \( \operatorname{erf}(0) = 0 \), the equation simplifies, leading us to \( C = \frac{\sqrt{\pi}}{2} \). This establishes the complete solution for the differential equation.
First-Order Linear Differential Equation
A first-order linear differential equation is characterized by the highest derivative being of the first order. They are typically expressed in the form \( y' + P(x)y = Q(x) \). In this exercise, we have the equation \( y' - 2xy = -1 \).These equations can often be solved using techniques like the integrating factor to simplify and integrate. The significance of these equations is in modeling real-world phenomena such as cooling processes, electrical circuits, and various physical systems. In the provided problem, applying the integrating factor turns the left-hand side into \( \frac{d}{dx}(e^{-x^2}y) \), making it straightforward to integrate both sides and solve. Such methods emphasize the practicality and power of first-order linear differential equations in computational mathematics.
Other exercises in this chapter
Problem 46
(b) For \(|x|>1\) and \(|y|>1\) the differential equation is \(d y / d x=\sqrt{y^{2}-1} / \sqrt{x^{2}-1} .\) Separating variables and integrating, we obtain \(\
View solution Problem 47
Writing the differential equation as \(\frac{d E}{d t}+\frac{1}{R C} E=0\) we see that an integrating factor is \(e^{t / R C}\). Then $$\begin{aligned} \frac{d}
View solution Problem 49
(a) An implicit solution of the differential equation \((2 y+2) d y-\left(4 x^{3}+6 x\right) d x=0\) is \\[y^{2}+2 y-x^{4}-3 x^{2}+c=0\\]. The condition \(y(0)=
View solution Problem 50
(a) Separating variables and integrating, we have \\[\left(-2 y+y^{2}\right) d y=\left(x-x^{2}\right) d x\\] and \\[-y^{2}+\frac{1}{3} y^{3}=\frac{1}{2} x^{2}-\
View solution