Writing a Simple Differential Equation

In summary, the rate of change of the drug in the bloodstream is 500 - 0.4/t which is proportional to the total amount in the bloodstream.
  • #1
icefall5
19
0

Homework Statement


A certain drug is being administered intravenously to a hospital patient. Fluid containing
5 mg/cm3 of the drug enters the patient’s bloodstream at a rate of 100 cm3/h. The drug
is absorbed by body tissues or otherwise leaves the bloodstream at a rate proportional to
the amount present, with a rate constant of 0.4 (h)−1.

(a) Assuming that the drug is always uniformly distributed throughout the bloodstream,
write a differential equation for the amount of the drug that is present in the bloodstream
at any time.

(b) How much of the drug is present in the bloodstream after a long time?

Homework Equations


N/A

The Attempt at a Solution


To find the rate of change, I know I have to use the amount in minus the amount out. The amount in seems to be 500t, and the amount out is 0.4/t (t is hours), but this gives me the formula [itex]y'=500t-\frac{0.4}{t}[/itex], which seems way too simple. The solved equation is [itex]y=250t^{2} - 0.4ln(t)[/itex]. This would also mean, for part b, that the patient has ∞ mg/cm3 in her blood at time t=0. I'm sure I'm just being stupid and missing something simple here, but what am I doing wrong?
 
Last edited:
Physics news on Phys.org
  • #2
The rate of change is not the amount in minus the amount out, it is the rate in minus the rate out.

What's the rate in? Is it constant?
What's the rate out? Is it constant?
 
  • #3
1MileCrash said:
The rate of change is not the amount in minus the amount out, it is the rate in minus the rate out.

What's the rate in? Is it constant?
What's the rate out? Is it constant?
The rate in is constant at 500 mg/cm3/h, but the rate out varies based on the total amount in the bloodstream. So, in the differential equation, should it therefore be 500 instead of 500t? I think the [itex]\frac{-0.4}{t}[/itex] is still correct. Is that the case? My formula would, therefore, become [itex]\frac{dr}{dt} = 500 - \frac{0.4}{t}r[/itex].
 
  • #4
You're correct in saying that the first term is a constant 500, and not 500t.

Your second term is still incorrect. You are told that this rate varies proportionally to the amount of the drug currently in the blood stream. What you have written says that it varies proportionally with time t, which is incorrect.

If y' is the rate of the drug entering the blood stream, what represents the amount of the drug currently in the blood stream?
 
  • #5
If r' (or [itex]\frac{dr}{dt}[/itex]) is the rate of change of the drug in the blood stream, wouldn't r then be the total amount currently in the blood stream? In response to your question, if y' is the rate at which the drug is entering the blood stream, the total amount would be y - (rate at which it is leaving), wouldn't it?

EDIT: I was going off of the initial question, where it says 0.4 (h)-1. I assumed (h) meant hours. Is that incorrect? Based on what you said that I have wrong, is the correct answer [itex]\frac{dr}{dt} = 500 - \frac{0.4}{r}[/itex]? That would make the second term proportional to the total amount in the bloodstream, rather than the time.
 
Last edited:
  • #6
icefall5 said:
If r' (or [itex]\frac{dr}{dt}[/itex]) is the rate of change of the drug in the blood stream, wouldn't r then be the total amount currently in the blood stream?

Absolutely.


In response to your question, if y' is the rate at which the drug is entering the blood stream, the total amount would be y - (rate at which it is leaving), wouldn't it?

No, by y' I mean the total rate it is entering the blood stream. (or if it makes more sense, the total rate of change of drug amount.)

Your quote above answers the question as I intended.

If y' is the rate of change of the drug in the blood stream, y is the total amount currently in the blood stream.

So, do you think you can write the DE, knowing that?
 
  • #7
icefall5 said:
EDIT: I was going off of the initial question, where it says 0.4 (h)-1. I assumed (h) meant hours. Is that incorrect? Based on what you said that I have wrong, is the correct answer [itex]\frac{dr}{dt} = 500 - \frac{0.4}{r}[/itex]? That would make the second term proportional to the total amount in the bloodstream, rather than the time.

Calling r the total amount in the blood stream - you're on the right track.

However, try reading the proportionality constant again. The units of this constant is [itex]h^{-1}[/itex] or inverse hours. There is no reason to put r in the denominator. (h^-1) is a unit.

If you include all your units in the differential equation, you will see why this must be the case.
 
Last edited:
  • #8
Okay, that makes sense. So the final equation should therefore be [itex]\frac{dr}{dt} = 500 - 0.4r[/itex]? It's been 3 years since I took calc I, and I just discovered that I don't remember how to do integrals. I have the equation up to [itex]\int \frac{1}{500-0.4r}dr =\int dt[/itex], but I can't get any further (hence the long reply time).

Thank you so much for your help, I really appreciate it!
 
  • #9
DE looks good now, and you've separated the variables for an equation that can be solved directly by integration.

For the right side, the antiderivative of 1 wrt t is of course t. Do you remember that from Calc I?

For the left hand side, it is solvable by making the substitution u = 500-0.4r. Do you remember U substitution?
 
  • #10
1MileCrash said:
DE looks good now, and you've separated the variables for an equation that can be solved directly by integration.

For the right side, the antiderivative of 1 wrt t is of course t. Do you remember that from Calc I?

For the left hand side, it is solvable by making the substitution u = 500-0.4r. Do you remember U substitution?

I remember the right side, yes, it's the u-substitution that I can't remember. I've been looking some stuff up about it to try to jog my memory; we'll see if I get anywhere.
 
  • #11
Okay, so I think I remember now. If u = 500 - 0.4r, then the following would be my work.

[itex]u=500-0.4r[/itex]

[itex]du=dr[/itex]

[itex]\int \frac{1}{u}du = ln (u) = ln (500 - 0.4r)[/itex]

This isn't correct though, at least according to Wolfram|Alpha.
 
  • #12
du isn't equal to dr.

If [itex]u = 500 - 0.4r[/itex] what is [itex]\frac{du}{dr}[/itex]?

After you know du/dr, find du by multiplying both sides of that equation by dr.
 
  • #13
Ah, I misremembered (if that's a word) how to do it. I've think I've got it now!

[itex]u = 500 - 0.4r[/itex]

[itex]du = -0.4r dr[/itex]

[itex]-2.5 du = 1 dr[/itex]

[itex]\int \frac{-2.5}{u}du[/itex]

[itex]-2.5 ln (u) + C = t[/itex] ( = t pulled from earlier)

[itex]-2.5 ln(500 - 0.4r) = t[/itex]

Then I have to solve that for r, which gives me [itex]r = -\frac{e^{\frac{t}{2.5}}-500}{0.4}[/itex]. I'm not sure now what to do for part b. Graphing this gives me a straight line. Did I miss something with the constants somewhere?
 
  • #14
You want to know how much of the drug is present after a long time, so just take the limit of r as t - > infinity (note that the equation in your link is correct, the exponent should be negative, the one you typed is positive)
 
  • #15
So then the answer is 1250 mg/cm3. Thank you so much for all of your help, I really, really appreciate it!
 
  • #16
No problem, glad you got it!
 

1. What is a differential equation?

A differential equation is a mathematical equation that relates a function to its derivatives. It is used to model real-world phenomena that involve rates of change, such as growth, decay, and motion.

2. How do you write a simple differential equation?

A simple differential equation is typically written in the form y' = f(x,y), where y' represents the derivative of the function y with respect to x and f(x,y) is an expression involving x and y. The equation can also be written in the form dy/dx = f(x,y).

3. What are the different types of differential equations?

There are several types of differential equations, including ordinary differential equations (ODEs) which involve a single independent variable, and partial differential equations (PDEs) which involve multiple independent variables. ODEs can be further classified as first order or higher order, and linear or nonlinear.

4. What is the purpose of solving a differential equation?

Solving a differential equation allows us to find the function y(x) that satisfies the equation. This can help us understand the behavior of a system over time and make predictions about future values. Differential equations are also used in many fields of science and engineering to model and analyze complex systems.

5. How do you solve a simple differential equation?

The process of solving a differential equation involves finding a function that satisfies the equation, typically by using integration techniques. The solution may also involve finding initial conditions, or values of the function and its derivatives at a specific point. There are various methods for solving differential equations, depending on the type and complexity of the equation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
9K
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
4K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
2K
  • Biology and Chemistry Homework Help
Replies
2
Views
1K
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Back
Top