Week 5 Practice Questions

Lectures, code examples, and practice questions for teaching MATLAB for applications in undergraduate chemical engineering classes.

Week 5 Practice Questions

Feel free to copy the code provided into your own MATLAB scripts to check your work! Please remember that although these are answers, there are multiple ways of doing the problem(s). We encourage you to develop your own method of writing and organizing your code!

To download this file as a PDF, go here.

Integration and Differentiation Exercises

Please remember to comment your code and label your graphs!

  1. Define the following function ​ numerically ​, then do the following exercises.
    • Evaluate the function at X = 3
    • Integrate the function with respect to X on the range from [1,10]

Image of formula needed for problem 1

  1. Define the following function ​ symbolically ​, then do the following exercises.

Image of formula needed for problem 2

Iterative Integral Analysis

This is an important function for the project!

  1. Define the following function ​ either ​numerically or symbolically, and find the value at which the lower and the upper integrals have the same value within the bounds. (Make sure your initial guess is NOT the actual answer)

Image of formula needed for problem 3