Can you find a continuous solution to this differential equation?

  • Thread starter Thread starter Chris L T521
  • Start date Start date
Click For Summary
The discussion centers on finding a continuous solution to the differential equation dy/dx + 2y = f(x), where f(x) is defined piecewise. Participants engaged in solving the problem, with Sudharaka and Deveno providing correct answers. MarkFL contributed a mostly correct solution but overlooked some details. The thread highlights the collaborative effort in tackling the differential equation and sharing insights. Overall, the problem showcases the application of differential equations in mathematical analysis.
Chris L T521
Gold Member
MHB
Messages
913
Reaction score
0
Thanks to those who participated in last week's POTW! Here's this week's problem!

-----

Problem: Find a continuous solution to the following differential equation:

\[\frac{dy}{dx}+2y=f(x);\qquad f(x)=\begin{cases}1, & 0\leq x\leq 3\\ 0, & x>3\end{cases}\]

-----

 
Physics news on Phys.org
This week's question was correctly answered by Sudharaka and Deveno (MarkFL gets honorable mention - most of his solution was correct, but missed a thing or two). You can find Sudharaka's solution below.

When \(0\leq x\leq 3\) we have,

\[\frac{dy}{dx}+2y=1\]

\[\Rightarrow y_1 (x)=Ae^{-2x}+\frac{1}{2}\mbox{ where }A\mbox{ is an arbitrary constant.}\]

When \(x>3\) we have,

\[\frac{dy}{dx}+2y=0\]

\[\Rightarrow y_2 (x)=Be^{-2x}\mbox{ where }B\mbox{ is an arbitrary constant.}\]

Since the solution should be a continuous function,

\[y_1 (3)=\lim_{x\rightarrow 3^+}y_2 (x)\]

\[\Rightarrow y_1 (3)=y_2 (3)\]

\[\Rightarrow B=A+\frac{e^6}{2}\]

Therefore the solution for the differential equation is,

\[y(x)=\begin{cases}Ae^{-2x}+\frac{1}{2}&\mbox{ when } 0\leq x\leq 3\\Ae^{-2x}+\frac{e^{-2x+6}}{2} &\mbox{ when } x>3\end{cases}\]
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K