• No results found

Slopes and Areas

N/A
N/A
Protected

Academic year: 2021

Share "Slopes and Areas"

Copied!
33
0
0

Loading.... (view fulltext now)

Full text

(1)

Slopes and Areas

• Frequently we will want to know the slope of a curve at some point.

• Or an area under a curve.

We calculate area under a curve as the sum of areas of many rectangles under the curve.

We calculate slope as the change in height of a curve during some small change in horizontal position: i.e. rise over run

(2)

Review: Axes

• When two things vary, it helps to draw a

picture with two perpendicular axes to show what they do. Here are some examples:

y

x

x

t

y varies with x x varies with t

Here we say “ y is a function of x” . Here we say “x is a function of t” .

(3)

Positions

• We identify places with numbers on the axes

The axes are number lines that are perpendicular to each other.

Positive x to the right of the origin (x=0, y=0), positive y above the origin.

(4)

Straight Lines

• Sometimes we can write an equation for how one variable varies with the other. For example a straight line can be described as

y = ax + b Here, y is a position on the

line along the y-axis, x is a position on the line along the x-

axis, a is the slope, and b is the

place where the line hits the y-axis

(5)

Straight Line Slope

y = ax + b The slope, a, is just the rise y divided by the run x. We can do this anywhere on the line.

So the slope of the line here is y = -3

x Remember: Rise over Run2 and up and right are positive

Proceed in the positive x direction for some number of units, and count the number of

units up or down the y changes

(6)

y- intercept

y = ax + b is our equation for a line

b is the place where the line hits the y-axis

The intercept b is y = +3 when x = 0 for this line

(7)

We want an equation for this line

y = ax + b is the general equation for a line

So the equation of the line here is y =

-

3 x + 3

2

Equation of our example line

We plugged in the slope and y intercept

(8)

An example: a PT diagram for 2 phases

• Suppose we plot the boundary between the stable PT conditions for two minerals

At, for example, 1 GPa and T= 300K, Phase 2 is stable

(9)

• • Suppose a piston moves up due to expansion of a confined gas

• • V1 = 1000 cm3, under a confining pressure of 10 bars

• • V2 = 2000 cm3, pressure relaxes to 5 bars

• • Work is done…

Another example

(10)

Trig

• Perpendicular axes and lines are very handy. Recall we said we use them for vectors such as velocity. To break a vector r into

components, we use trig. The rise is r .. sin and the run is r cos 

This vector with size r and direction , has been broken down into components.

Along the y-axis, the rise is y = +r sin  Along the x-axis, the run is x = +r cos 

Demo: The sine is the ordinate (rise) divided by the hypotenuse

sin  = rise / r so the rise = r sin 

Similarly the run = r cos 

hypotenuse

rise

run

Whenever possible we work with unit vectors so r = 1, simplifying calculations.

(11)

Okay, sines and cosines, but what’s a Tangent?

A Tangent Line is a line that is going in the

direction of a point proceeding along the curve.

A Tangent at a point is the slope of the curve there.

A tangent of an angle is the sine divided by the cosine.

Positive slopes shown in green, zero slopes are black, negative are red.

(12)

Tangents to curves

• Here the vector r vector r shows the velocity of an ion moving along the blue line f(x)

• At point P, the particle has speed the length of rr and the direction shown makes an angle  to the x-axis

slope = f(x + h) –f(x) (x + h) – x

This is rise over run as always Lets see that is r sin tan

r cos 

P

The slope is a tangent to the curve.

P

(13)

Slope at some point on a curve

• We can learn the same things from any curve if we have an equation for it.

We say y = some function f of x, written y = f(x). Lets look at the small interval between x and x+h. y is different for these two values of x.

The slope is rise over run as always slope = f(x + h) –f(x)

(x + h) – x

rise

derivative dy/dx = f(x + h) –f(x) lim h=>0 h

The exact slope at some point on the curve is found by making the distance between x and x+h small, by making h really small. We call it the derivative.

This is inaccurate for a point on a curve, because the slope varies.

run

(14)

A simple derivative for Polynomials

• The exact slope “derivative” of f(x)

f’(x) = f(x + h) – f(x) = f(x + h) – f(x) lim h=>0 (x + h) – x lim h=>0 h

is known for all of the types of functions we will use in Petrology.

For example, suppose y = x

n

where n is some constant and x is a variable Then y’(x) = dy/dx = nx

n-1

dy/dx means “The small change in y with respect to a small change in x”

(15)

Some Examples for Polynomials

• (1) Suppose y = x

4

. What is dy/dx?

dy/dx = 4x

3

• (2) Suppose y = x

-2

What is dy/dx?

dy/dx = -2x

-3

We just saw for polynomials y = xn the dy/dx = nxn - 1

(16)

Differentials

• Those new symbols dy/dx mean the really accurate slope of the function y = f(x) at any

point. We say they are algebraic, meaning dx and dy behave like any other variable you

manipulated in high school algebra class.

• The small change in y at some point on the

function (written dy) is a separate entity from dx.

• For example, if y = x

n

• dy/dx = nx

n-I

also means dy = nx

n-I

dx

(17)

Variable names

• There is nothing special about the letters we use except to remind us of the axes in our

coordinate system

• For example, if y = u

n

• dy = nu

n-I

du is the same as the previous formula.

y = un

u

(18)

Constants Alone

• The derivative of a constant is zero.

• If y = 17, dy/dx = 0 because constants don’t change, and the constant line has zero slope

Y = 17 17

y

x

For any dx, dy = 0

(19)

X alone

• Suppose y = x What is dy/dx?

• Y = x means y = x1. Just follow the rule.

• Rule: if y = xn then dy/dx = nxn – 1

• So if y = x, dy/dx = 1x0 = 1

• Anything to the power zero is one.

(20)

A Constant times a Polynomial

• Suppose y = 4 x

7

What is dy/dx?

• Rule: The derivative of a constant times a polynomial is just the constant times the derivative of the polynomial.

• So if y = 4 x

7

, dy/dx = 4

.

( 7x

6

)

(21)

Multiple Terms in a sum

• The derivative of a function with more than one term is the sum of the individual

derivatives.

• If y = 3 + 2t + t

2

then dy/dt = 0 + 2 +2t

• Notice 2t = 2t

1

For polynomials y = xn dy/dx = nxn - 1

(22)

The derivative of a product

• In words, the derivative of a product of two

terms is the first term times the derivative of

the second, plus the second term times the

derivative of the first.

(23)

Exponents

• a

m

a

n

= a

m+n

a

m

/a

n

= a

m-n

• (a

m

)

n

= a

mn

(ab)

m

= a

m

b

m

• (a/b)m

= a

m

/b

m

a

-n

= 1/a

n

Suppose m and n are rational numbers

You can remember all of these just by experimenting

For example 22 = 2x2 and 24= 2x2x2x2 so 22x24 = 2x2x2x2x2x2 = 26 reminds you of rule 1

Rule 6, a-n = 1/an , is especially useful

(24)

Logarithms

• Logarithms (Logs) are just exponents

• if by = x then y = logb x

• log10 (100) = 2 because 102 = 100

• Natural logs (ln) use e = 2.718 as a base

• For example ln(1) = loge(1) = 0 because e0 = (2.718)0 = 1

Anything to the zero power is one.

(25)

e

• e is a base, the base of the so-called natural logarithms just mentioned. e ~ 2.718

• It has a very interesting derivative (slope).

• Suppose u is some function

• Then d(e

u

) = e

u

du

• “The derivative of e

u

is e

u

times the derivative of u”

• Example: If y = e

2x

what is dy/dx?

• here u = 2x, so du = 2

• Therefore dy/dx = e

2x .

2

(26)

Integrals

• The area under a function between two values of, for

example, the horizontal axis is called the integral. It is a sum of a series of very tall and thin rectangles, and is indicated by a script S, like this:

(27)

Integrals

• To get accuracy with areas we use extremely

thin rectangles, much thinner than this.

(28)

Example 1

• If y=3x5 Then dy/dx = 15x4

• Then y = 15x4 dx = 3x5 + a constant

Integration is the inverse operation for differentiation

We have to add the constant as a reminder because, if a constant was present in the original function, it’s derivative would be zero and we wouldn’t see it.

(29)

Example2: a trick

Sometimes we must multiply by one to get a

known integral form. For example, we know:

(30)

A useful method

• When a function changes from having a

negative slope to a positive slope, or vs. versa, the derivative goes briefly through zero.

• We can find those places by calculating the

derivative and setting it to zero.

(31)

Getting useful numbers

• Suppose y = x2.

• (a) Find the minimum

If y = x2 then dy/dx = 2x1 = 2x. Set this equal to zero 2x=0 so x=0

y = x2 so if x = 0 then y = 0

Therefore the curve has zero slope at (0,0)

(32)

Getting useful numbers

• Suppose y = x2.

• TODO: Find (a) the location of the minimum, and (b) the slope at x=3 (a)See previous page

(b) dy/dx = 2x , so set x=3

then the slope is 2x = 2 . 3 = 6

(33)

Getting useful numbers

• Here is a graph of y = x2

• Notice the slope is zero at (0,0), the minimum

• The slope at (x=3,y=9) is +6/1 = 6

References

Related documents

4.1 The Select Committee is asked to consider the proposed development of the Customer Service Function, the recommended service delivery option and the investment required8. It

• Follow up with your employer each reporting period to ensure your hours are reported on a regular basis?. • Discuss your progress with

With sufficient trust built with the service providers, customers can store data in the clouds with the same confidence as they keep money and other valuable assets in the

National Conference on Technical Vocational Education, Training and Skills Development: A Roadmap for Empowerment (Dec. 2008): Ministry of Human Resource Development, Department

CMS, as the administrator of Medicare, has to deal with many issues, such as monitoring PDP and MAPD plan enrollment, market stability, cost sharing and formulary, low- income

Funding sources include the Housing Choice Voucher Program (formerly known as the Section 8 Rental Voucher Program), the HOME Investments Partnerships Program, the Section 811

Marie Laure Suites (Self Catering) Self Catering 14 Mr. Richard Naya Mahe Belombre 2516591 [email protected] 61 Metcalfe Villas Self Catering 6 Ms Loulou Metcalfe

The corona radiata consists of one or more layers of follicular cells that surround the zona pellucida, the polar body, and the secondary oocyte.. The corona radiata is dispersed