Calculus/Integration

From testwiki
Revision as of 19:28, 21 February 2008 by imported>Zginder (Fundamental Theorem of Calculus)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Definition of the Integral

Figure 1
Figure 2


The rough idea of defining the area under the graph of f is to approximate this area with a finite number of rectangles. Since we can easily work out the area of the rectangles we get an estimate of the area under the graph. If we use a larger number of rectangles we expect a better approximation, and the limit as we approach an infinite number of rectangles will give the exact area.

Suppose first that f is positive and a<b. We pick an integer n and divide the interval [a,b] into n subintervals of equal width (see Figure 2). As the interval [a,b] has width b-a each subinterval has width Δx=ban. We denote the endpoints of the subintervals by x0,x1,,xn so

xi=a+iΔx for i=0,1,,n.
Figure 3

Now for each i=1,,n pick a sample point xi* in the interval [xi1,xi] and consider the rectangle of height f(xi*) and width Δx (see Figure 3). The area of this rectangle is f(xi*)Δx. By adding up the area of all the rectangles for i=1,,n we get that the area S is approximated by

An=f(x1*)Δx+f(x2*)Δx++f(xn*)Δx.

A more convenient way to write this is with the summation notation as

An=i=1nf(xi*)Δx.

For each number n we get a different approximation. As n gets larger the width of the rectangles gets smaller which yields a better approximation (see Figures 4 and 5). In the limit as An as n tends to infinity we get the area of S.


Definition of the Definite Integral Suppose f is a continuous function on [a,b] and Δx=ban. Then the definite integral of f between a and b is abf(x) dx=limnAn=limni=1nf(xi*)Δx.
where xi* are any sample points in the interval [xi1,xi].


It is a fact that if f is continuous on [a,b] then this limit always exists and does not depend on the choice of the points xi*[xi1,xi]. For instance they may be evenly spaced, or distributed ambiguously throughout the interval. The proof of this is technical and is beyond the scope of this section.

Notation When considering the expression abf(x) dx the function f is called the integrand and the interval [a,b] is the interval of integration. Also a is called the lower limit and b the upper limit of integration.

One important feature of this definition is that we also allow functions which take negative values. If f(x)<0 for all x then f(xi*)<0 so f(xi*)Δx<0. So the definite integral of f will be strictly negative. More generally if f takes on both positive an negative values then abf(x)dx will be the area under the positive part of the graph of f minus the area under the graph of the negative part of the graph (see Figure 6). For this reason we say that abf(x)dx is the signed area under the graph.

Figure 6
Figure


The area spanned by f(x)

A geometrical proof that anti-derivative gives the area

Suppose we have an function F(x) which returns the area between x and some unknown point u. (Actually, u is the first number before x which satisfies F(u) = 0, but our solution is independent from u, so we won't bother ourselves with it.) We don't even know if something like F exists or not, but we're going to investigate what clue do we have if it does exists.

We can use F to calculate the area between a and b, for instance, which is obviously F(b)-F(a); F is something general. Now, consider a rather peculiar situation, the area bounded at x and x+Δx, in the limit of Δx0. Of course it can be calculated by using F, but we're looking for another solution this time. As the right border approaches the left one, the shape seems to be an infinitesimal rectangle, with the height of f(x) and width of Δx. So, the area reads:

Infinitesimal area=limΔx0f(x)Δx

Of course, we could use F to calculate this area as well:

Infinitesimal area=limΔx0F(x+Δx)F(x)

By combining these eqautions, we have

limΔx0F(x+Δx)F(x)=limΔx0f(x)Δx

If we divide both sides by Δx, we get

limΔx0F(x+Δx)F(x)Δx=f(x)

which is an interesting result, because the left-hand side is the derivative of F with respect to x. This remarkable result doesn't tell us what F itself is, however it tells us what the derivative of F is, and it is f.


Independence of Variable

It is important to notice that the variable x did not play an important role in the definition of the integral. In fact we can replace it with any other letter, so the following are all equal: abf(x)dx=abf(t)dt=abf(u)du=abf(w)dw. Each of these is the signed area under the graph of f between a and b.

Left and Right Handed Riemann Sums

We could have decided to choose all our sample points xi* to be on the right hand side of the interval [xi1,xi] (see Figure 7). Then xi*=xi for all i and the approximation that we called An for the area becomes

An=i=1nf(xi)Δx.

This is called the right-handed Riemann sum, and the integral is the limit

abf(x) dx=limnAn=limni=1nf(xi)Δx.

Alternatively we could have taken each sample point on the left hand side of the interval. In this case xi*=xi1 (see Figure 8) and the approximation becomes

An=i=1nf(xi1)Δx.

Then the integral of f is

abf(x) dx=limnAn=limni=1nf(xi1)Δx.

The key point is that, as long as f is continuous, these two definitions give the same answer for the integral.

Figure 7
Figure 8

Example 1

In this example we will calculate the area under the curve given by the graph of f(x)=x for x between 0 and 1. First we fix an integer n and divide the interval [0,1] into n subintervals of equal width. So each subinterval has width

Δx=1n.

To calculate the integral we will use the right-handed Riemann Sum. (We could have used the left-handed sum instead, and this would give the same answer in the end). For the right-handed sum the sample points are

xi*=0+iΔx=ini=1,,n

Notice that f(xi*)=xi*=in. Putting this into the formula for the approximation,

An=i=1nf(xi*)Δx=i=1nf(i/n)Δx=i=1nin1n=1n2i=1ni.

Now we use the formula

i=1ni=n(n+1)2

to get

An=1n2n(n+1)2=n(n+1)2n2.

To calculate the integral of f between 0 and 1 we take the limit as n tends to infinity,

01f(x)dx=limnn(n+1)2n2=12.

Example 2

Next we show how to find the integral of the function f(x)=x2 between x=a and x=b. This time the interval [a,b] has width b-a so

Δx=ban.

Once again we will use the right-handed Riemann Sum. So the sample points we choose are

xi*=a+iΔx=a+i(ba)n.

Thus

An =i=1nf(xi*)Δx
=i=1nf(a+(ba)in)Δx
=bani=1n(a+(ba)in)2
=bani=1n(a2+2a(ba)in+(ba)2i2n2)

We have to calculate each piece on the right hand side of this equation. For the first two,

i=1na2=a2i=1n1=na2
i=1n2a(ba)in=2a(ba)ni=1ni=2a(ba)nn(n+1)2.

For the third sum we have to use a formula

i=1ni2=n(n+1)(2n+1)6

to get

i=1n(ba)2i2n2=(ba)2n2n(n+1)(2n+1)6.

Putting this together

An=ban(na2+2a(ba)nn(n+1)2+(ba)2n2n(n+1)(2n+1)6).

Taking the limit as n tend to infinity gives

abx2dx =(ba)(a2+a(ba)+13(ba)2)
=(ba)(a2+aba2+13(b22ab+a2))
=13(ba)(b2+ab+a2)
=13(b3a3).

Basic Properties of the Integral

The Constant Rule

From the definition of the integral we can deduce some basic properties. We suppose that f and g are continuous on [a,b].

Integrating Constants
If c is constant then abcdx=c(ba).

When c>0 and a<b this integral is the area of a rectangle of height c and width b-a which equals c(b-a).

Example

139dx=9(31)=9*2=18.
2611dx=11(6(2))=11*8=88.
2170dx=0*(172)=0.

Constant Rule
abcf(x)dx=cabf(x)dx.

When f is positive, the height of the function cf at a point x is c times the height of the function f. So the area under cf between a and b is c times the area under f. We can also give a proof using the definition of the integral, using the constant rule for limits,

abcf(x)dx=limni=1ncf(xi*)=climni=1nf(xi*)=cabf(x)dx.

Example We saw in the previous section that

01xdx=12.

Using the constant rule we can use this to calculate that

013xdx=301xdx=3.12=32,
017xdx=701xdx=(7).12=72.

Example We saw in the previous section that

abx2dx=13(b3a3). We can use this and the constant rule to calculate that

132x2dx=213x2dx=2.13.(3313)=23(271)=523.

The addition and subtraction rule

Addition and Subtraction Rules of Integration
ab(f(x)+g(x))dx=abf(x)dx+abg(x)dx.
ab(f(x)g(x))dx=abf(x)dxabg(x)dx.

As with the constant rule, the addition rule follows from the addition rule for limits:

ab(f(x)+g(x))dx = limni=1nf(xi*)+g(xi*)
= limni=1nf(xi*)+limni=1ng(xi*)
= abf(x)dx+abg(x)dx.

The subtraction rule can be proved in a similar way.

Example From above 139dx=18 and 132x2dx=523 so

13(2x2+9)dx=132x2dx+139dx=523+18=1063,
13(2x29)dx=132x2dx139dx=52318=23.

Example

024x2+14dx=402x2dx+0214dx=413(2303)+214=323+28=1163.

The Comparison Rule

Comparison Rule

  • Suppose f(x)0 for all x in [a,b]. Then
abf(x)dx0.
  • Suppose f(x)g(x) for all x in [a,b]. Then
abf(x)dxabg(x)dx.
  • Suppose Mf(x)m for all x in [a,b]. Then
M(ba)abf(x)dxm(ba).

If f(x)0 then each of the rectangles in the Riemann sum to calculate the integral of f will be above the y axis, so the area will be non-negative. If f(x)g(x) then f(x)g(x)0 and by linearity of the integral we get the second property. Finally if Mf(x)m then the area under the graph of f will be greater than the area of rectangle with height m and less than the area of the rectangle with height M (see Figure 9). So

M(ba)=abMabf(x)dxabm=m(ba).
Figure 9

Linearity with respect to endpoints

Additivity with respect to endpoints Suppose a<c<b. Then

abf(x)dx=acf(x)dx+cbf(x)dx.

Again suppose that f is positive. Then this property should be interpreted as saying that the area under the graph of f between a and b is the area between a and c plus the area between c and b (see Figure 8)

Figure 8


Extension of Additivity with respect to limits of integration
When a=b we have that Δx=ban=0 so

aaf(x)dx=0.

Also in defining the integral we assumed that a<b. But the definition makes sense even when b<a in which case Δx=1n(ba) so has changed sign. This gives

baf(x)dx=abf(x)dx.

With these definitions,

abf(x)dx=acf(x)dx+cbf(x)dx

whatever the order of a,b,c.

Fundamental Theorem of Calculus

Template:Wikipedia

Statement of the Fundamental Theorem

Suppose that f is continuous on [a,b]. We can define a function F by

F(x)=axf(t) dt for x in [a,b].

Fundamental Theorem of Calculus Part I Suppose f is continuous on [a,b] and F is defined by

F(x)=axf(t) dt.

Then F is differentiable on (a,b) and for all x(a,b),

F(x)=f(x).o


Now recall that F is said to be an antiderivative of f if F(x)=f(x)..

Fundamental Theorem of Calculus Part II Suppose that f is continuous on [a,b] and that F is any antiderivative of f. Then

 abf(x) dx=F(b)F(a).
Figure 1

Note: a minority of mathematicians refer to part one as two and part two as one. All mathematicians refer to what is stated here as part 2 as The Fundamental Theorem of Calculus.

Proofs

Proof of Fundamental Theorem of Calculus Part I

Suppose x is in (a,b). Pick Δx so that x+Δx is also in (a, b). Then

F(x)=axf(t)dt

and

F(x+Δx)=ax+Δxf(t)dt.

Subtracting the two equations gives

F(x+Δx)F(x)=ax+Δxf(t)dtaxf(t)dt.

Now

ax+Δxf(t)dt=axf(t)dt+xx+Δxf(t)dt

so rearranging this we have

F(x+Δx)F(x)=xx+Δxf(t)dt.

According to the mean value theorem for integration, there exists a c in [x, x + Δx] such that

xx+Δxf(t)dt=f(c)Δx.

Notice that c depends on Δx. Anyway what we have shown is that

F(x+Δx)F(x)=f(c)Δx,

and dividing both sides by Δx gives

F(x+Δx)F(x)Δx=f(c).

Take the limit as Δx0 we get the definition of the derivative of F at x so we have

F(x)=limΔx0f(c)..

To find the other limit, we will use the squeeze theorem. The number c is in the interval [x, x + Δx], so xcx + Δx. Also, limΔx0x=x and limΔx0x+Δx=x. Therefore, according to the squeeze theorem,

limΔx0c=x.

As f is continuous we have

F(x)=limΔx0f(c)=f(limΔx0c)=f(x)

which completes the proof.

Proof of Fundamental Theorem of Calculus Part II

Define P(x)=axf(t)dt. Then by the Fundamental Theorem of Calculus part I we know that P is differentiable on (a,b) and for all x(a,b)

P(x)=f(x).

So P is an antiderivative of f. Now we were assuming that F was also an antiderivative so for all x(a,b),

P(x)=F(x)=f(x).

A consequence of the Mean Value Theorem is that this implies there is a constant C such that for all x(a,b),

P(x)=F(x)+C.,

and as P and F are continuous we see this holds when x=a and when x=b as well. Since we know that P(a)=0 we can put x=a into the equation to get 0=F(a) +C so C=-F(a). And putting x=b gives

abf(t)dx=P(b)=F(b)+C=F(b)F(a).

Integration of Polynomials

Using the power rule for differentiation we can find a formula for the integal of a power using the Fundamental Theorem of Calculus. Let f(x)=xn. We want to find an antiderivative for f. Since the differentation rule for powers lowers the power by 1 we have that

ddxxn+1=(n+1)xn.

As long as n+10 we can divide by n+1 to get

ddx(xn+1n+1)=xn=f(x).

So the function F(x)=xn+1n+1 is an antiderivative of f. If a,b>0 then F is continuous on [a,b] and we can apply the Fundamental Theorem of Calculus we can calculate the integral of f to get the following rule.

Power Rule of Integration I
abxndx=[xn+1n+1]ab=bn+1an+1n+1. as long as n1 and a,b>0.

Notice that we allow all values of n, even negative or fractional. If n>0 then this works even if a or b are negative.

Power Rule of Integration II
abxndx=[xn+1n+1]ab=bn+1an+1n+1. as long as n>0.

Example

To find 12x3dx we raise the power by 1 and have to divide by 4. So 12x3dx=[x44]12=244144=154.

Example

The power rule also works for negative powers. For instance 131x3dx=13x3dx=[x22]13=12(3212)=12(1321)=12(191)=1289=49.

Example

We can also use the power rule for fractional powers. For instance 05xdx=05x12dx=[x3232dx]05=23(532032)=23(532)

Example

Using the linearity rule we can now integrate any polynomial. For example

03(3x2+4x+2)dx=[x3+2x2+2x]03=33+232+230=27+18+6=51.

Indefinite Integrals

The Fundamental Theorem of Calculus tells us that if f is continuous then the function F(x)=axf(t)dt is an antiderivative of f (i.e. F(x)=f(x). However it is not the only antiderivative. We can add any constant to F without changing the derivative.

We write F(x)=f(x)dx+C if the derivative of F is F(x)=f(x).

Example

Since the derivative of x4 is 4x3 the general antiderivative of 4x3 is x4 plus a constant. Thus

4x3dx=x4+C.

Example: Finding antiderivatives

Let us return to the previous example, that of 6x2. How would we go about finding the integral of this function? Recall the rule from differentiation that

ddxxn=nxn1 

In our circumstance, we have:

ddxx3=3x2 

This is a start! We now know that the function we seek will have a power of 3 in it. How would we get the constant of 6? Well,

2ddxx3=2×3x2=6x2. 

Thus, we say that 2x3 is an antiderivative of 6x2.


Basic Properties of Indefinite Integrals

Constant Rule for indefinite integrals
If c is constant then cf(x)dx=cf(x)dx.

Sum/Difference Rule for indefinite integrals

f(x)+g(x)dx=f(x)dx+g(x)dx.
f(x)g(x)dx=f(x)dxg(x)dx.

Indefinite integrals of Polynomials

Since

ddx1n+1xn+1=xn 

we have the following rule for indefinite integrals.

Power rule for indefinite integrals If n1, then

xndx=1n+1xn+1+C.

Integral of the Inverse function

Since

ddxlnx=1x

We know that

dxx=ln|x|+C

Note that the polynomial integration rule does not apply when the exponent is -1. This technique of integration must be used instead. Since the argument of the natural logarithm function must be positive (on the real line), the absolute value signs are added around its argument to ensure that the argument is positive.

Integral of Sine and Cosine

In this section we will concern ourselves with determining the integrals of the sin and cosine function.

Recall that

ddxsinx=cosx
ddxcosx=sinx.

So sin x is an antiderivative of cos x and -cos x is an antiderivative of sin x. Hence we get the following rules for integrating sin x and cos x.

cosx dx=sinx+C
sinx dx=cosx+C

We will find how to integrate more complicated trigonometric functions in the chapter on Further integration techniques.

Integral of the Exponential function

Since

ddxex=ex

we see that ex is its own antiderivative. Perhaps a more useful definition of this rule can be given as:

ddxef(x)=f(x)ef(x)

hence:

ddxex=(1)ex

Where the exponent (x) is differentiated to give a value of 1


Simplified: ddxex=(1)ex

Becomes: ddxex=ex

So the integral of an exponential function can be found thusly:

exdx=ex+C

Integration Rules

ndx=nx+C
xndx=xn+1n+1+C,n1
exdx=ex+C
axdx=axln(a)+C
1xdx=ln|x|+C,x>0
sinxdx=cosx+C
cosxdx=sinx+C
tanxdx=ln|cosx|+C
cscxdx=ln|cscx+cotx|+C
secxdx=ln|secx+tanx|+C
cotxdx=ln|sinx|+C
sec2xdx=tanx+C
csc2xdx=cotx+C
secxtanxdx=secx+C
cscxcotxdx=cscx+C
1a2b2x2dx=1barcsinbxa+C
1a2+b2x2dx=1abarctanbxa+C
1xx2a2dx=1aarcsec|x|a+C

The Substitution Rule

Suppose that we want to find (cos(x2)x)dx.

The Fundamental theorem of calculus tells us that we want to find an antiderivative of the function:

f(x)=cos(x2)x

Since sin(x) differentiates to cos(x) as a first guess we might try the function sin(x2). But by the Chain Rule

ddxsin(x2)=cos(x2)ddxx2=cos(x2)2x=2xcos(x2)

which is almost what we wanted apart from the fact that there is an extra factor of 2 in front. But this is easily dealt with because we can divide by any constant so

ddxsin(x2)2=12ddxsin(x2)=122cos(x2)x=xcos(x2)=f(x).

So using the Fundamental Theorem of Calculus, xcos(x2)dx=sin(x2)2+C.

In fact this technique will work for more general integrands. Suppose u is a differentiable function. Then to evaluate u(x)cos(u(x))dx we just have to notice that by the Chain Rule

ddxsin(u(x))=cos(u(x))dudx=u(x)cos(u(x)).

As long at u is continuous the Fundamental Theorem applies and tells us that

cos(u(x))u(x)dx=sin(u(x))+C.

Now the right hand side of this equation is just the intgral of cos(u) but with respect to u. If we write u instead of u(x) this becomes cos(u(x))u(x)dx=sin(u)du+C=cos(u)du.

So for instance if u(x)=x3 we have worked out that

(cos(x3)3x2)dx=sin(x3)+C.

Now there was nothing special about using the cosine function in the discussion above, and it could be replaced by any other function. Doing this gives us the substitution rule for indefinite integrals.

Substitution rule for indefinite integrals Assume u is differentiable with continuous derivative and that f is continuous on the range of u. Then f(u(x))dudxdx=f(u)du.

Notice that it looks like you can cancel in the expression dudxdx to leave just a du. This does not really make any sense as dudx is not a fraction, but is a good way to remember the substitution rule.

There is a similar rule for definite integrals, but we have to change the endpoints.

Substitution rule for definite integrals Assume u is differentiable with continuous derivative and that f is continuous on the range of u. Suppose c=u(a) and d=u(b). Then abf(u(x))dudxdx=cdf(u)du.

Examples

Consider the integral

02xcos(x2+1)dx

By using the substitution u = x2 + 1, we obtain du = 2x dx and

02xcos(x2+1)dx =1202cos(x2+1)2xdx
=1215cos(u)du
=12(sin(5)sin(1)).

Note how the lower limit x = 0 was transformed into u = 02 + 1 = 1 and the upper limit x = 2 into u = 22 + 1 = 5.

Proof of the substitution rule

We will now prove the substitution rule for definite integrals. Let F be an anti derivative of f so

F(x)=f(x). By the Fundamental Theorem of Calculus

cdf(u)du=F(d)F(c).

Next we define a function G by the rule

G(x)=F(u(x)).

Then by the Chain rule G is differentiable with derivative

G(x)=F(u(x))u(x)=f(u(x))u(x).

Integrating both sides with respect to x and using the Fundamental Theorem of Calculus we get

abf(u(x))u(x)dx=abG(x)dx=G(b)G(a).

But by the definition of F this equals

G(b)G(a)=F(u(b))F(u(a))=F(d)F(c)=cdf(u)du.

Hence

abf(u(x))u(x)dx=cdf(u)du.

which is the substitution rule for definite integrals.

Integration of even and odd functions

Recall that a function f is called odd if it satisfies f(x)=f(x) and is called even if f(x)=f(x).

Suppose f is a continuous odd function then for any a,

aaf(x)dx=0.

If f is a continuous even function then for any a,

aaf(x)dx=20af(x)dx.

Caution: For improper integrals (e.g. if a is infinity, or if the function approaches infinity at 0 or a, etc.), the first equation above is only true if 0af(x)dx exists. Otherwise the integral is undefined, and only the Cauchy principal value is 0.

Suppose f is an odd function and consider first just the integral from -a to 0. We make the substitution u=-x so du=-dx. Notice that if x=-a then u=a and if x=0 then u=0. Hence a0f(x)dx=a0f(u)du=0af(u)du. Now as f is odd, f(u)=f(u) so the integral becomes a0f(x)dx=0af(u)du. Now we can replace the dummy variable u with any other variable. So we can replace it with the letter x to give a0f(x)dx=0af(u)du=0af(x)dx.

Now we split the integral into two pieces

aaf(x)dx=a0f(x)dx+0af(x)dx=0af(x)dx+0af(x)dx=0.

The proof of the formula for even functions is similar, and is left as an exercise.

Integration by Parts

Integration by parts for indefinite integrals Suppose f and g are differentiable and their derivatives are continuous. Then

f(x)g(x)dx=f(x)g(x)f(x)g(x)dx.

If we write u=f(x) and v=g(x) then using the Leibnitz notation du=f'(x) dx and dv=g'(x) dx and the integration by parts rule becomes

udv=uvvdu.

For definite integrals the rule is essentially the same, as long as we keep the endpoints.

Integration by parts for definite integrals Suppose f and g are differentiable and their derivatives are continuous. Then

abf(x)g(x)dx=[f(x)g(x)]ababf(x)g(x)dx
=f(b)g(b)f(a)g(a)abf(x)g(x)dx.

This can also be expressed in Leibniz notation.

abudv=[uv]ababvdu.

Example Find

xcos(x)dx

Here we let:

u=x, so that du=dx,
dv=cos(x)dx , so that v=sin(x).

Then:

xcos(x)dx =udv
=uvvdu
xcos(x)dx=xsin(x)sin(x)dx
xcos(x)dx=xsin(x)+cos(x)+C

where C is an arbitrary constant of integration.

Example

x2exdx

In this example we will have to use integration by parts twice.


Here we let

u=x2, so that du=2xdx,
dv=exdx, so that v=ex.

Then:

x2exdx =udv
=uvvdu
x2exdx=x2ex2xexdx=x2ex2xexdx.

Now to calculate the last integral we use integration by parts again. Let

u=x, so that du=dx,
dv=exdx, so that v=ex

and integrating by parts gives

xexdx=xexexdx=xexex.

So in the end

x2exdx=x2ex2(xexex)=x2ex2xex+2ex=ex(x22x+2).


Example Find

ln(x)dx.

The trick here is to write this integral as

ln(x)1dx.

Now let

u=ln(x) so du=1/xdx,
v=x so dv=1dx.

Then using integration by parts,

ln(x)dx =xln(x)xxdx
=xln(x)1dx
ln(x)dx=xln(x)x+C
ln(x)dx=x(ln(x)1)+C

where, again, C is an arbitrary constant.


Example Find arctan(x)dx.

Again the trick here is to write the integrand as arctan(x)=arctan(x)1. Then let

u = arctan(x); du = 1/(1+x2) dx
v = x; dv = 1·dx

so using integration by parts,

arctan(x)dx =xarctan(x)x1+x2dx
=xarctan(x)12ln(1+x2)+C.


Example Find :excos(x)dx This example uses integration by parts twice. First let,

u = ex; thus du = exdx
dv = cos(x)dx; thus v = sin(x)

so

excos(x)dx=exsin(x)exsin(x)dx

Now, to evaluate the remaining integral, we use integration by parts again, with

u = ex; du = exdx
v = -cos(x); dv = sin(x)dx

Then

exsin(x)dx =excos(x)excos(x)dx
=excos(x)+excos(x)dx

Putting these together, we get

excos(x)dx=exsin(x)+excos(x)excos(x)dx

Notice that the same integral shows up on both sides of this equation. So we can simply add the integral to both sides to get:

2excos(x)dx=ex(sin(x)+cos(x))
excos(x)dx=ex(sin(x)+cos(x))2

Template:Calculus:TOC