Ps3 | Physical chemistry homework help

  1. A 3-point stencil for derivatives by MATLAB. Let’s say we wanted to develop a 3-point stencil for calculating a derivative:

𝑓(π‘₯)β€² = π‘Ž βˆ™ 𝑓(π‘₯ βˆ’ β„Ž) + 𝑏 βˆ™ 𝑓(π‘₯) + 𝑐 βˆ™ 𝑓(π‘₯ + β„Ž) and a double derivative: 𝑓(π‘₯)β€²β€² = π‘Ž βˆ™ 𝑓(π‘₯ βˆ’ β„Ž) + 𝑏 βˆ™ 𝑓(π‘₯) + 𝑐 βˆ™ 𝑓(π‘₯ + β„Ž)

where the various points are defined as:

π‘Ž βˆ™ 𝑓(π‘₯ βˆ’ β„Ž) = π‘Ž βˆ™ 𝑓(π‘₯) βˆ’ π‘Ž βˆ™ β„Ž 2 βˆ™ 𝑓(π‘₯)β€² + π‘Ž βˆ™ β„Ž2 2 βˆ™ 𝑓(π‘₯)β€²β€² 𝑏 βˆ™ 𝑓(π‘₯) = 𝑏 βˆ™ 𝑓(π‘₯) 𝑐 βˆ™ 𝑓(π‘₯ + β„Ž) = 𝑐 βˆ™ 𝑓(π‘₯) + 𝑐 βˆ™ β„Ž 2 βˆ™ 𝑓(π‘₯)β€² + 𝑐 βˆ™ β„Ž2 2 βˆ™ 𝑓(π‘₯)β€²β€² Consequently, one would find that, for the derivative 𝑓(π‘₯)β€² it must be true that: π‘Ž + 𝑏 + 𝑐 = 0 βˆ’π‘Ž βˆ™ β„Ž 2 + 𝑐 βˆ™ β„Ž 2 = 1 π‘Ž βˆ™ β„Ž2 2 + 𝑐 βˆ™ β„Ž2 2 = 0 You can solve this using the following Matlab code: syms a b c h; eqn1 = a + b + c == 0; eqn2 = -a*h/2+c*h/2 == 1; eqn3 = a*h^2/2 + c*h^2/2 == 0; [A,B] = equationsToMatrix([eqn1, eqn2, eqn3], [a, b, c]); der = linsolve(A,B) der = -1/h 1/h Thus: 𝑓(π‘₯)β€² = βˆ’ 1 β„Ž 𝑓(π‘₯ βˆ’ β„Ž) + β„Ž 𝑓(π‘₯ + β„Ž) Please determine the coefficients a,b, and c for the double derivative 𝑓(π‘₯)β€²β€² using Matlab by modifying the code above. (10 pts)

3,070views
4.3
(322 ratings)

Related Study Guides

Chemistry - physical chemistry assignment 1 | Physical chemistry homework help

1. For this question you are going to solve this identity that is very frequently encountered in PChem II: ∫ x2eβˆ’ax 2 βˆ™ βˆ‚x c 0 = βˆšΟ€ 4 βˆ™ a3 2⁄ β‹… erf(√a βˆ™ c) βˆ’ c 2a eβˆ’aβˆ™c 2 where β€œerf” is the β€œerror fun...

chemistryinformation-systems

PHY102 Week 1 | Computational Physics in Physics - Grand canyon university

Week 1 assignment Application Paper Task 1 Review the "Application Paper Guidelines." For task 1, identify an application of one or more concepts from this course. A list of possible topics has been p...

chemistryphysics

Chemistry - physical chemistry assignment 1 | Physical chemistry homework help

3. You have yet to turn in your HW1 makup. You might want to do so, since this question is predicated on it. In that problem set, in question 1, you were asked to fit data to an exponential decay: Amp...

chemistryphysics

CHEM1305 | General Chemistry in Chemistry - Houston Community College

Question 7Use the phase diagram below to answer what physical state H2O is at 99 Β°C and 500 kPa. A graph is shown where the x-axis is labeled β€œTemperature in degrees Celsius” and the y-axis is labeled...

chemistryinformation-systems

CHEM1305 | General Chemistry in Chemistry - Houston Community College

CHEM1305 Introductory Chemistry Chapter 1 Discussion Chemistry in Our Everyday Lives In this discussion, you will give an example of an item used in our everyday world that was made with chemistry (hi...

chemistryinformation-systems

Help needed | Criminal homework help

5. Discuss the process by which you moved from the abstract (what does violence really mean, man? What is post-traumatic stress), through conceptualization and operationalization to the final point of...

information-systemsnursing

Science lab concentration | Chemistry homework help

5. Find the formula mass (FM) of lead chromate, PbCrO4. Use the periodic table in Appendix A of this lab Concentration PHSC 1021 online 3 | P a g e to look up the atomic masses of the elements. 323.2...

chemistryhuman-resources

Can this be done in 2 hours? | Chemistry homework help

3. Dilutions a. Describe how you would prepare 1.0 L of a 0.10 M solution of sulfuric acid from a 3.0 M solution of sulfuric acid. Answer: Calculate the volume of 3.0 M sulfuric acid needed to prepare...

chemistryinformation-systems

Need Help With A Similar Question?

Our experts deliver perfect solutions with guaranteed A+ grades

A+
Student Grade
98%
Success Rate
12h
Delivery Time
Join 1,000+ students who got their perfect solutions
Rated 4.9/5 by satisfied students

Need Help With This Question?

Academic Expert

Subject Matter Specialist

98%
Success Rate
24/7
Support

Why Students Trust Us

  • PhD-Level Expertise
  • Original Work Guarantee
  • Better Grade or Free

"Got an A+ on my assignment. Exactly what I needed!"

β€” Recent Student