Understanding Initial Value Problems: Solving for y in y' = y-5 with y(0) = y0

In summary, the conversation discusses the process of finding the solution to the given differential equation and initial condition. By integrating and using the given initial condition, it is determined that the solution is y(t) = 5 + (y_0 - 5)e^t, where y_0 represents the initial condition. The conversation also mentions a previous attempt at solving the problem, which did not result in the correct answer.
  • #1
karush
Gold Member
MHB
3,269
5
$\begin{align*}\displaystyle
y'&=y-5\quad y(0)=y_0\tag{given}\\
y'-y&=-5\\
u(x)&=\exp\int-1\, dx = e^{-t}\\
(e^{-t}y)&=-5e^{-t}\\
e^{-t}y&=-5\int e^{-t} dt = -5e^{-t}+c\\
&y=-5\frac{e^{-t}}{e^{-t}}+\frac{c}{e^{-t}}\\
y&=\color{red}{5+(y_0-5)e^t}
\end{align*}$
this is similar to one I posted before but can't seem to get the book answer (red)
the $y_0$ is ?
 
Physics news on Phys.org
  • #2
karush said:
$\begin{align*}\displaystyle
y'&=y-5\quad y(0)=y_0\tag{given}\\
y'-y&=-5\\
u(x)&=\exp\int-1\, dx = e^{-t}\\
(e^{-t}y)&=-5e^{-t}\\
e^{-t}y&=-5\int e^{-t} dt = -5e^{-t}+c\\
&y=-5\frac{e^{-t}}{e^{-t}}+\frac{c}{e^{-t}}\\
y&=\color{red}{5+(y_0-5)e^t}
\end{align*}$
this is similar to one I posted before but can't seem to get the book answer (red)
the $y_0$ is ?

Note that:

\(\displaystyle -5\int e^{-u}\,du=5e^{-u}+C\)

And so after integrating, you should have:

\(\displaystyle e^{-t}y=5e^{-t}+C\)

Hence:

\(\displaystyle y(t)=5+Ce^{t}\)

Now, we are given:

\(\displaystyle y(0)=5+C=y_0\implies C=y_0-5\)

And so:

\(\displaystyle y(t)=5+(y_0-5)e^{t}\)

Does that make sense?
 
  • #3
Ok

I had the C thing not happeningI noticed we get a lot of views on these!
 

1. What is a -1.2.2a initial value problem?

A -1.2.2a initial value problem is a type of mathematical problem that involves finding a solution to a differential equation with a given set of initial conditions. This type of problem is commonly used in various fields of science and engineering to model real-world situations.

2. How is a -1.2.2a initial value problem different from other types of initial value problems?

The -1.2.2a notation indicates that the problem involves a second-order differential equation with two initial conditions. This distinguishes it from other types of initial value problems, which may involve different equations and/or a different number of initial conditions.

3. What are some examples of problems that can be modeled using a -1.2.2a initial value problem?

-1.2.2a initial value problems can be used to model a variety of physical systems, such as pendulums, springs, and electric circuits. They can also be used in population dynamics, chemical reactions, and other biological and ecological processes.

4. What methods are commonly used to solve -1.2.2a initial value problems?

There are several methods that can be used to solve -1.2.2a initial value problems, including analytical methods such as separation of variables and integration, as well as numerical methods such as Euler's method and Runge-Kutta methods. The most appropriate method will depend on the specific problem at hand.

5. What are the applications of solving a -1.2.2a initial value problem?

Solving -1.2.2a initial value problems has many practical applications in science and engineering. It can be used to predict the behavior of complex systems, make informed decisions in engineering design, and optimize processes in various fields. It also has applications in computer graphics and physics simulations.

Similar threads

  • Differential Equations
Replies
6
Views
889
  • Differential Equations
Replies
7
Views
2K
  • Differential Equations
Replies
5
Views
2K
Replies
7
Views
2K
  • Differential Equations
Replies
7
Views
2K
  • Differential Equations
Replies
5
Views
913
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
1
Views
753
  • Differential Equations
Replies
16
Views
894
  • Differential Equations
Replies
3
Views
2K
Back
Top