Processing math: 100%

Tuesday, January 28, 2014

Calculus review: integrals

An integral is very similar to a sum.  If a curve is described by a function, the integral of that function between two x values gives you the area under it on a graph.  There are many approximation schemes for integrals that just compute them as sums, such as Midpoint Rule, Trapezoid Rule, or Simpson's Rule.  Integration is also the inverse operation of differentiation: taking the derivative and then the integral of a function gets you back the original function.

Here, we are going to assume some familiarity with integration and remind the rusty among you of how to do a bit more . . .

The most basic functions can be integrated just by remembering the derivative formulae and inverting.  For instance,
since dxndx=nxn1,
if we want to integrate xm,
we can let m=n1
and see that  1ndxndx=xn1
and replace n-1 with m to see that
xm=1m+1xm+1.
 We can then check by differentiating: we get xm,
so all's well that ends well!

ex,sinx,andcosx
can all be handled using this principle too.

For more complicated functions, there are five major techniques, which we'll look at in increasing order of complexity.
1) Integration by substitution
2) Integration by parts
3) Trig substitution
4) Partial fractions
5) Gaussian integrals
6) Completing the square in Gaussian integrals

1) Integration by substitution
Given a composition of functions, it is often convenient to define a new variable for the inner function.  For instance, let's compute
ba[1+x]2dx

by defining u=1+x,
du=dx.

We then have
1+b1+au2du=u33|1+b1+a

Notice a few things:
a) we have replaced the limits of integration: if x runs from a to b, u=1+x runs from 1+a to 1+b.
b) we have replaced dx with dx=du: in general, we need to differentiate u and solve algrebraically for dx in terms of du, and then replace dx with its value in terms of du.

Let's do a harder example:
ba[1+2x]1/2dx.

Let u=1+2x,du=2dx
so that
dx=du2.

We then find
1+2b1+2au1/22du=u3/22|1+2b1+2a.


To do these without making a mistake, it's good to go step by step.  First, write out clearly what u equals and then du = . . . dx, and solve carefully for dx.  Then make these replacements in the integral.  After that, make sure to change the bounds of integration to have the right range for the new variable!

2) Integration by parts
Often an integrand is of the form of a product of two functions, one of which is has a simple integral.  How do we handle these cases?  Write the integral as
udv
where dv is the function that has a simple integral.  We then have the formula
baudv=uv|babavdu.
 Try differentiating this formula to prove it is the correct integral of u dv:
ddx[uv|babavdu]=udvdx+vdudxvdudx.


Let's try an example.  Conveniently, this example will turn out to give us a useful formula for the integral of natural log.

lnxdx=1lnxdx.


We don't know how to integrate lnx,
so we better not have it be our dv.  But we do know how to integrate 1dx:
that's just x!  So we set
u=lnx,dv=1dx.


We then have
lnxdx=xlnxxxdx=xlnxx.


This is great because we now have a general technique for integrating any power of x against natural log.  Let's try x:

xlnxdx=lnxdx=x22lnxx22xdx=x22lnxx24.


Try deriving the formula for xnlnxdx
yourself!

Another integral commonly evaluated using integration by parts is xnexdx,
where n is a positive whole number.  Here things get a little trickier.  We want to eventually lower the integrand to involve only ex
and no powers of x, so we need to do something that lowers the power of x each time we do it.  This suggests letting u=xn,
because du=nxn1.
 We then have

xnex=xnexnxn1exdx.
 We can then integrate the integral by parts again to reduce the power of x by one more, and keep doing so until we get the integrand to be ex,
which we know how to integrate.


No comments:

Post a Comment