De1.2.1 Solve the following initial value problem

In summary: Does that make sense?In summary, the conversation discusses solving initial value problems and plotting the solutions for various values of y0. It also addresses how the solutions resemble and differ from each other and how to set up the problem in Desmos. The conversation then continues to discuss the use of multiple graphs and the concept of negative time.
  • #1
karush
Gold Member
MHB
3,269
5
$\tiny{de1.2.1}$
$\textsf{ Solve each of the following initial value problems and plot the solutions for several values of $y_0$.}\\$
$\textsf{ Then describe in a few words how the solutions resemble, and differ from, each other.}\\$
$$\begin{align*}\displaystyle
\frac{dy}{dt}&=-y+5, \quad y(0)=y_0\\
y'&=-y+5\\
y'+y&=5\\
u(t)&=\exp\int \, dt = e^t\\
e^ty'+e^ty&=e^t5\\
(e^ty)'&=e^t5\\
e^ty &=5\int e^t dt=5e^t+c\\
y &=5+\frac{c}{e^t}\\
y(0)&=5+c
\end{align*}$$
$\textit{ok not sure where I went off the rails but the book answer is}\\$ $$y=5+(y_0-5)e^{-t}$$
$\textit{also not sure how this would be set up in Desmos}$
 
Physics news on Phys.org
  • #2
You correctly stated:

\(\displaystyle y(0)=5+c\)

You just need to add:

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

And so your solution is:

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

I would use a Desmos slider:

[DESMOS]advanced: {"version":5,"graph":{"squareAxes":false,"viewport":{"xmin":-10,"ymin":-10,"xmax":10,"ymax":10}},"expressions":{"list":[{"type":"expression","id":"graph1","color":"#2d70b3","latex":"y=5+\\left(a-5\\right)e^{-x}","style":"SOLID"},{"type":"expression","id":"2","color":"#388c46","latex":"a=0","hidden":true,"style":"SOLID"}]}}[/DESMOS]

Now, manually move or animate the slider to see how the solution behaves for differing values of the parameter.
 
  • #3
thank you
I got ? on $y_0$ thing

so multiple graphs would just be $y(1) \quad y(2) \cdots$ for $y(a)$ ?
 
  • #4
karush said:
thank you
I got ? on $y_0$ thing

so multiple graphs would just be $y(1) \quad y(2) \cdots$ for $y(a)$ ?

I'm not sure I know what you mean. If you want multiple graphs, you could just define them like this:

[DESMOS]advanced: {"version":5,"graph":{"squareAxes":false,"viewport":{"xmin":-10,"ymin":-10,"xmax":10,"ymax":10}},"expressions":{"list":[{"type":"expression","id":"graph1","color":"#2d70b3","latex":"y=5+\\left(-10-5\\right)e^{-x}","style":"SOLID"},{"type":"expression","id":"2","color":"#388c46","latex":"y=5+\\left(-5-5\\right)e^{-x}","style":"SOLID"},{"type":"expression","id":"3","color":"#fa7e19","latex":"y=5+\\left(0-5\\right)e^{-x}","style":"SOLID"},{"type":"expression","id":"4","color":"#6042a6","latex":"y=5+\\left(5-5\\right)e^{-x}","style":"SOLID"},{"type":"expression","id":"5","color":"#000000","latex":"y=5+\\left(10-5\\right)e^{-x}","style":"SOLID"},{"type":"expression","id":"6","color":"#c74440","latex":"y=5+\\left(15-5\\right)e^{-x}","style":"SOLID"}]}}[/DESMOS]
 
  • #5

Attachments

  • de2..2.1mhb.png
    de2..2.1mhb.png
    8 KB · Views: 87
  • #6
[DESMOS]advanced: {"version":5,"graph":{"xAxisLabel":"t","yAxisLabel":"y","squareAxes":false,"viewport":{"xmin":-10.72837090838311,"ymin":-10.471822929382325,"xmax":10.52162909161689,"ymax":10.778177070617675}},"expressions":{"list":[{"type":"expression","id":"graph1","color":"#2d70b3","latex":"y=5+\\left(0-5\\right)e^{-t}","style":"SOLID"},{"type":"expression","id":"2","color":"#388c46","latex":"y=5+\\left(10-5\\right)e^{-t}","style":"SOLID"},{"type":"expression","id":"3","color":"#fa7e19","latex":"y=5","style":"SOLID"},{"type":"expression","id":"4","color":"#6042a6","latex":"y=5+\\left(-5-5\\right)e^{-t}","style":"SOLID"},{"type":"expression","id":"5","color":"#000000","latex":"y=5+\\left(15-5\\right)e^{-t}","style":"SOLID"}]}}[/DESMOS]

You can use \(t\) as the independent variable, and even label the axis, as you see above.
 
  • #7
Ok.

But is there negative time
Or past time
 
  • #8
karush said:
Ok.

But is there negative time
Or past time

Sure, we can consider time before time \(t=0\), depending on what we're modeling. We can say that time \(t=0\) corresponds to out initial observation of the system, where negative values of \(t\) correspond to times before our observation and positive values of \(t\) correspond to times after the initial observation.
 

Related to De1.2.1 Solve the following initial value problem

1. What is an initial value problem?

An initial value problem is a mathematical problem that involves solving a differential equation with given initial conditions. In other words, it is a mathematical model that describes how a system changes over time, with the starting values of the system given.

2. What is the purpose of solving an initial value problem?

The purpose of solving an initial value problem is to find a function that satisfies both the given differential equation and the initial conditions. This function can then be used to make predictions and analyze the behavior of the system over time.

3. What is the process for solving an initial value problem?

The process for solving an initial value problem involves finding the general solution to the given differential equation, which is an equation that contains one or more arbitrary constants. Then, the initial conditions are used to determine the specific values of these constants, resulting in the particular solution.

4. What are some common techniques for solving initial value problems?

Some common techniques for solving initial value problems include separation of variables, substitution, and using integrating factors. These techniques are based on different mathematical concepts and are used depending on the type of differential equation given.

5. Are there any real-world applications of solving initial value problems?

Yes, there are many real-world applications of solving initial value problems. For example, it can be used to model the growth of a population, the spread of diseases, or the cooling of a hot object. It is also used in physics, engineering, and other scientific fields to study various systems and their behavior over time.

Similar threads

Replies
2
Views
2K
  • Differential Equations
Replies
6
Views
1K
  • Differential Equations
Replies
5
Views
2K
  • Differential Equations
Replies
5
Views
1K
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
7
Views
2K
Replies
7
Views
2K
Replies
3
Views
955
Replies
5
Views
2K
  • Differential Equations
Replies
3
Views
1K
Back
Top