Question: Problem 2 Consider the following reaction kinetics d c ( d ) t = - c 2 , with c ( 0 ) = 1

Problem 2
Consider the following reaction kinetics
dc(d)t=-c2,
with c(0)=1 and =0.25.
Show (by hand) the approximation to the solution to (3) for the first two timesteps using t=1
using
(a)(20 pts) Forward Euler. Recall that the forward Euler method is given by n+1=n+
tR(tn,n).
(b)(20 pts) Backward Euler. Recall that the Backward-Euler method is given by n+1=n+
tR(tn+1,n+1). You must derive and typeset the residual function, its derivative, and what
Newton's method looks like for this method. Take two Newton iterations per timestep. Set
your initial guess for the Newton iterations as the final value from the previous timestep. You
can simplify the Newton iteration by renaming the variables which you are solving for, i.e.
c1x etc...
(c) pts) Crank-Nicolson. The Crank-Nicolson method is given by the formula n+1=n+
12t[R(tn,n)+R(tn+1,n+1)]. You must derive and typeset the residual function, its deriva-
tive, and what Newton's method looks like for this method. Take two Newton iterations per
timestep. Set your initial guess for the Newton iterations as the final value from the previous
timestep. You can simplify the Newton iteration by renaming the variables which you are
solving for, i.e.c1x etc...
Problem 2 Consider the following reaction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!