What is the area under the curve y=cosx−sinx+2?
Question
Given the curve y=cosx−sinx+2 find in terms of a an expression for the area A enclosed between the axes, the ordinate a(>0) and this curve. Verify that when a=1.5, A=3.07 approximately.
It is required to find the value of a for which A=3. Taking 1.5 as a first approximation to a, find a second approximation, giving three significant figures in your answer.
Solution
The ordinate a means the line x=a. Our curve lies entirely above the x-axis. It is something like this.
To calculate the area, we integrate:
A=∫0acosx−sinx+2dx=[sinx+cosx+2x]0a=sina+cosa+2a−1.
Substituting a=1.5 gives A=3.0682...≈3.07 as required.
So we need to find an approximate solution to 3=sina+cosa+2a−1 that is better than a=1.5.
There are a number of methods we could use here; decimal search, binary search, linear interpolation, the rearrangement method or simply zooming in with graphing software.
We will use the Newton-Raphson method. This says that given a guess x0 at the root α (a solution to f(x)=0), then as long as x0 is reasonably close to α, a better approximation to α is x1 where
x1=x0−f′(x0)f(x0).
So our equation is f(x)=0 where f(x)=sinx+cosx+2x−4, which gives f′(x)=cosx−sinx+2.
Thus x1=1.5−cos1.5−sin1.5+2sin1.5+cos1.5+3−4=1.4264...
So we have a better approximation to a than 1.5, namely 1.43 (3sf).
Check – sin1.43+cos1.43+2×1.43−1=2.99 (3sf).