Numerical analysis w/euler's method

solowa4
Messages
3
Reaction score
0
The amount of a uniform distributed radioactive contaminant contained in a closed reactor is measured by its concentration (c) (Becquerel/liter or Bq/L). The contaminant decreases at a decay rate proportional to its concentration; that is

Decay rate(dc/dt)= -kc
Where (dc/dt) is the change in mass, (k) is a constant with units of (day^-1), and (-kc) is the decrease by decay.

a-use euler's method to solve this eq from t=0 to 1 day with k=0.2 day^-1. Employ a step size of Delta t = 0.1 day. The concentration at t=0 is 10 Bq/L.

b-plot the solution on a semilog graph (ie (ln c) versus (t) and determine th slope.

I am at a loss at where to begin or accomplish this.
 
Physics news on Phys.org
Welcome to PF!

Well, the first step is understanding how Euler's Method works. What do you know about it?
 
Not much as I just started the class :( That's why it is giving me difficult time
 
I have already looked at this and other sources with no help to my problem.
Thanks for your help
 
solowa4 said:
I have already looked at this and other sources with no help to my problem

Sure it does. It explains the methodology:

y(n+1) = y(n) + h*y'(n)
t(n+1) = t(n) + h

For the Wiki example (i.e. y' = y and h = 1)

t(0) = 0, y(0) = 1, y'(0) = y(0) = 1
t(1) = 0 + 1 = 1, y(1) = y(0) + h*y'(0) = 1 + 1*1 = 2, y'(1) = y(1) = 2
t(2) = 1 + 1 = 2, y(2) = y(1) + h*y'(1) = 2 + 1*2 = 4, y'(2) = y(2) = 4
t(3) = 3 + 1 = 3, y(3) = y(2) + h*y'(2) = 4 + 1*4 = 8, y'(3) = y(3) = 8

In your case, you know that t(0) = 0, y(0) = 10, h = 0.1, and y' = -ky with known value for k.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top