-find general solution y'+2y=2-e^(-4t), y(0)=1

In summary, when solving an ODE, it is important to take into account the integrating factor, which is written as "e^{2t}".
  • #1
karush
Gold Member
MHB
3,269
5
2000
find the general solution for
$y' + 2y = 2 - {{\bf{e}}^{ - 4t}} \hspace{0.25in}y\left( 0 \right) = 1$
find
$\displaystyle u(x)=\exp \left(\int 2 \, dt\right) =e^{2t}$
$e^{2t}y' + 2\frac{e^{2t}}{2}y =2 e^{2t} - {{\bf{e}}^{ - 4t}}e^{2t}$
$(e^{2t}y)'=2e^{2t}-e^{-2t}$
i continued but didn't get the answer which is

$y\left( t \right) = 1 + \frac{1}{2}{{\bf{e}}^{ - 4t}} - \frac{1}{2}{{\bf{e}}^{ - 2t}}$
 
Last edited:
Physics news on Phys.org
  • #2
Why did you divide the integrating factor by 2 in the second term on the LHS?
 
  • #3
karush said:
isn't that the dt

I'm not sure what you mean, but you simply want to multiply the given ODE by the integrating factor to get:

\(\displaystyle e^{2t}y'+2e^{2t}y=2e^{2t}-e^{-2t}\)

And then, this may be written as follows:

\(\displaystyle \frac{d}{dt}\left(e^{2t}y\right)=2e^{2t}-e^{-2t}\)

And now you're ready to integrate both sides. ;)
 
  • #4
MarkFL said:
I'm not sure what you mean, but you simply want to multiply the given ODE by the integrating factor to get:

\(\displaystyle e^{2t}y'+2e^{2t}y=2e^{2t}-e^{-2t}\)

And then, this may be written as follows:

\(\displaystyle \frac{d}{dt}\left(e^{2t}y\right)=2e^{2t}-e^{-2t}\)

And now you're ready to integrate both sides. ;)

$$e^{2t}y=\int 2e^{2t}-e^{-2} \, dt=\frac{e^{-2t}}{2}+e^{2t}+c$$
hopefully
 
  • #5
Looks good so far, with the exception of a minor typo where the \(t\) in the exponent of one of the terms in the integrand was omitted.
 
  • #6
$\displaystyle e^{2t}y=\int 2e^{2t}-e^{-2t} \, dt=\frac{e^{-2t}}{2}+e^{2t}+c$
dividing thru by $e^{2t}$
$y=\frac{1}{2}e^{-4t}+1+ce^{-2t}$
applying $y(0)=1$
$\frac{1}{2}+1+c=1$
$c=-\frac{1}{2}$
really ?
 
  • #7
Looks correct to me. :)
 
  • #8
the formal view...
$y(t)=1+\frac{1}{2}{{\bf{e}}^{- 4t}}-\frac{1}{2}{{\bf{e}}^{- 2t}}$

want to continue this applying eulers method
but feel i should start a new post.

lots of advice on the internet but too many sacred cows
better just do step by step here
 

1. What is the general solution to the differential equation y'+2y=2-e^(-4t)?

The general solution to this differential equation is y(t) = -1/2 + C*e^(-2t) + 1/2*e^(-4t), where C is a constant.

2. How do you solve the initial value problem y'+2y=2-e^(-4t), y(0)=1?

To solve this initial value problem, we first find the general solution as mentioned in the previous answer. Then, we substitute the initial condition y(0)=1 into the general solution to find the value of C. This gives us the particular solution y(t) = 1/2 + 1/2*e^(-2t) + 1/2*e^(-4t).

3. What is the meaning of the initial condition y(0)=1 in this differential equation?

The initial condition y(0)=1 represents the value of the function y at the initial time t=0. It is used to find the particular solution to the differential equation.

4. Can this differential equation have more than one solution?

Yes, this differential equation can have infinitely many solutions. This is because the general solution contains a constant C, which can take on any real value, resulting in a different solution for each value of C.

5. How can I check if my solution to this differential equation is correct?

To check if your solution is correct, you can substitute it into the original differential equation and see if it satisfies the equation. You can also check if it satisfies the initial condition given in the problem. Another way is to graph both the original differential equation and your solution and see if they match.

Similar threads

  • Differential Equations
Replies
4
Views
3K
  • Differential Equations
Replies
2
Views
927
  • Differential Equations
Replies
3
Views
921
  • Differential Equations
Replies
9
Views
4K
  • Differential Equations
Replies
2
Views
2K
Replies
2
Views
1K
  • Differential Equations
Replies
5
Views
4K
  • Differential Equations
Replies
5
Views
2K
Replies
1
Views
2K
  • Differential Equations
Replies
3
Views
3K
Back
Top