Question
Let y = y(x) be the solution of the differential equation where f\left( x \right) = \left\{ {\matrix{ {1,} & {x \in \left[ {0,1} \right]} \cr {0,} & {otherwise} \cr } } \right. If y(0) = 0, then is :
Options
Solution
Key Concepts and Formulas
- First-Order Linear Differential Equation: A differential equation of the form .
- Integrating Factor (IF): For a first-order linear differential equation, the integrating factor is .
- General Solution: The general solution to a first-order linear differential equation is given by , where is the constant of integration.
Step-by-Step Solution
Step 1: Identify the differential equation and its components.
We are given the differential equation , which is a first-order linear differential equation. Here, and .
Step 2: Find the Integrating Factor (IF).
The integrating factor is given by .
Step 3: Solve the differential equation for .
In this interval, . Therefore, the differential equation becomes . Multiplying both sides by the integrating factor , we get: The left side is the derivative of with respect to , so we can write: Integrating both sides with respect to :
Step 4: Apply the initial condition to find .
Substituting and into the equation, we get: Therefore, for , the solution is:
Step 5: Find .
This value will serve as the initial condition for the next interval.
Step 6: Solve the differential equation for .
In this interval, . Therefore, the differential equation becomes . Multiplying both sides by the integrating factor , we get: Integrating both sides with respect to :
Step 7: Apply the condition to find .
Substituting and into the equation, we get: Therefore, for , the solution is:
Step 8: Find .
Since , we use the solution for :
Common Mistakes & Tips
- Forgetting the Constant of Integration: Always remember to add the constant of integration after performing an indefinite integral.
- Piecewise Functions: When dealing with piecewise functions, solve the differential equation separately for each interval and use the value at the endpoint of one interval as the initial condition for the next.
- Choosing the Correct Solution: Make sure to use the correct solution based on the interval in which you are evaluating the function.
Summary
We solved the given first-order linear differential equation by first finding the integrating factor. Then, we solved the equation separately for the intervals and , using the initial condition and the continuity of the solution at to determine the constants of integration. Finally, we evaluated the solution at .
Final Answer
The final answer is , which corresponds to option (D).