question archive Engineering Applied Exercises #1 and #2, we learned that there are many engineering applications in which we need to take the derivative of a function that is too complex to be expressed as a conventional mathematical expression

Engineering Applied Exercises #1 and #2, we learned that there are many engineering applications in which we need to take the derivative of a function that is too complex to be expressed as a conventional mathematical expression

Subject:MathPrice: Bought3

Engineering Applied Exercises #1 and #2, we learned that there are many engineering applications in which we need to take the derivative of a function that is too complex to be expressed as a conventional mathematical expression.

For example, aerospace engineers must simulate the structural forces on a rocket booster passing through max-Q (the point of maximum aerodynamic pressure); and architects must model the effects of seismic stress on their buildings and ensure they'll remain intact during an earthquake. In each case, the aerodynamic and seismic forces would simply be too complex and unpredictable to be written as polynomial, exponential, logarithmic, or trigonometric functions. 

Fortunately, these dynamic situations can each be simulated using a branch of applied mathematics known as "finite difference methods". 

For example, let's say we're simulating the flow of air over the wing of a new airliner; the aircraft is "embedded" in a three-dimensional "mesh", and the aerodynamic forces are calculated at each "node" point where the mesh lines intersect.  

 

 

But the formulas we used in MTH220 only applied to functions of a single variable x.  Is it possible to use finite differences to estimate the partial derivatives of a function of the two variables x and y?

Let's start by imagining a uniform two-dimensional mesh of size h:

 

Thus,

x i + 1 = x i + h

x i − 1 = x i − h

y j + 1 = y j + h

y j − 1 = y j − h

Knowing the value of a two-dimensional function f = f ( x , y )

  at each node in the mesh, your objective is to calculate the partial derivatives ∂ f d x

 

 and ∂ f ∂ y

 

 at node ( x i , y j )

  

[Note that, in this example, the mesh sizes in x and y are identical (h); strictly speaking, this need not be true. In some applications, we may need more resolution along the x- or y-axis; we could then use separate mesh sizes hx and hy.]

By definition, the partial derivative of a function f ( x , y )

  with respect to x is

∂ f ∂ x = L i m h ? 0 f ( x i + h , y j ) − f ( x i , y j ) h

and the partial derivative with respect to y is

∂ f ∂ y = L i m h ? 0 f ( x i , y j + h ) − f ( x i , y j ) h

If we applied these formula to our grid values, we would get the finite difference expressions

∂ f d x ( x i , y j ) ≅ f ( x i + 1 , y j ) − f ( x i , y j ) h

∂ f d y ( x i , y j ) ≅ f ( x i , y j + 1 ) − f ( x i , y j ) h

Note that these are approximations to the values of the partial derivatives, since we're not taking the limit as h goes to zero; but as h becomes smaller, the approximations should improve.  

 

With this background, here's your assignment:

Note: To avoid round-off error, retain at least six decimal places in all of your calculations.

  • Assume the function f is defined as f(x, y) = 3 tan x cos y 
  • Use differentiation rules to find the exact partial derivatives ∂ f ∂ x
  •  
  •  and ∂ f ∂ y
  • , and evaluate those exact partial derivatives at (1.56, -2.1).  
  • Use the finite difference formulas to estimate∂ f ∂ x
  •  
  •  and ∂ f ∂ y
  •  
  • at (1.56, -2.1) for three different values of the mesh size
  • h = 0.01
  • h = 0.001
  • h = 0.0001
  • Use your calculated values to fill in this table:

Estimated partial derivatives using finite difference formulas:hfinite difference approx. to ∂ f ∂ x

exact∂ f ∂ x

finite difference approx. to ∂ f ∂ y

exact∂ f ∂ y

0.010.0010.0001

  • Answer the following questions:
  • For which partial derivative (∂ f ∂ x
  •  
  •  or ∂ f ∂ y
  • ) is the finite difference approximation consistently more accurate?
  • Why do you think the finite difference approximation for the other partial derivative is consistently less accurate? (Hint: What happens to the tan x function near x = 1.56?). Under what real-world conditions might we see such poor approximations?

Upload your results using the blue "Submit Assignment" button at the top of the page.  Be sure to show all of your work in making these calculations.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE