Calculus/Algebra

From testwiki
Jump to navigation Jump to search

Template:Calculus/Top Nav The purpose of this section is for readers to review important algebraic concepts. It is necessary to understand algebra in order to do calculus. If you are confident of your ability, you may skim through this section.

Rules of arithmetic and algebra

The following laws are true for all a,b,c in whether these are numbers, variables, functions, or more complex expressions involving numbers, variable and/or functions.

Addition

  • Commutative Law: a+b=b+a .
  • Associative Law: (a+b)+c=a+(b+c) .
  • Additive Identity: a+0=a .
  • Additive Inverse: a+(a)=0 .

Subtraction

  • Definition: ab=a+(b) .

Multiplication

  • Commutative law: a×b=b×a .
  • Associative law: (a×b)×c=a×(b×c) .
  • Multiplicative identity: a×1=a .
  • Multiplicative inverse: a×1a=1 , whenever a0
  • Distributive law: a×(b+c)=(a×b)+(a×c).

Division

  • Definition: ab=r+nb, where r is the remainder of a when divided by b, and n is an integer.
  • Definition: ab=a×1b , whenever b0 .

Let's look at an example to see how these rules are used in practice.

(x+2)(x+3)x+3 =[(x+2)×(x+3)]×(1x+3) (from the definition of division)
=(x+2)×[(x+3)×(1x+3)] (from the associative law of multiplication)
=((x+2)×(1)),x3 (from multiplicative inverse)
=x+2,x3 (from multiplicative identity)

Of course, the above is much longer than simply cancelling x+3 out in both the numerator and denominator. However, it is important to know what the rules are so as to know when you are allowed to cancel. Occasionally people do the following, for instance, which is incorrect:

2×(x+2)2=22×x+22=1×x+22=x+22 .

The correct simplification is

2×(x+2)2=(2×12)×(x+2)=1×(x+2)=x+2 ,

where the number 2 cancels out in both the numerator and the denominator.

Interval notation

There are a few different ways that one can express with symbols a specific interval (all the numbers between two numbers). One way is with inequalities. If we wanted to denote the set of all numbers between, say, 2 and 4, we could write "all x satisfying 2<x<4". This excludes the endpoints 2 and 4 because we use < instead of . If we wanted to include the endpoints, we would write "all x satisfying 2x4 ."

Another way to write these intervals would be with interval notation. If we wished to convey "all x satisfying 2<x<4" we would write (2,4). This does not include the endpoints 2 and 4. If we wanted to include the endpoints we would write [2,4]. If we wanted to include 2 and not 4 we would write [2,4); if we wanted to exclude 2 and include 4, we would write (2,4].

Thus, we have the following table:

Endpoint conditions Inequality notation Interval notation
Including both 2 and 4 all x satisfying 2x4
[2,4]
Not including 2 nor 4 all x satisfying 2<x<4
(2,4)
Including 2 not 4 all x satisfying 2x<4
[2,4)
Including 4 not 2 all x satisfying 2<x4
(2,4]

In general, we have the following table, where a,b.

Meaning Interval Notation Set Notation
All values greater than or equal to a and less than or equal to b [a,b] {x:axb}
All values greater than a and less than b (a,b) {x:a<x<b}
All values greater than or equal to a and less than b [a,b) {x:ax<b}
All values greater than a and less than or equal to b (a,b] {x:a<xb}
All values greater than or equal to a [a,) {x:xa}
All values greater than a (a,) {x:x>a}
All values less than or equal to a (,a] {x:xa}
All values less than a (,a) {x:x<a}
All values (,) {x:x}

Note that and must always have an exclusive parenthesis rather than an inclusive bracket. This is because is not a number, and therefore cannot be in our set. is really just a symbol that makes things easier to write, like the intervals above.

The interval (a,b) is called an open interval, and the interval [a,b] is called a closed interval.

Intervals are sets and we can use set notation to show relations between values and intervals. If we want to say that a certain value is contained in an interval, we can use the symbol to denote this. For example, 2[1,3] . Likewise, the symbol denotes that a certain element is not in an interval. For example 0(0,1) .

Exponents and radicals

There are a few rules and properties involving exponents and radicals. As a definition we have that if n is a positive integer then an denotes n factors of a . That is,

an=aaaa(ntimes)

If a0 then we say that a0=1 .

If n is a negative integer then we say that an=1an .

If we have an exponent that is a fraction then we say that amn=amn=(an)m . In the expression an , n is called the index of the radical, the symbol is called the radical sign, and a is called the radicand.

In addition to the previous definitions, the following rules apply:

Rule Example
anam=an+m 3639=315
(an)m=anm (x4)5=x20
(ab)n=anbn (3x)5=35x5

Simplifying expressions involving radicals

We will use the following conventions for simplifying expressions involving radicals:

  1. Given the expression abc, write this as abc
  2. No fractions under the radical sign
  3. No radicals in the denominator
  4. The radicand has no exponentiated factors with exponent greater than or equal to the index of the radical

Template:ExampleRobox Using convention 1, we rewrite the given expression as Template:Equation The expression now violates convention 2. To get rid of the fraction in the radical, apply the rule (ab)n=anbn and simplify the result: Template:Equation The resulting expression violates convention 3. To get rid of the radical in the denominator, multiply by 88: Template:Equation Notice that 8=23. Since the index of the radical is 2, our expression violates convention 4. We can reduce the exponent of the expression under the radical as follows: Template:Equation Template:Robox/Close

Exercise

<quiz display=simple points="2/2"> { |type="{}"} 14453={ 1,728|1728_6 }3{ 12_5 } </quiz>

Logarithms

Consider the equation Template:Equation b is called the base and x is called the exponent. Suppose we would like to solve for x . We would like to apply an operation to both sides of the equation that will get rid of the base on the right-hand side of the equation. The operation we want is called the logarithm, or log for short, and it is defined as follows: Template:Calculus/Def Logarithms are taken with respect to some base. What the equation is saying is that, when x is the exponent of b, the result will be y.

Example

Template:ExampleRobox log10100000 is the number x such that 10x=100000. Well 105=100000, so log10100000=5 Template:Robox/Close

Common bases for logarithms

When the base is not specified, log is taken to mean the base 10 logarithm. Later on in our study of calculus we will commonly work with logarithms with base e2.718282 . In fact, the base e logarithm comes up so often that it has its own name and symbol. It is called the natural logarithm, and its symbol is ln . In computer science the base 2 logarithm often comes up.

Properties of logarithms

Logarithmic addition and subtraction

Logarithms have the property that

logbx+logby=logb(xy)

. To see why this is true, suppose that:

logbx=r

and

logby=s

These assumptions imply that

x=br

and

y=bs

Then by the properties of exponents

xy=brbs=br+s

According to the definition of the logarithm

logb(xy)=r+s=logbx+logby

Similarly, the property that

logbxlogby=logb(xy)

also hold true using the same method.

Historically, the development of logarithms was motivated by the usefulness of this fact for simplifying hand calculations by replacing tedious multiplication by table look-ups and addition.

Logarithmic powers and roots

Another useful property of logarithms is that

logbac=clogba

. To see why, consider the expression

logbac

. Let us assume that

logbac=x

By the definition of the logarithm

ac=bx

Now raise each side of the equation to the power

1c

and simplify to get

a=bxc

Now if you take the base

b

log of both sides, you get

logba=xc

Solving for

x

shows that

x=clogba

Similarly, the expression

logbac=logbac

holds true using the same methods.

Converting between bases

Most scientific calculators have the

log

and

ln

functions built in, which do not include logarithms with other bases. Consider how one might compute

logba

, where

b

and

a

are given known numbers, when we can only compute logarithms in some base

β

. First, let us assume that

logba=x

Then the definition of logarithm implies that

a=bx

If we take the base

β

log of each side, we get

logβa=logβbx=xlogβb

Solving for

x

, we find that

x=logβalogβb

For example, if we only use base 10 to calculate

log245

, we get

log245=log45log21.6532125140.3010299965.491853096

.

Identities of logarithms summary

A table is provided below for a summary of logarithmic identities.

Formula Example
Product logb(xy)=logbx+logby log232=log2(48)=log24+log28=2+3=5
Quotient logbxy=logbxlogby log216=log2644=log264log24=62=4
Power logb(ac)=clogba log264=log2(26)=6log22=6
Root logbac=logbac log101000=12log101000=32=1.5
Change of base logba=logβalogβb log9243=log3243log39=52=2.5

Factoring and roots

Given the expression x2+3x+2 , one may ask "what are the values of x that make this expression 0?" If we factor we obtain

x2+3x+2=(x+2)(x+1)

.

If x=1,2 , then one of the factors on the right becomes zero. Therefore, the whole must be zero. So, by factoring we have discovered the values of x that render the expression zero. These values are termed "roots." In general, given a quadratic polynomial px2+qx+r that factors as

px2+qx+r=(ax+c)(bx+d)

then we have that x=ca and x=db are roots of the original polynomial.

A special case to be on the look out for is the difference of two squares, a2b2 . In this case, we are always able to factor as

a2b2=(a+b)(ab)

For example, consider

4x29

. On initial inspection we would see that both

4x2

and

9

are squares of

2x

and

3

, respectively. Applying the previous rule we have

4x29=(2x+3)(2x3)

The AC method

There is a way of simplifying the process of factoring using the AC method. Suppose that a quadratic polynomial has a formula of

x2+qx+r

If there are numbers a and b that satisfy both

ab=r and a+b=q

Then, the result of factoring will be

x2+qx+r=(x+a)(x+b)

The quadratic formula

Template:Calculus/DefNote that the value of b24ac will affect the number of real solutions of the equation.

If Then
b24ac>0 There are two real solutions to the equation
b24ac=0 There is only one real solution to the equation
b24ac<0 There are no real solutions to the equation

Template:ExampleRobox Finding the roots is equivalent to solving the equation 4x2+7x2=0 . Applying the quadratic formula with a=4 , b=7 , c=2 , we have:
x=7±724(4)(2)2(4)

x=7±49+328

x=7±818

x=7±98

x=28 , x=168

x=14 , x=2 Template:Robox/Close

The quadratic formula can also help with factoring, as the next example demonstrates.

Template:ExampleRobox We already know from the previous example that the polynomial has roots x=14 and x=2 . Our factorization will take the form
C(x+2)(x14)
All we have to do is set this expression equal to our polynomial and solve for the unknown constant C:
C(x+2)(x14)=4x2+7x2

C(x2+(14+2)x24)=4x2+7x2

C(x2+74x12)=4x2+7x2

You can see that C=4 solves the equation. So the factorization is
4x2+7x2=4(x+2)(x14)=(x+2)(4x1) Template:Robox/Close

Vieta's formulae

Vieta's formulae relate the coefficients of a polynomial to sums and products of its roots. It is very convenient because under certain circumstances when the sums and products of the quadratic's roots are provided, one does not require to solve the whole quadratic polynomial.Template:Calculus/Def

Simplifying rational expressions

Consider the two polynomials

p(x)=anxn+an1xn1++a1x+a0

and

q(x)=bmxm+bm1xm1++b1x+b0

When we take the quotient of the two we obtain

p(x)q(x)=anxn+an1xn1++a1x+a0bmxm+bm1xm1++b1x+b0

The ratio of two polynomials is called a rational expression. Many times we would like to simplify such a beast. For example, say we are given x21x+1 . We may simplify this in the following way:

x21x+1=(x+1)(x1)x+1=x1,x1

This is nice because we have obtained something we understand quite well, x1 , from something we didn't.

Formulas of multiplication of polynomials

Here are some formulas that can be quite useful for solving polynomial problems:

(a±b)2=a2±2ab+b2
(ab)(a+b)=a2b2
(a±b)3=a3±3a2b+3ab2±b3
a3±b3=(a±b)(a2ab+b2)

Polynomial Long Division

Suppose we would like to divide one polynomial by another. The procedure is similar to long division of numbers and is illustrated in the following example:

Example

Template:ExampleRobox Similar to long division of numbers, we set up our problem as follows:

x+3)x22x15

First we have to answer the question, how many times does x+3 go into x2? To find out, divide the leading term of the dividend by leading term of the divisor. So it goes in x times. We record this above the leading term of the dividend:

xx+3)x22x15

, and we multiply x+3 by x and write this below the dividend as follows:

xx+3)x22x15(x2+3x)_

Now we perform the subtraction, bringing down any terms in the dividend that aren't matched in our subtrahend:

xx+3)x22x15(x2+3x)_5x15

Now we repeat, treating the bottom line as our new dividend:

x5x+3)x22x15(x2+3x)_5x15(5x15)_0

In this case we have no remainder. Template:Robox/Close

Application: Factoring Polynomials

We can use polynomial long division to factor a polynomial if we know one of the factors in advance. For example, suppose we have a polynomial P(x) and we know that r is a root of P . If we perform polynomial long division using P(x) as the dividend and (xr) as the divisor, we will obtain a polynomial Q(x) such that P(x)=(xr)Q(x) , where the degree of Q is one less than the degree of P.

Exercise

Use ^ to write exponents: <quiz display=simple points="1/1"> {Factor x1 out of 6x34x2+3x5. |type="{}"} { (x - 1)(6x^2 + 2x + 5) (i)|(x-1)(6x^2+2x+5) (i)|(6x^2 + 2x + 5)(x - 1) (i)|(6x^2+2x+5)(x-1) (i) _22 } </quiz>

Application: Breaking up a rational function

Similar to the way one can convert an improper fraction into an integer plus a proper fraction, one can convert a rational function P(x) whose numerator N(x) has degree n and whose denominator D(x) has degree d with nd into a polynomial plus a rational function whose numerator has degree ν and denominator has degree δ with ν<δ .

Suppose that N(x) divided by D(x) has quotient Q(x) and remainder R(x) . That is

N(x)=D(x)Q(x)+R(x)

Dividing both sides by D(x) gives

N(x)D(x)=Q(x)+R(x)D(x)

R(x) will have degree less than D(x) .

Example

Template:ExampleRobox

1x3)x1(x3)_2

so

x1x3=1+2x3

Template:Robox/Close

Template:Calculus/Top Nav Template:Calculus/TOC