Question: Do in Python. Compute the second derivative d 2 u d x 2 of the function u = s i n ( x ) in
Do in Python. Compute the second derivative of the function in the domain Doxin for and
using the centered difference scheme:
~~
Plot both the discretized derivatives and the analytic derivative on a single graph. Do not forget to label the axes and the
legend explaining what each line is
Then, compare the results with the exact solution by calculating the maximum error ie the maximum of the absolute
error and answer How does the maximum error change with the grid spacing Plot the maximum error axis as a
function of the grid spacing axis
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
