There are two functions and . The first function is linear , where is fixed and currently unknown number. The second one is .
If the area enclosed by graphs of and equals 377 , calculate to 3 decimal places.
Notes:
Link for questions here .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The function f ( x ) generally lies above g ( x ) , so the function we would integrate to get the area is:
f ( x ) − g ( x ) = 2 x + n − 2 e x − 2 e − x
Anti-differentiation yields a function which we can evaluate at the end points to get the area.
z ( x ) = x 2 + n x − 2 e x + 2 e − x + C
But now we face the conundrum of finding the endpoints and making the whole thing work. This is where the computational aspect comes in. Let's define three unknowns: the left x intersection coordinate ( x i ) , the right x intersection coordinate ( x f ) , and the parameter n .
The area condition gives us the following non-linear equation (call it f 1 ):
f 1 = x f 2 + n x f − 2 e x f + 2 e − x f − x i 2 − n x i + 2 e x i − 2 e − x i − 3 7 7 = 0
The intersection conditions give us two more non-linear equations:
f 2 = 2 x i + n − 2 e x i − 2 e − x i = 0 f 3 = 2 x f + n − 2 e x f − 2 e − x f = 0
We have a non-linear system of three equations and three unknowns. My favorite method for this kind of thing is the multivariate Newton-Raphson iterative method. First we form a Jacobian matrix, which is a 3x3 matrix of partial derivatives of the three functions. For example, the top left entry is the partial derivative of f 1 with respect to x i and the bottom right entry is the partial derivative of f 3 with respect to n . The chosen order for the variables is ( x i , x f , n ) .
Then, we iterate as shown in the bottom of the capture. The k subscript denotes the present iteration being solved for, and the ( k − 1 ) subscript denotes history quantities. The right side consists of the (Jacobian matrix from the previous iteration multiplied by the old vector of unknowns) minus (a vector of the old function values). The right side consists of the old Jacobian multiplied by the newest iteration of the variables. We can pre-multiply the right side by the inverse of the old Jacobian to find the newly updated set of variables. I iterated 10,000 times to be safe, but it actually converges much, much faster than that.
The end result is ( x i , x f , n ) ≈ ( − 4 . 4 4 7 , 4 . 8 0 8 , 5 1 . 6 0 2 ) . Python code below: