Sciencemadness Discussion Board

Calculus! For beginners, with a ‘no theorems’ approach!

 Pages:  1    3  ..  5

blogfast25 - 7-3-2016 at 15:05

So what really is calculus?

My preferred (but imperfect) definition:

Calculus is the study of how things change.

In this basic course we’ll concentrate on:

• Derivatives
• Differentiation
• Integrals
• Basic differential equations.

So let’s get stuck in!

The two most important functions you already knew:

yx functions.png - 5kB

Start with the left side:

$$y=x$$

Too stupid for words really, isn’t it? For every value of x it returns that value as y.

Now notice something interesting. If I say:

$$\Delta x=x_2-x_1$$
and:
$$\Delta y=y_2-y_1$$

Then always:

$$\Delta y= \Delta x$$

Always! So that:

$$\frac{\Delta y}{ \Delta x}=1$$

Always! So what is this ratio that is always 1 for y=x? This ratio is the slope of the line. In most textbooks the term gradient is now used instead of slope, so I’ll use it here too.

Now, it can be shown that in this particular case this gradient is the first derivative of y to x. Mathematically, if we write:

$$y=f(x)$$

Where f(x) means function of x, then:

$$[f(x)]’=y’=x’=\frac{\Delta y}{ \Delta x}=1$$

The notation:

$$[f(x)]’$$

... means the derivative of the function f(x) to x.

Another notation but meaning exactly the same is:

$$f’(x)=y’=x’=1$$

It’s an enormous step forward, even though it doesn’t look like much:

The derivative of x to x equals 1.

Now look at the function on the right hand side:

$$f(x)=y=a$$

Where a is any number. So this one’s even dumber: no matter the value of x, it always returns a!

Again there’s something interesting about it: no matter the value of Δx, always is Δy=0.

And that means our gradient:
$$\frac{\Delta y}{ \Delta x}=0$$

And by extension:
$$[f(x)]’=f’(x)=y’=a’=\frac{\Delta y}{ \Delta x}=0$$

The derivative of any number to x equals 0.

It’s important to note that obtaining the gradient of a function (and thus the derivative of f(x) to x) can only be obtained as done above for these simple functions. For other, more complicated functions another way has to be used and we’ll soon get to that. For now I want to run with our two main conclusions:

$$x’=1, a’=0$$

Metacelsus - 7-3-2016 at 18:44

No theorems? But theorems are so much fun! (Actually though, they are pretty interesting.)

One of my favorites: https://en.wikipedia.org/wiki/Mean_value_theorem

blogfast25 - 7-3-2016 at 18:55

Quote: Originally posted by Metacelsus  
No theorems? But theorems are so much fun! (Actually though, they are pretty interesting.)

One of my favorites: https://en.wikipedia.org/wiki/Mean_value_theorem


They are fun, Metacelsus but let's just say that this thread is for the theorem-averse, of which there are many. :D

Volanschemia - 7-3-2016 at 20:43

Kudos for undertaking this blogfast, I'm studying Mathematical Methods at school at the moment and what you wrote is making sense so far so I must be doing something right!
I'm sure a lot of people will benefit from this, and I may be able to contribute if I get some spare time.

JJay - 8-3-2016 at 01:20

I need to brush up on/learn differential equations, complex analysis, Fourier transforms, etc. if you get around to them.

blogfast25 - 8-3-2016 at 06:39

Quote: Originally posted by Volanschemia  
Kudos for undertaking this blogfast, I'm studying Mathematical Methods at school at the moment and what you wrote is making sense so far so I must be doing something right!


My approach will be less 'school-like' and more heuristic. One can learn in different ways.

@JJay: Thanks!

Maker - 8-3-2016 at 08:48

Do you plan on teaching beyond what is taught in AS level maths?

Great idea for a thread, and well explained:D.

Just one thing to add, many (Most?) people use "d" in place of "Δ", so the derivative of x is written as dy/dx.

Metacelsus - 8-3-2016 at 08:58

Δ and d are not the same: the derivative (dy/dx) is defined (in simple terms) to be the limit as Δx approaches zero of Δy/Δx.

blogfast25 - 8-3-2016 at 09:01

Quote: Originally posted by Maker  
1. Do you plan on teaching beyond what is taught in AS level maths?

2. Great idea for a thread, and well explained:D.

3. Just one thing to add, many (Most?) people use "d" in place of "Δ", so the derivative of x is written as dy/dx.


1. That depends on the level of interest. And whether other math lovers want to help out a bit or not.

2. Thanks!

3. You've kind of missed the point a bit. y=x and y=a are linear functions. For these:

$$\frac{\Delta y}{\Delta x}=\frac{dy}{dx}$$

That allows me to introduce the concept of the gradient without having to introduce differentials (dy and dx) just yet. Differentials are a harder concept than intervals (Δx and Δy), at least for beginners.

Differentials will pop up in instalment 3.

As Metacelsus pointed out. Ta, MC!

[Edited on 8-3-2016 by blogfast25]

Maker - 8-3-2016 at 09:23

1. In a later instalment, I'd be very interested to learn how to integrate or differentiate combined functions, like f(g(x)).
3. Ah yes, I see what you mean, just me trying to rush ahead :( .

blogfast25 - 8-3-2016 at 10:17

Quote: Originally posted by Maker  
1. In a later instalment, I'd be very interested to learn how to integrate or differentiate combined functions, like f(g(x)).
3. Ah yes, I see what you mean, just me trying to rush ahead :( .


No worries. :)

aga - 8-3-2016 at 10:25

Superb stuff bloggers !

Keep this up and you'll definitely get a Sainthood.

For those of us who either didn't get more than a basic education, or went to uni and simply didn't try hard at the time, this is of enormous help.

[Edited on 8-3-2016 by aga]

blogfast25 - 8-3-2016 at 11:33

Quote: Originally posted by aga  
Superb stuff bloggers !

Keep this up and you'll definitely get a Sainthood.

For those of us who either didn't get more than a basic education, or went to uni and simply didn't try hard at the time, this is of enormous help.

[Edited on 8-3-2016 by aga]


Thanks. Sainthood? Nah. Put me out with the rest of the garbage, when I'm done...;)

Next instalment in about 30 mins.

Stay tuned!

[Edited on 8-3-2016 by blogfast25]

Derivation of polynomial functions:

blogfast25 - 8-3-2016 at 12:18

And now for some amazing and helpful properties of derivatives.

Firstly, the product rule which relates to the derivation of the product of two function, f(x) and g(x). It states:

$$[f(x)g(x)]'=f'(x)g(x)+f(x)g'(x)$$

Let's apply it to a function:

$$u(x)=ax$$

Where a is any number.

Say:

$$f(x)=a, g(x)=x, u(x)=ax$$
Then:
$$u'(x)=a' \times x + a \times x'=0 \times x+ a \times 1= a$$

So:

$$(ax)'=a$$

How cool is that?!?!

Let's try another one:

$$u(x)=x^2= x \times x=f(x)g(x)$$
Apply the product rule:
$$u'(x)=(x^2)'=(x \times x)’=x' \times x + x \times x'=1 \times x + x \times 1=2x$$

You can apply the same method to:

$$x^3, x^4, ..., x^n$$

And you'll find:

$$(x^n)'=nx^{n-1}$$

Cool, yeah?

How about this one:

$$f(x)=ax^n$$

Then:

$$f'(x)=(ax^n)'=anx^{n-1}$$
Example:
$$f(x)=5x^3$$

$$f'(x)=15x^2$$
Secondly the sum rule, which relates to the derivation of the sum (or difference) of two function, f(x) and g(x). It states:
$$[f(x)+g(x)]'=f'(x)+g'(x)\: \text{and}\:\ [f(x)-g(x)]'=f'(x)-g'(x)$$

Nor is it limited to the sum or difference of two functions either. Take this example:

$$f(x)=2+4x-5x^4$$

With what we've learned above:

$$f'(x)=0+4-5 \times 4x^3=4-20x^3$$

Congrats! You've just learned how to calculate the derivative of a polynomial function!

A general polynomial can be defined as:

$$f(x)=a_0+a_1x+a_2x^2+ ... +a_{n-1}x^{n-1}+a_nx^n$$

Where:

$$a_0, a_1, a_2, \:\text{etc}$$

... are the polynomial's coefficients, which can be positive, negative or even zero.

The general derivative of a polynomial is, by applying what we learned above is:

$$f'(x)=a_1+2a_2x+ ... +(n-1)a_{n-1}x^{n-2}+na_nx^{n-1}$$

Now all we need is a bit of practice! I’ll let this sink in and then formulate some... exercises!

aga - 8-3-2016 at 12:26

Whoah there hoss !
$$[f(x)g(x)]'$$
In the lingo, does that mean the first derivative of a function of x multiplied by another function of x ?

Edit:
$$f(x)=a, g(x)=x, u(x)=ax$$
What does the comma operator do ?

[Edited on 8-3-2016 by aga]

blogfast25 - 8-3-2016 at 13:28

Quote: Originally posted by aga  
Whoah there hoss !
$$[f(x)g(x)]'$$
In the lingo, does that mean the first derivative of a function of x multiplied by another function of x ?

Edit:
$$f(x)=a, g(x)=x, u(x)=ax$$
What does the comma operator do ?

[Edited on 8-3-2016 by aga]


$$[f(x)g(x)]'= [f(x) \times g(x)]'$$


$$f(x)=a\:\text{and}\:\ g(x)=x,\text{then}\:\ u(x)=ax$$

Is that better for you? The comma is just a comma here (punctuation mark). :D

In algebra we rarely use the X sign for multiplication anymore, instead (e.g.):

$$a \times x=ax$$

Also sometimes:

$$a \times x=a.x=ax$$

The 'dot' as a symbol of a product.

[Edited on 8-3-2016 by blogfast25]

woelen - 8-3-2016 at 14:31

An interesting addition may be:

(a*x^n)' = n*a*x^(n-1) which is valid for ANY constant power n. Also for non-integer powers and negative powers. E.g. 1/x can be written as x^(-1). The derivative of this is (-1) * x^(-2) = -1/(x*x).
E.g. √x can be written as x^½. The derivative of this is ½*x^(½ - 1) = ½*x^(-½)=1/(2√x)

blogfast25 - 8-3-2016 at 14:57

Quote: Originally posted by woelen  
An interesting addition may be:

(a*x^n)' = n*a*x^(n-1) which is valid for ANY constant power n. Also for non-integer powers and negative powers. E.g. 1/x can be written as x^(-1). The derivative of this is (-1) * x^(-2) = -1/(x*x).
E.g. √x can be written as x^½. The derivative of this is ½*x^(½ - 1) = ½*x^(-½)=1/(2√x)


Correct. I left it implicit that n can be any number.

[Edited on 8-3-2016 by blogfast25]

Exercises: derivatives of polynomials

blogfast25 - 9-3-2016 at 07:37

1.
$$-5x^4$$
2.
$$y=2-3x^4+x^6$$
3.
$$u=2+5x^{-8}$$
4.
$$v=x-2$$
5.
$$z=2-x+ax^{\pi-b}$$
... where a and b are constants.

LaTex rendering: right click on any formula. Choose ‘Show Math as > Tex commands’: a window opens that shows the code. Cut and paste it, modify it acc. your needs and put it between double $ signs. It will now render as LaTex on SM pages (click ‘Preview Post’).

Return to the slope, I mean: gradient!

blogfast25 - 10-3-2016 at 07:16

Consider a general, smooth and continuous function f(x):

Tangent to a function.png - 5kB

If we define intervals between points 1 and 2 as:

$$\Delta x=x_2-x_1\:\text{and}\:\Delta y=y_2-y_1$$

Then, as in the case of y=x, is:

$$\frac{\Delta y}{\Delta x}$$

... the gradient of f(x)? No. Actually, it's the gradient of the cord between point 1 and 2. It's kind of an approximate, average gradient of f(x) between the points 1 and 2 but nowhere near accurate enough for our purpose.

Now if we move the point 2 along the curve of f(x), towards point 1, then the intervals:

$$\Delta x\:\text{and}\:\Delta y$$

... both decrease and the cord between 1 and 2 starts to resemble the line marked tangent. The tangent line is the line that is parallel to the curve f(x) in the point 1.

The gradient of the tangent line in the point 1 is in fact the gradient of the curve of f(x) in the point 1 and by extension of what we saw in the first instalment, that gradient is also the derivative of f(x) in point 1:

$$f'(x_1)$$

I promised as little theory as possible but a minimum is hard to avoid.

It can be shown (but I won’t do that here) that:
$$f'(x_1)=\lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}$$
What does this mean? It means that we evaluate the expression for ever and ever smaller values of Δx, so Δx actually tends to zero. “lim” stands for in the limit for Δx going to zero.

More explicitly written:
$$f'(x_1)=\lim_{\Delta x \to 0} \frac{f(x_1+\Delta x)-f(x_1)}{\Delta x}$$
And for the general case of x:
$$f'(x)=\lim_{\Delta x \to 0} \frac{f(x+\Delta x)-f(x)}{\Delta x}$$
It’s also written as:
$$\lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}=\frac{dy}{dx}=y'(x)$$
Where dy and dx are so-called differentials.

Let's just try it with a simple Example: let:

$$f(x)=x^2$$

$$y'(x)=\lim_{\Delta x \to 0}\frac{(x+\Delta x)^2-x^2}{\Delta x}$$

$$y'(x)=\lim_{\Delta x \to 0}\frac{x^2+2x\Delta x+(\Delta x)^2-x^2}{\Delta x}$$

$$y'(x)=\lim_{\Delta x \to 0}\frac{2x\Delta x+(\Delta x)^2}{\Delta x}$$

$$y'(x)=\lim_{\Delta x \to 0}\frac{\Delta x(2x+\Delta x)}{\Delta x}$$

$$y'(x)=\lim_{\Delta x \to 0}(2x+\Delta x)$$

$$y'(x)=2x$$

Which is what we already knew!

Going back to the differentials, we can write:
$$f'(x)=(x^2)'=\frac{dy}{dx}=2x$$

or:

$$dy=2xdx$$

The latter is in fact the first differential equation of this thread but we won’t dwell on that just yet.

Obtaining the derivatives of other functions:

In principle that same little limit ‘trick’ I performed on y=x<sup>2</sup> can be used to obtain the derivative of any function, including non-polynomial ones. But the good news is that we don’t have to do it because other brain boxes have already done it for us!

Plenty, plenty tables list the derivative of most functions on the Tinkerwebs. I quite like this one but by all means choose your own:

http://www.ambrsoft.com/Equations/Derivation/Derivation.htm

Note that it uses a notation we haven’t used here yet but it’s very simple. For example, what’s the derivative of cos x?

In that notation:
$$y=\cos x$$

$$y'=\frac{dy}{dx}=\frac{d}{dx}\cos x= -\sin x$$


[Edited on 10-3-2016 by blogfast25]

Derivatives, differentials and differentiation:

blogfast25 - 13-3-2016 at 06:27

Good news: you already know this one! Well, basically...

We saw that the derivative of a function y can be written as:
$$y'=\frac{dy}{dx}$$

The trick now is simply to understand that:

$$dx\:\text{and}\:dy$$

... are simply variables, like x and y, and can be manipulated like them (within reason). A simple example is:

$$dy=y'dx$$

Where we've simply brought the denominator in the first equation to the left of the equation and then reversed the identity.

Remember also that we obtained the derivative y' by:

$$y'=\lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}=\frac{dy}{dx}$$

Due to this limit taking,

$$dy\:\text{and}\:dx$$

are both infinitesimally small (but NOT actually zero). We call them also infinitesimals. That property will be very useful later, when we start setting up differential equations for Real World problems (much later on).

For now, just look at it like this: to differentiate a function f(x), take the derivative and multiply it with dx, to obtain the differential df(x).

Example:

$$u=3x^4+ \cos x$$

Then:

$$du=(12x^3-\sin x)dx$$

Divide both sides by dx and you've got your derivative back:

$$u'=\frac{du}{dx}=12x^3-sinx$$

Easy peasy!

The Volatile Chemist - 13-3-2016 at 16:09

Nice to see you doing this Blogfast! I'm in Calculus 1 right now. but no theorems... :) I think there's a book in the library on advanced math for chemists and physicists, I had taken a peek at it a little while ago, quite cool.

blogfast25 - 13-3-2016 at 16:22

Thanks, TVC!

More Rules for derivatives (and differentials):

blogfast25 - 16-3-2016 at 14:01

Higher up, we saw two important rules of derivation/differentiation, the product rule and the sum/difference rule. There are two more important such rules to master.

Firstly, the quotient rule:

If:

$$u(x)=\frac{f(x)}{g(x)}$$

Then:

$$u'(x)=\frac{f'(x)g(x)-f(x)g'(x)}{[g(x)]^2}$$

Example:

$$u(x)=\frac{x-1}{x+1}$$

$$u'(x)=\frac{(x-1)'(x+1)-(x-1)(x+1)'}{(x+1)^2}$$
$$u'(x)=\frac{1.(x+1)-(x-1).1}{(x+1)^2}$$
$$u'(x)=\frac{x+1-x+1}{(x+1)^2}$$
$$u'(x)=\frac{2}{(x+1)^2}$$

Finally and most importantly, the Chain Rule.

Very often functions are in fact functions of other functions. A few examples should make clear what I mean:

$$\sqrt{3x^2-5}$$

$$(7+3x-x^2+2x^5)^3$$

$$\sin (2\pi x-3)$$

$$(4x^3-7x+\sqrt{x})^5$$

$$\ln \Big(\frac{3x}{x^2+5} \Big)$$

$$\large{e^{5x-\frac1x}}$$

We can write the generic form as:

$$u(x)=f[g(x)]$$

Worded: u(x) is a function f of g(x).

The Chain rule says simply:

$$u'(x)=f'[g(x)] \times g'(x)$$

This may look a little frightening but it is easier than you think. Let's try a few simple examples:

First:
$$u(x)=(3x)^5$$

$$u(x)=5(3x)^4 . (3x)'=5(3x)^4 . 3= 15(3x)^4$$

Second:

$$u(x)=\sin (2\pi x-3)$$

$$u'(x)=\cos (2\pi x-3) \times (2\pi x-3)'=2\pi \cos (2\pi x-3)$$

Third:

$$u(x)=\ln \Big(\frac{3x}{x^2+5} \Big)$$

This one's a little harder so we'll take it one step at a time. Rewrite as:

$$u(x)=\ln[f(x)]$$

Where:

$$f(x)=\frac{3x}{x^2+5}$$

So:

$$u'(x)=\frac{1}{f(x)} \times f'(x)$$

Now calculate f'(x):
$$f'(x)=\Big(\frac{3x}{x^2+5} \Big)'=\frac{(3x)'(x^2+5)-(3x)(x^2+5)'}{(x^2+5)^2}$$
$$f'(x)=\frac{3(x^2+5)-3x(2x)}{(x^2+5)^2}=\frac{3x^2+15-6x^2}{(x^2+5)^2}$$

Also:

$$\frac{1}{f(x)}=\frac{x^2+5}{3x}$$

Putting Humpty Dumpty back together again, we have:

$$u'(x)=\frac{-3x^2+15}{3x(x^2+5)}$$

Combining the Rules and carrying out Substitutions:

blogfast25 - 18-3-2016 at 07:37

In some cases several of the derivation/differentiation rules need to be applied to 'crack' a derivative.

First example:

$$y(x)=(x+1)\sqrt{\frac{x^2-3}{x^3}}$$

So what is y'(x)?

Fistly, apply the product rule:

$$\frac{d}{dx}y(x)=(x+1)'\sqrt{\frac{x^2-3}{x^3}}+(x+1)\Big[\sqrt{\frac{x^2-3}{x^3}}\Big]'$$

$$\frac{d}{dx}y(x)=\sqrt{\frac{x^2-3}{x^3}}+(x+1)\Big[\sqrt{\frac{x^2-3}{x^3}}\Big]'$$

Now we concentrate on that latter part:

$$\Big[\sqrt{\frac{x^2-3}{x^3}}\Big]'$$

Make a substitution, by calling u:

$$u=\frac{x^2-3}{x^3}$$

So we have, with the chain rule:
$$(\sqrt{u})'=\frac12 u^{-1/2}u'$$
$$u'=\frac{(x^2-3)'x^3-(x^2-3)(x^3)'}{(x^3)^2}$$

$$u'=\frac{2xx^3-(x^2-3)3x^2}{x^6}$$
$$u'=\frac{2x^2-3(x^2-3)}{x^4}$$
$$u'=\frac{9-x^2}{x^4}$$
Substituting back:

$$\Big[\sqrt{\frac{x^2-3}{x^3}}\Big]'=\frac12 \Big(\frac{x^2-3}{x^3}\Big)^{-1/2}\Big(\frac{9-x^2}{x^4}\Big)$$

Finally, substitute this back into the second equation (I'll leave that to you!)

Second example, this one a bit harder - look at this baby:

$$f(x)=[\cos (\sqrt{1+2x})]^3$$

"Take the square root of (1 + 2x), take the cosine of that value and raise the newly obtained value to the power 3".

If you're not sure how to tackle its derivative, I suggest to use the substitution method (we'll also frequently use it when we get integrating).

Let:

$$u=\sqrt{1+2x}$$

Then:

$$f(u)=[\cos u]^3$$

Let:$$v=\cos u$$

Then:$$f(v)=v^3$$

Differentiate to v:$$d[f(v)]=3v^2dv$$

And:$$dv=(\cos u)'du$$

$$dv=-\sin u du$$

So, substituting back:

$$d[f(u)]=3[\cos u]^2(-\sin u)du=-3\sin u [\cos u]^2du$$

Now calculate du, using the chain rule:

$$du=(\sqrt{1+2x})'dx=\big((1+2x)^{1/2}\big)'dx$$


$$du=\frac12(1+2x)^{-1/2}(1+2x)'dx$$

$$du=(1+2x)^{-1/2}dx$$

Phew! Nearly there, we only need to substitute back:

$$d[f(x)]=-3\sin (\sqrt{1+2x}) [\cos (\sqrt{1+2x})]^2(1+2x)^{-1/2}dx$$

Rearrange slightly and divide both sides by dx:

$$f'(x)=-\frac{3}{\sqrt{1+2x}}\sin (\sqrt{1+2x}) [\cos (\sqrt{1+2x})]^2$$

[Edited on 19-3-2016 by blogfast25]

blogfast25 - 18-3-2016 at 19:07

Quote: Originally posted by chemrox  
Calculus courses are all about the notation. I never cared for the limit notation or the Δ forms. I like the Liebenetz dy/dx format. Of course you have to explain what they mean..and calculus is the only way to learn trig
dy/dx ≠ Δy/Δx



I have to disagree somewhat here. Notation is mainly conventional. Some prefer Leibniz, others Newton ("dot y"):

$$\dot{y}=\frac{dy}{dx}$$

Using calculus professionally, one has little choice but to familiarise oneself with the various notations and variations. It's a bit like musical notation: it may differ slightly from one composer to another but most will be able to read another's scribblings w/o problems.

As regards limit notation, do you have an alternative?

As regards "dy/dx ≠ Δy/Δx", that case has been firmly made higher up.


j_sum1 - 18-3-2016 at 21:27

There are reasons why both leibniz' dy/dx notation and Newton's f'(x) notation have both survived.

Newton's notation simplifies and manipulates nicely. f'(x) simplifies to f'. f''(x) simplifies to f''. This easily enables f to be manipulated as an algebraic object.
Newton's notation also enables substitution into the function to be shown easily. f(2), f(x), f(t), f(n+3), f(g(x)) and so forth.


Leibniz emphasises the concept of a rate better. It allows for separation of the two differentials which is useful for integration and solving differential equations. (In Leibniz notation, integration is more than just antidifferentiation -- it is a sum to find an area. Conceptually, this is different and it shows in the notation.)
Leibniz is also useful in that it shows the variable that one is differentiating with respect to. dy/dx and dy/dz and so forth. To my knowledge, Newton's applications were differentiating with respect to time only. Leibniz easily allows multi-variable functions and partial differentials. ∂2y/∂x∂z for example.

There are advantages to both notations and a good understanding of calculus is aided by having facility with both.

chemrox - 18-3-2016 at 21:44

I'm not seeing a lot of the material you drew. I'm looking at in firefox. Any idea what might be the issue? What format were you putting the math in?

j_sum1 - 18-3-2016 at 21:53

I didn't draw anything. My post is all text.
Bloggers is using latex -- as described here.

chemrox - 18-3-2016 at 21:55

Quote: Originally posted by blogfast25  
Quote: Originally posted by chemrox  
Calculus courses are all about the notation. I never cared for the limit notation or the Δ forms. I like the Liebenetz dy/dx format. Of course you have to explain what they mean..and calculus is the only way to learn trig
dy/dx ≠ Δy/Δx



I have to disagree somewhat here. Notation is mainly conventional. Some prefer Leibniz, others Newton ("dot y"):

$$\dot{y}=\frac{dy}{dx}$$



Using calculus professionally, one has little choice but to familiarize oneself with the various notations and variations. It's a bit like musical notation: it may differ slightly from one composer to another but most will be able to read another's scribblings w/o problems.

As regards limit notation, do you have an alternative?

As regards "dy/dx ≠ Δy/Δx", that case has been firmly made higher up.



I see what you mean. The problem I'm having is I'm not seeing it all so please disregard earlier comments. Except for one thing: I would not bother with any theory. You can take analysis if you want to really learn it. If you want to use calculus, professionally or otherwise, jump to the Liebniz (thanks for the spelling) notation. I would however name the rules. For example I think you started out with the product rule. I think naming the rules is a good memory crutch. As far as notations go maybe its a good idea to cover them all right away. I went to a big school where every math prof. liked a different text. It drove me nuts until I found one I liked in the library to carry me through. Linear algebra was the same way. When I took it I found the text was the barrier and I found a 67 page one that covered the course. That course was about making good guesses about series more than anything.

chemrox - 18-3-2016 at 22:00

I had to reload my browser. Now about 2/3 of the pages are gone WTF? Did all the latex disappear?

blogfast25 - 19-3-2016 at 06:33

Quote: Originally posted by chemrox  
I had to reload my browser. Now about 2/3 of the pages are gone WTF? Did all the latex disappear?


No, I can see all of it. Looks like a browser problem at your end.

[Edited on 19-3-2016 by blogfast25]

When a derivative becomes zero...

blogfast25 - 19-3-2016 at 09:06

Consider the following smooth and continuous generic function y=f(x):

optima.png - 5kB

I’ve also drawn the tangent lines in various points, in green where the tangent has a positive gradient, in red where the tangent has a negative gradient.

As we move from left to right the positive gradient first becomes smaller and smaller, to reach zero at the top of the ‘hill’ (black tangent is horizontal).

Moving beyond that point the gradient of the tangent line becomes negative, then less and less negative to reach zero at the bottom of the ‘valley’ (black tangent is horizontal). It then becomes positive again.

The points where the tangent line’s gradient becomes zero are called optima (minimum and/or maximum) and are the points are those for which:

$$y’(x_{max})=0\:\text{and}\:y’(x_{min})=0$$

So optima occur where:

$$y’=\frac{dy}{dx}=0$$

Parabola:

An interesting case in point is the quadratic polynomial:

$$y=ax^2+bx+c$$

Graphically it shows as a parabola:

Parabola 2.png - 3kB

Since as:

$$y’=2ax+b$$

There always is an optimum for:

$$2ax+b=0$$

$$x_{opt}=-\frac{b}{2a}$$

The value of y<sub>opt</sub> can be calculated from plugging into y.

Note that here the optimum is a maximum but parabolas that exhibit a minimum also exist of course (just flip the graph over 180 degrees).

This property of derivatives becoming zero where optima of the function f(x) exist is used in optimisation problems (next up).

[Edited on 19-3-2016 by blogfast25]

woelen - 19-3-2016 at 09:28

Yet another notation used for d/dx is simply D. The operator D is a linear functional with the property Df = f'

Powers of D are used to represent repeated differentiation, e.g. D²f = DDf = D(f') = f''.

Integration can be written as 1/D or D-1, e.g. D-1f stands for the integral of f(ξ)dξ from ξ=0 to ξ=x.

Using this notation, one can even use fractional powers, e.g. D½x = 2√x/√π

And of course repeating D½ two times yields D½D½ = D, which simply is taking the first derivative.

The operator D can also be used as argument of (analytic) functions, e.g. eD (here e is the base of the natural logarithm, the number 2.7182818....) and this thing can be applied as operator to functions, e.g.

[eaD]f(x) = f(x+a) for any function f and any constant a.

Here eaD is not a function, but a functional.



[Edited on 19-3-16 by woelen]

blogfast25 - 19-3-2016 at 10:10

And related to the operator Del, is the nabla:

$$\nabla=\Big(\frac{\partial}{\partial x},\frac{\partial}{\partial y},\frac{\partial}{\partial z}\Big)$$

and:

$$\nabla^2$$

But I think we're starting to 'show off', as this thread is mainly intended for the education of the calculus-impaired. :D

aga - 19-3-2016 at 12:15

Oh dear.

Late for class again. What is going on ?

Latex, derivatives and nablas !

Might have to copy someone's homework. Anybody ? Please ?

Maybe i can get away with trying out some Latex ...

$$aga_{sober}=-\frac{bloggers_{drunk}}{0}$$

blogfast25 - 19-3-2016 at 15:58

$$=-\infty$$

You tryin' to tell me somethang, mistah? :)

So, what can we do by way of... ermm... remedial classes?


aga - 20-3-2016 at 10:28

Erm, reading the thread, it all looks a bit over my head.

The Rules thing kinda suggests that despite the 'orrible algebraic complexity, some Genii have worked out some easy-to-apply rules that basically make it a lot simpler if you just follow those rules.

Is that right, or did i just imagine an easy way ?

[Edited on 20-3-2016 by aga]

blogfast25 - 20-3-2016 at 13:21

Quote: Originally posted by aga  

Is that right, or did i just imagine an easy way ?



Yes, that's definitely what they're there for: make derivations easier.

Do you have problems with these:

http://www.sciencemadness.org/talk/viewthread.php?tid=65532#...

Send answers by U2U, if you prefer. :)

[Edited on 20-3-2016 by blogfast25]

aga - 20-3-2016 at 14:32

Quote: Originally posted by blogfast25  
Do you have problems with these

No, because i'm amazing and am so incredibly awesome that i can eat peanuts ... and my mom has a car ! etc etc.

Honest answer : Yes.

I have not got a Clue how you would even attempt those questions, despite reading, printing, then re-reading your erstwhile explanations.

Add-ups, take-aways, times-bys, share-bys, basic algebra, and possibly some trigOhNometry : they are all OK, as in i understand most of those, i.e. had a basic education.

yobbo I - 20-3-2016 at 14:54


Keep your socks pulled up there blogfast. There is some serious competition out there!

https://www.coursera.org/learn/calculus1?siteID=.GqSdLGGurk-...

Thanks for the bit about the infitesmals, never knew that or unstood when they were moved about.

[Edited on 20-3-2016 by yobbo I]

blogfast25 - 20-3-2016 at 16:35

Quote: Originally posted by aga  

Add-ups, take-aways, times-bys, share-bys, basic algebra, and possibly some trigOhNometry : they are all OK, as in i understand most of those, i.e. had a basic education.


Ok. If you want to carry on with this 'course', you'll have to 'help me, help you'. I don't understand well enough what causes you to struggle with:

$$y=ax^n$$

Ergo:

$$y'=(ax^n)'=a(x^n)'=a \times nx^{n-1}=anx^{n-1}$$

Maybe try and explain better what you're struggling with? Here or by U2U?


Quote: Originally posted by yobbo I  

Thanks for the bit about the infinitesimals, never knew that or understood when they were moved about.


Thanks.

[Edited on 21-3-2016 by blogfast25]

aga - 21-3-2016 at 03:49

Quote: Originally posted by blogfast25  
Maybe try and explain better what you're struggling with? Here or by U2U?

I;m still staring at these http://www.sciencemadness.org/talk/viewthread.php?tid=65532#... and wonding what to do.

If you could work through example 1, that would be enormously helpful.

j_sum1 - 21-3-2016 at 04:31

Ok. These are easy. You ca manage them aga.
Drop the power by one.
The new coefficient is the old coefficient multiplied by the old power.
Repeat for each term in the polynomial.


So, if
$$y= 3x^5 + 2x^3 - 9x^2 + 6x +11$$

$$y'=15x^4 + 6x^2 -18x +6$$


The x is infact x^1. It degenerates to x^0 on differentiating. x^0 is of course 1 and so you are left with the coefficient only.

The constant term is a term in x^0. This degenerates to zero on differentiating. There are multiple ways of thinking that through. It is worth pausing to think that one through carefully and convince yourself as to why.
As so often happens, it is the so-called easy ones that are tricky because something simplifies out of sight and the notation starts to alter.

blogfast25 - 21-3-2016 at 05:18

Quote: Originally posted by aga  
Quote: Originally posted by blogfast25  
Maybe try and explain better what you're struggling with? Here or by U2U?

I;m still staring at these http://www.sciencemadness.org/talk/viewthread.php?tid=65532#... and wonding what to do.

If you could work through example 1, that would be enormously helpful.


OK.

Ex. 1:

Derive:

$$(-5x^4)'$$

As -5 is a constant we put it upfront (proof: product rule):

$$(-5x^4)'=-5(x^4)'$$

To derive x4, put the exponent 4 upfront, then reduce the exponent by 1:

$$(x^4)'=4x^3$$

Put it all back together:

$$(-5x^4)'=-5(x^4)'=-5(4x^3)=-20x^3$$

Ex. 3:

$$u=2+5x^{-8}$$

This is a sum, so the derivative is the sum of the derivatives that make up the sum:

$$u'=(2)'+(5x^{-8})'$$

$$(2)'=0$$

$$(5x^{-8})'=5(x^{-8})'=5(-8x^{-9})=-40x^{-9}$$

$$u'=0-40x^{-9}=-40x^{-9}$$

Ex. 5: (the hardest one)

$$z=2-x+ax^{\pi-b}$$

This is a sum (and a difference) of three terms. Derive each term individually, then add them up again:

$$(2)'=0$$

$$(x)'=1$$

$$(ax^{\pi-b})'=a(x^{\pi-b})'=a[(\pi-b)x^{\pi-b-1}]=a(\pi-b)x^{\pi-b-1}$$

Adding up:

$$z'=-1+a(\pi-b)x^{\pi-b-1}$$

<hr>

Recapping:

1. The derivative of a constant (a) equals zero:
$$(a)'=0$$

2. The derivative of x equals 1:
$$(x)'=1$$

3. Constant rule:

$$(af(x))'=af'(x)$$

4. Power rule:

$$(x^n)'=nx^{n-1}$$

5. Sum rule:

$$[f(x)+g(x)]'=f'(x)+g'(x)$$

6. Product rule:

$$[f(x)g(x)]'=f'(x)g(x)+f(x)g'(x)$$

(we'll recap the quotient rule and the chain rule again, later)


blogfast25 - 21-3-2016 at 05:21

Thank you, j_sum1.

woelen - 21-3-2016 at 05:59

Another thing which may help making it more easy to remember is to combine the product rule and chain rule in order to derive the quotient rule. No need to memorize the quotient rule.

[f(x)/g(x)]' can be written as [f(x)u(x)]', where u(x) = 1/g(x).

Now apply the product rule:

[f(x)u(x)]' = f'(x)u(x) + f(x)u'(x)

Next, apply the chain rule for deriving the derivative of u(x) = 1/g(x). Here, 1/g(x) can be written as h(g(x)), with h(x) = 1/x.

[h(g(x))]' = h'(g(x))g'(x).

h'(x) = -1/x2, hence h'(g(x)) = -1/[g(x)]2, hence u'(x) = -g'(x)/[g(x)]2

Now we have all in place to express [f(x)/g(x)]' in terms of f(x), g(x), f'(x) and g'(x):

f'(x)u(x) + f(x)u'(x) = f'(x)/g(x) - f(x)g'(x)/[g(x)]2

Taking everything under the same denominator we get

[f(x)/g(x)]' = [f'(x)g(x) - f(x)g'(x)]/[g(x)]2

-----------------------------------------------------

The only way to make it really is easy is doing/exercising it. Just take derivatives of many different functions and soon you'll see that you naturally apply the product rule and chain rule correctly. I never felt the need to memorize the quotient rule.

Practice, practice and practice!


[Edited on 21-3-16 by woelen]

aga - 21-3-2016 at 08:33

Many thanks for taking the trouble to show the workings.

i think i got it !

If i did understand it , then Excercise 2 should go like this ...
$$y=2-3x^4+x^6$$
$$y'=0-3(4x^3)+6x^5$$
$$y'=6x^5-12x^3$$

Semantics difficulties : How do you actually say these two, and what is the difference ?
$$f'(x)$$
$$f(x)'$$
First derivative of function f ?

Edit:

Exercise 4 should go like :-
$$v=x-2$$
$$v'=1-0=1$$


[Edited on 21-3-2016 by aga]

blogfast25 - 21-3-2016 at 09:38

Yup, history in the making: first successful derivations (2) by aga on SM! Lift off but we probably need a bit more 'lift' to come.

$$f'(x)=f(x)'=(f(x))'=[f(x)]'$$

... Are all synonymous and can all be used. I prefer f'(x): "the (first) derivative of the function f of x".

Woelen is right on all counts and as with all things, practice makes perfect! So I'll bring on some more specifically chosen examples tonight.

As you've guessed we're now all ganging up on you and further resistance is futile. You're in a corner: either hoist the white flag or fight your way out of it! We WILL teach you some calculus, whether you like it or not, hombre!:cool:

aga - 21-3-2016 at 11:51

Um, it looked a lot harder : a LOT harder.

Sorry for the prevarication.

Edit:

Is a Green flag OK ?

Just the hanky got used and it's a bit icky now.

[Edited on 21-3-2016 by aga]

blogfast25 - 21-3-2016 at 13:07

We'll accept green.

The following for today/tomorrow:

Polynomials:

$$y=3x^{-2}-7x^3+x^2-19$$
$$u=ax^3-bx^2+c\:\text{(where a, b and c are constants)}$$
$$z=3x^a-5x^b\:\text{(where a and b are constants)}$$

Product rule exercises:

Worked example:

$$f(x)=(2x-9)(5-x^2)$$

$$f'(x)=(2x-9)'(5-x^2)+(2x-9)(5-x^2)'=2(5-x^2)+(2x-9)(-2x)$$

Further simplified:

$$f'(x)=10-2x^2-4x^2+18x=10+18x-6x^2$$

Exercises:

$$y=x^{-2}(3x-5)$$
$$u=(2x^7+a)(x^6-b)\:\text{(where a and b are constants)}$$
$$z=(x-1)\sin x\:\text({note: (sin x)'=cos x})$$

Quotient rule exercises:

Worked example:

$$f(x)=\frac{2x-a}{3x+a}$$

$$f'(x)=\frac{(2x-a)'(3x+a)-(2x-a)(3x+a)'}{(3x+a)^2}$$

$$f'(x)=\frac{2(3x+a)-(2x-a)3}{(3x+a)^2}$$

$$f'(x)=\frac{5a}{(3x+a)^2}$$

Exercises:

$$y=\frac{\sin x}{x}$$

$$u=\frac{x^3-1}{\sqrt{x}}$$

$$\text{note:}\:\sqrt{x}=x^{\frac12}$$

$$z=\frac{\ln x}{x-5}\:\text{(note: (lnx)'=1/x)}$$

aga - 21-3-2016 at 13:15

OK. Thanks. Will get head-scratching on those.


One bit i cannot fathom from much earlier is
$$\frac{x}{y}=0$$
how can any combination = 0, even with the extra special case of x=y=0 ?

Edit:

... and what is a polynomial actually ? (googled, still unsure)

[Edited on 21-3-2016 by aga]

aga - 21-3-2016 at 13:31

The latex is tricky to get right 1st time (easier on paper).

One by one ...

$$y=3x^{-2}-7x^3+x^2-19$$
$$y'=3(-2x^{-3})-7(3x^2)+x+0$$
$$y'=-6x^{-3}-21x^2+x$$

aga - 21-3-2016 at 13:34

next ...
$$u=ax^3-bx^2+c\:\text{(where a, b and c are constants)}$$
Eh ? if they're constants their derivitives are zero, so ..
$$u'=0$$

aga - 21-3-2016 at 13:40

next ...
$$z=3x^a-5x^b\:\text{(where a and b are constants)}$$
Hmm.
$$z' = 3(ax^{a-1})-5(bx^{b-1})$$
Erm, we're done processing the derivative rules, so i guess that's the answer. Maybe expand the brackets :-
$$z'=3ax^{a-1}-5bx^{b-1}$$

aga - 21-3-2016 at 14:07

next ...
$$y=x^{-2}(3x-5)$$
oooh ! i think the product rule applies
$$y'=(x^{-2})'(3x-5) + (x^{-2})(3x-5)'$$
$$y'=(-2x)(3x-5)+3(x^{-2})$$
$$y'=-6x^2+10x+3x^{-2}$$

aga - 21-3-2016 at 14:32

next ...
$$u=(2x^7+a)(x^6-b)\:\text{(where a and b are constants)}$$
product rule again ...
$$u' = (2x^7+a)'(x^6-b)+(2x^7+a)(x^6-b)'$$
so ...
$$u' = (2(7x^6) +0)(x^6-b)+(2x^7+a)(6(x^5)-0)$$
$$u' = (14x^6)(x^6-b)+(2x^7+a)(6x^5)$$
multiply out ...
$$u'=14x^{12}-14bx^6 + 12x^{12} +6ax^5$$
simplify...
$$u'=26x^{12}-14bx^6+6ax^5$$



aga - 21-3-2016 at 14:34

i do hope i get to keep my snotty hanky, at least for re-arranging the answers so the biggest exponent comes first.

aga - 21-3-2016 at 14:46

next ...
$$z=(x-1)\sin x\:\text({note: (sin x)'=cos x})$$
Erm, product rule again, maybe ...
$$z'=(x-1)'(sin x)+(x-1)(sin x)'$$
$$z'=sin x + cos x (x-1)$$
$$z'=sin(x) +x cos(x)-cos(x)$$
No idea which term would be bigger so i guess i lost the hanky.

The cos(x)-cos(x) and the sin(x) all look kinda familiar.
Is there a rule that says xcos(x)-cos(x) = twelvety ?

aga - 21-3-2016 at 15:02

The next ones look harder.

Here goes ..
$$y=\frac{\sin x}{x}$$
Quotient rule (why they don't call it the Divide-By rule is a mystery)
$$y'=\frac{x sin(x)'-sin(x)x'}{x^2}$$
$$y'=\frac{xcos(x)-sin(x)}{x^2}$$
I got a bad feeling about this one.

woelen - 21-3-2016 at 15:05

Your results are quite good, but there are some calculation errors. I do not think these are due to lack of understanding, but due to being somewhat imprecise. With these calculus-things you have to be very precise.

Where things are wrong I will put a response to that post.

woelen - 21-3-2016 at 15:08

Quote: Originally posted by aga  
The latex is tricky to get right 1st time (easier on paper).

One by one ...

$$y=3x^{-2}-7x^3+x^2-19$$
$$y'=3(-2x^{-3})-7(3x^2)+x+0$$
$$y'=-6x^{-3}-21x^2+x$$


The more complicated term is OK, but you made a mistake with the simple x2. The derivative is not x, but 2x. The total answer should be $$y'=-6x^{-3}-21x^2+2x$$

woelen - 21-3-2016 at 15:12

Quote: Originally posted by aga  
next ...
$$u=ax^3-bx^2+c\:\text{(where a, b and c are constants)}$$
Eh ? if they're constants their derivitives are zero, so ..
$$u'=0$$

The numbers a and b are constants, but they are multiplied with powers of variable x. Using the power rule you get

$$3ax^2 - 2bx$$

The constant c indeed leads to value 0, hence it disappears from the final result.

woelen - 21-3-2016 at 15:17

Quote: Originally posted by aga  
next ...
$$y=x^{-2}(3x-5)$$
oooh ! i think the product rule applies
$$y'=(x^{-2})'(3x-5) + (x^{-2})(3x-5)'$$
$$y'=(-2x)(3x-5)+3(x^{-2})$$
$$y'=-6x^2+10x+3x^{-2}$$

The derivative of x-2 is equal to -2x-2-1 = -2x-3.

You did the correct factor -2, but for the power you did as if it is +2 and hence you end up with -2x for the derivative of x-2. This seems to me like understanding the rules, but not being sufficiently precise/meticulous.

blogfast25 - 21-3-2016 at 15:27

@aga:

Not sure where you're coming from with:

$$\frac{x}{y}=0$$

That would be true for:

$$x=0\:\text{OR:}y=\infty$$

But I don't see where I brought it up?

Perhaps you meant:

$$\frac{\Delta x}{\Delta y}$$

A polynomial: a sum of terms of the general form:

$$ax^2$$

E.g.:

$$y=2+3x-x^5$$

... is a polynomial.

Exercises:

$$y'=3(-2x^{-3})-7(3x^2)+x+0$$

... is a very minor error, should have been:

$$y'=3(-2x^{-3})-7(3x^2)+2x+0$$

The next one was wrong. a, b and c are constants but u is definitely a function of x and its derivative is:

$$u'=3ax^2-2bx$$

Next:

$$z'=3ax^{a-1}-5bx^{b-1}$$

... is 100 % correct.

Next:

$$y'=-6x^2+10x+3x^{-2}$$

... see woelen

Next:

$$u'=26x^{12}-14bx^6+6ax^5$$

... is 100 % correct. Well done also on simplifying it.

Next:

$$z'=\sin(x) +x \cos(x)-\cos(x)$$

... is 100 % correct.

<hr>

Looks like you're getting the hang of it.

Your prize: a bit of reminder algebra of powers: :D just in case.

$$x^nx^m=x^{n+m}$$

$$\frac{x^n}{x^m}=x^{n-m}$$

$$\Big(x^n\Big)^m=x^{nm}$$

$$x^0=1$$

$$\frac{1}{x^n}=x^{-n}$$

$$\sqrt{x}=x^\frac12$$

$$\sqrt[n]{x}=x^\frac1n$$


[Edited on 21-3-2016 by blogfast25]

aga - 21-3-2016 at 15:28

Many thanks for taking the time to analyse and correct the errors woelen.

It is very much appreciated.

Some innacurracies can be attributed to being a Noob to calculus.

Yes, any slight error can easily throw the final result into chaos, so meticulousness is required for this.

Likely that the majority of the errors can be put down to the fact that it's almost half-past midnight here and i'm not exacty sober.

aga - 21-3-2016 at 15:35

Erm., bloggers, you do realiase that by posting those 'reminders' that you're giving away the secrets of the illuminati (which i print out and guard jealously) and that they might try to stop you one day ?

Woohoo ! I got some right !

blogfast25 - 21-3-2016 at 15:36

Quote: Originally posted by aga  
The next ones look harder.

Here goes ..
$$y=\frac{\sin x}{x}$$
Quotient rule (why they don't call it the Divide-By rule is a mystery)
$$y'=\frac{x sin(x)'-sin(x)x'}{x^2}$$
$$y'=\frac{xcos(x)-sin(x)}{x^2}$$
I got a bad feeling about this one.


... is correct.



[Edited on 21-3-2016 by blogfast25]

aga - 21-3-2016 at 15:39

That's 4 out of 38 which is 100% !

Woohoo !

blogfast25 - 21-3-2016 at 15:45

Quote: Originally posted by aga  
That's 4 out of 38 which is 100% !

Woohoo !


Give or take:

$$\sqrt{c-5}$$

blogfast25 - 21-3-2016 at 15:46

Tomorrow:

Simple chain rule exercises. Fun and games!

blogfast25 - 21-3-2016 at 19:28

This exercise got a bit overlooked, so I'll just post the solution here:

$$z=\frac{\ln x}{x-5}\:\text{(note: (lnx)'=1/x)}$$

Solution:

$$z'=\frac{(\ln x)'(x-5)-\ln x (x-5)'}{(x-5)^2}$$

$$z'=\frac{\frac1x (x-5)-\ln x}{(x-5)^2}$$

Simplified:

$$z=\frac{x-x\ln x-5}{x(x-5)^2}$$

blogfast25 - 22-3-2016 at 08:05

1. Chain rule exercises:

Recapping the rule. If:

$$f(u)$$

with u a function of x:

$$u(x)$$

Then:

$$f'(x)=f'(u) \times u'$$

Worked example:

$$f(x)=\sqrt{3x^2+5x-8}$$

$$f'(x)=\frac12(3x^2+5x-8)^{-\frac12}(3x^2+5x-8)'$$

$$f'(x)=\frac{6x+5}{2\sqrt{3x^2+5x-8}}$$
Simple exercises:
$$y=\sin (2x^3)$$
$$u=(1+\cos x)^4$$
$$v=\Big(a+\frac1x\Big)^2$$
$$z=\ln (x^5+1)$$

2. Chain rule exercises with exponential functions:

If, with e = 2.71828182845904523536028747135266249775724709369995... :

$$f(x)=e^x$$

Then:

$$f'(x)=e^x$$

(Yep, it's that simple: the derivative of the function is the function itself!)

Now, if:

$$f(x)=e^{u(x)}$$

With u a function of x, then:

$$f'(x)=e^{u(x)} \times u'(x)$$

Example:

$$f(x)=e^{3x}$$

$$f'(x)=e^{3x}(3x)'=3e^{3x}$$

Exercises:

$$y=e^{x+1}$$
$$u=e^{x^2-3}$$
$$v=e^{\sin x}$$
$$z=e^{\sqrt{2-x^3}}$$
$$f=e^{0.5231x}$$


aga - 22-3-2016 at 13:15

Not sure where to go with these chain rule exercises.

Here's what i imagine needs doing for the first one :-

$$y=sin (2x^3)$$
$$y'=[sin(2x^3)]'(2x^3)'$$
$$y'=cos(2x^3).6x^2$$

The y' bit seems wrong as does the application of the rule.

aga - 22-3-2016 at 16:02

I forgot that all the Masters of the B&D Uni go on the traditional bar and brothel crawl during Easter Week.

Oh well, perhaps these will work out OK.
If not it'll be rubbing linseed oil into the school Cormorant for a week.

next
$$u=(1+cos x)^4$$
$$u'=[(1+cosx)^4]'.(1+cosx)'$$
$$u'=4(1+cosx)^3.-sinx$$

next (presuming a is a constant)
$$v=\Big(a+\frac1x\Big)^2$$
$$v'=\Big[(a+\frac1x)^2]'\Big.(a+\frac1x)'$$
$$v'=2\Big(a+\frac1x)\Big.-x^{-2}$$

next
$$z=\ln (x^5+1)$$
$$z'=[ln(x^5+1)]'.(x^5+1)'$$
$$z'=\frac{5x^4}{x^5+1}$$

next
$$y=e^{x+1}$$
$$y'=e^{x+1}(x+1)'$$
$$y'=e^{x+1}$$

next
$$u=e^{x^2-3}$$
$$u'=e^{x^2-3}.(x^2-3)'$$
$$u'=e^{x^2-3}.2x$$

next
$$v=e^{sin x}$$
$$v'=e^{sinx}(sinx)'$$
$$v'=e^{sinx}.cosx$$

next
$$z=e^{\sqrt{2-x^3}}$$
$$z'=e^{\sqrt{2-x^3}}.(\sqrt{2-x^3})'$$
$$z'=e^{\sqrt{2-x^3}}.((2-x^3)^{\frac12})'$$
$$z'=e^{\sqrt{2-x^3}}.\frac12(2-x^3)^{-\frac12}$$

finally
$$f=e^{0.5231x}$$
$$f'=e^{0.5231x}.(0.5231x)'$$
$$f'=e^{0.5231x}.0$$
$$f'=0$$

[Edited on 23-3-2016 by aga]

blogfast25 - 22-3-2016 at 16:56

@aga:

Apart from a few silly mistakes they're all good!

Wrong:

$$v'=2\Big(a+\frac1x)\Big.-x^{-2}$$

I think you just forgot to put in the multiplication sign. It should have been:


$$v'=2\Big(a+\frac1x\Big).-x^{-2}$$
Simplified:

$$v'=-\frac{2}{\sqrt{x}}\Big(a+\frac1x\Big)$$

Wrong but it was a hard one:


$$z'=e^{\sqrt{2-x^3}}.\frac12(2-x^3)^{-\frac12}$$

You still need to derive:

$$(2-x^3)'=-3x^2$$

and tag it onto your result, so it becomes:

$$z'=e^{\sqrt{2-x^3}}.\frac12(2-x^3)^{-\frac12}.(-3x^2)$$

Cleaned up:

$$z'=-\frac{3x^2}{2\sqrt{2-x^3}}e^{\sqrt{2-x^3}}$$

Wrong and very silly mistake:

$$f'=e^{0.5231x}.0$$

0.5231 is just a constant, so the derivative should have been:

$$f'=0.5231e^{0.5231x}$$

All in all fantastic progress, also on the LaTex! :cool::):D:cool::):D

Last smallish batch of mixed exercises tomorrow, before normal service is resumed.

Stay tuned!

[Edited on 23-3-2016 by blogfast25]

aga - 23-3-2016 at 00:13

Not too bad for a beginner i guess.

This shakes the foundations a bit :
$$(2-x^3)'=-3x^2$$

Doesn't it go like this ? :
$$(2-x^3)'=2(-x^3)'$$
$$=2(-3x^2)$$
$$=-6x^2$$

I cannot quite see how you've cleaned up that square-rooty one.

Will try it myself later.

j_sum1 - 23-3-2016 at 00:24

Nope. The 2 is just a constant.

On phone so won't attempt latex.

It ptobably looks more familiar written:

y= -x^3 + 2

y' = -3x^2

blogfast25 - 23-3-2016 at 06:40

The last five. They're not particularly difficult but I have 'mixed things up a bit':

$$y=\frac{4\cos x}{\sin 2x}+3x$$
$$u=x^3e^{2-x}$$
$$v=(x^2+x+1)e^x+\frac{1}{x-1}$$
$$z=[\ln(x-2)]^3$$
$$f=x^2\sqrt [3] {x^3-1}$$

Remember: loose talk costs lives, keep calm and carry on and a faulty derivative will set a missile on its creator rather than take to the skies! ;)

aga - 23-3-2016 at 09:11

$$y=\frac{4\cos x}{\sin 2x}+3x$$
It looks like the sum rule and the quotient rule apply, so i'll venture :
$$y'=\Big(\frac{4cosx}{sin2x}\Big)'+(3x)'$$
$$y'=\frac{(4cosx)'(sin2x)-(4cosx)(sin2x)'}{(sin2x)^2}+(3x)'$$
$$y'=\frac{(-4sinx)(sin2x)-(4cosx)(cos2x)}{(sin2x)^2}+3$$


[Edited on 23-3-2016 by aga]

aga - 23-3-2016 at 09:54

Quote: Originally posted by j_sum1  
Nope. The 2 is just a constant.

It probably looks more familiar written:

y= -x^3 + 2

y' = -3x^2

Ah yes. Stupid mistake. I mistook it for a co-efficient somehow.

Cheers j_sum1.

aga - 23-3-2016 at 12:16

$$u=x^3e^{2-x}$$
Product rule ?
$$u=(x^3)(e^{2-x})$$
$$u'=(x^3)'(e^{2-x})+(x^3)(e^{2-x})'$$
... and the 'e' thing ...
$$u'=3x^2e^{2-x}+x^3e^{2-x}$$


blogfast25 - 23-3-2016 at 13:36

Minor error in y’, because:

$$(\sin 2x)’=2 \cos 2x$$

If in doubt:

Set:

$$u=2x$$

$$(\sin u)’= \cos u \times u’=\cos 2x (2x)’= 2 \cos 2x$$

Same type of mistake here:
$$u'=(x^3)'(e^{2-x})+(x^3)(e^{2-x})'$$

$$u'=3x^2e^{2-x}+x^3e^{2-x}(2-x)’$$

$$u'=3x^2e^{2-x}+x^3e^{2-x}(-1)$$
$$u'=3x^2e^{2-x}-x^3e^{2-x}$$

Further simplified:

$$u'=x^2 (3-x) e^{2-x}$$


[Edited on 23-3-2016 by blogfast25]

aga - 23-3-2016 at 14:07

$$v=(x^2+x+1)e^x+\frac{1}{x-1}$$
erm, er ... addition rule
$$v=[(x^2+x+1)e^x]+[\frac{1}{x-1}]$$
product rule
$$(x^2+x+1)e^x$$
quotient rule
$$\frac{1}{x-1}$$
if so ... it seems that parallel processing is required for each side, so left term first, rmembering the e on ya melon man:
$$(x^2+x+1)'(e^x)+(x^2+x+1)(e^x)'$$
$$=(2x+1)e^x+(x^2+x+1)e^x$$
simplify
$$v'=e^x(x^2+3x+2)$$
right side
$$\frac{(x+1)-(x+1)'}{(x+1)^2}$$
$$=\frac{x}{(x+1)^2}$$
result (hopefully) being :
$$=e^x(x^2+3x+2)+\frac{x}{(x+1)^2}$$


[Edited on 23-3-2016 by aga]

aga - 23-3-2016 at 14:14

Christ ! so the tiniest cock-up leads to enormously different results.

woelen is right : 100% meticulous or do not bother when it comes to these calculations.

Now might be a good time to ask what they are used for, as in what they apply to in the real world.

Edit:

Considering the difficulty of of Latex encoding, plus the first 'proper' view of the post after editing/previewing/posting, it might be a good idea if the word 'final' was placed at the bottom of the post to signify that no further edits are to be made.

On another note, how come a 49 year old drunkard is the only person attempting these questions (and the latex encoding) ?

Where are all the seriously Smart young bucks ?

Probably jerking off in World of Warcraft etc.

Sad it's just me, again.

It's also a telling judgement on the character of the yobbo, Cou, LG2, quantumwhatever type trolls that they simply cannot focus their attention on a subject for more than 5 seconds in order to learn something new.

If they Could, they'd get the near 1:1 attention i appear to get here, and from a Great teacher !

(Hmm. Maybe 2:1 cos i want to learn stuff too)

[Edited on 23-3-2016 by aga]

blogfast25 - 23-3-2016 at 15:19

$$v'=e^x(x^2+3x+2)+\frac{x}{(x+1)^2}$$

... is spot on. Shows how being meticulous pays off. Do things in bite-size chunks.

Quote: Originally posted by aga  
Christ ! so the tiniest cock-up leads to enormously different results.

woelen is right : 100% meticulous or do not bother when it comes to these calculations.

Now might be a good time to ask what they are used for, as in what they apply to in the real world.



As regards applications, the first ones are coming up after these final exercises have been nailed.

aga - 23-3-2016 at 15:43

Tantalatiousness !

I imagined a Spiral, where the change from one bit at the outside didn't change much between two points, then as you travel closer to the centre, the change increases, and Probably the rate-of-change increases.

Beyond that, pretty clueless how these Fab maths tricks can be, applied, never mind actually used.

Hang on. If i were on a spiral train ride, and the car i was in were accellerating down the track, than i got a rate-of-change-of-a-rate-of-change or something like that.

So deltaV=vomit ?

[Edited on 23-3-2016 by aga]

aga - 23-3-2016 at 15:54

Bugger. 2 more to do, and they look harder.

Late here so tomorrow sirrah'

N.B. not the first derivative of (sirrah) but a shakespearean device.

blogfast25 - 23-3-2016 at 15:58

Quote: Originally posted by aga  

So deltaV=vomit ?



Maybe but what about :

$$z'$$

and

$$f'$$

?? :)

aga - 23-3-2016 at 16:12

1 and 1.

Bed time. Oooh ! That sounds pervy !

The derivative of that statement is that i'm off to bed to give my liver some downtime.

aga - 24-3-2016 at 12:54

OK. z' and f' :
$$z=[\ln(x-2)]^3$$
power and chain rules ?
$$z'=3[ln(x-2)']^2$$
$$z'=3\Big(\frac1{x-2}\Big)^2$$

aga - 24-3-2016 at 13:12

$$f=x^2\sqrt [3] {x^3-1}$$
$$f=x^2(x^3-1)^\frac13$$
Power rule & Product rule
$$f'=(x^2)'(x^3-1)^\frac13+(x^2)[(x^3-1)^\frac13]'$$
$$f'=2x(x^3-1)^\frac13+x^2\frac13(x^3-1)^{-2/3}$$
$$f'=2x\sqrt[3]{x^3-1}+\frac{x^2}{3}\frac{1}{(x^3-1)^{2/3}}$$

Crap. I thought the -1/7 looked wrong.
1 sec please - learning about fractional powers where the dividend isn't 1...

[Edited on 24-3-2016 by aga]

[Edited on 24-3-2016 by aga]

aga - 24-3-2016 at 13:47

ok.
$$f'=2x\sqrt[3]{x^3-1}+\frac{x^2}{3}\frac{1}{(x^3-1)^{\frac23}}$$
$$f'=2x\sqrt[3]{x^3-1}+\frac{x^2}{3}\frac{1}{((x^3-1)^{\frac13})^2}$$
$$f'=2x\sqrt[3]{x^3-1}+\frac{x^2}{3}\frac{1}{(\sqrt[3]{x^3-1})^2}$$
$$f'=2x\sqrt[3]{x^3-1}+\frac{x^2}{3(\sqrt[3]{x^3-1})^2}$$
final.

The LaTeX command syntax is getting almost as intense as the maths ...

blogfast25 - 24-3-2016 at 14:58

Not really:

$$z'=3[\ln(x-2)']^2$$

Should be:

$$z'=3[\ln(x-2)]^2 \times [\ln(x-2)]'$$

$$z'=3[\ln (x-2)]^2 \frac{1}{x-2}(x-2)'$$

$$z'=3[\ln (x-2)]^2 \frac{1}{x-2}$$

Also:

$$f'=(x^2)'(x^3-1)^\frac13+(x^2)[(x^3-1)^\frac13]'$$

is correct but should become:

$$f'=2x(x^3-1)^\frac13+x^2\frac13(x^3-1)^{-2/3}(x^3-1)'$$

Etc...

Now have a look this, before we resume 'normal service':

<hr>
A little supplement for aga, about rate of change...

Imagine an object (symbolised by the star), moving along a horizontal x axis:

Velocity and acceleration.png - 2kB

We don’t know at what speed the object moves or whether that speed is constant or not. Now assume the object changes position from x<sub>1</sub> to x<sub>2</sub>, between time t<sub>1</sub> and t<sub>2</sub>. Then with:

$$\Delta x=x_2-x_1$$
and:
$$\Delta t=t_2-t_1$$
The average speed between these points would be:

$$v_{average}=\frac{\Delta x}{\Delta t}$$

But v<sub>average</sub> tells us almost nothing about how the speed differs from one instant to another.

To find the instantaneous speed in every instant t we need to calculate:

$$v(t)=\lim_{\Delta t \to 0} \frac{\Delta x}{\Delta t}=\frac{dx}{dt}$$

v(t) is the rate of position (x) change in time (syn.: as a function of time). If:

$$\frac{\Delta x}{\Delta t}=C$$

... with C a constant, then obviously the speed is constant: the rate of position change in time is then:

$$v(t)=C\:\mathrm{m/s}$$

But if:

$$v(t) \neq C$$

Then v(t) will be some function of time.

In that case we can define another rate of change: the rate at which v changes in time and it's called the acceleration a. It can be defined analogously to the above reasoning as:

$$a=\frac{dv(t)}{dt}$$

In the (frequent) case where the acceleration is constant, say:

$$a=\frac{dv}{dt}=3\:\mathrm{m/s^2}$$

... then speed will increase by 3 m/s every second. The rate of change of speed then is 3 m/s<sup>2</sup> or 3 m/s per second.

Of course an object may also be decelerating, in that case:

$$a=\frac{dv}{dt}<0$$
<hr>
Exercise:

If:

$$x(t)=3t^2+2t+4$$
Then what is:

$$v(t)$$

and:

$$a(t)$$


[Edited on 25-3-2016 by blogfast25]

aga - 25-3-2016 at 13:38

Sorry, still fumbling about in the earlier errors, trying to see where i went disastrously wrong.

Very confused about what Rule applies where, and to which bits.

This is all new, so no experience to draw on.

I do wish somebody else would wish to learn this stuff.

It would be helpful to see how others approach a problem like these and how they'd solve it.

I guess all the nacent genii are all afraid that they'd come second to a drunkard. sigh. unlikely !

[Edited on 25-3-2016 by aga]

blogfast25 - 25-3-2016 at 14:36

Quote: Originally posted by aga  
Sorry, still fumbling about in the earlier errors, trying to see where i went disastrously wrong.

Very confused about what Rule applies where, and to which bits.

This is all new, so no experience to draw on.

I do wish somebody else would wish to learn this stuff.

It would be helpful to see how others approach a problem like these and how they'd solve it.

I guess all the nacent genii are all afraid that they'd come second to a drunkard. sigh. unlikely !



No, can't disagree with any of that.

Let me try again:

$$z=[\ln(x-2)]^3$$

Let's call:

$$p=\ln(x-2)$$

So:

$$z=p^3$$

$$z'=3p^2 \times p'$$

To find p', we have to apply the chain rule again:

$$p'=\frac{1}{x-2} \times (x-2)'=\frac{1}{x-2} \times 1=\frac{1}{x-2}$$
$$z'=3[\ln(x-2)]^2\frac{1}{x-2}$$

Another example:

$$f=[\sin (x^2)]^4$$

$$f'=4[\sin (x^2)]^3 \times [\sin (x^2)]'$$

$$[\sin (x^2)]'=\cos (x^2) \times (x^2)'=2x\cos (x^2)$$

So:

$$f'=8x[\sin (x^2)]^3\cos (x^2)$$

Optimisation problems:

blogfast25 - 26-3-2016 at 07:51

In this post it was shown that the derivative y’ of a function y can become zero for specific values of x, known as optima:

$$\Big(\frac{dy}{dx}\Big)_{x_{opt}}=y'(x_{opt})=0$$

This opens up the possibility of solving a whole range of optimisation problems: business owners want to maximise their profit function, rocket scientists look for the longest possible range of their missiles, industrial chemists want to maximise yield of their processes, car makers try to minimise fuel consumption of their creations, etc etc.

Most real world optimisation problems are multi-variable problems and mathematically outside the scope of this thread but below we’ll look at a few simple single variable problems.

1. Simple function:
$$y=(x-2)^2+5$$

To find the optimum:

$$y'=2(x-2)(x-2)'+0$$
$$y'=2(x-2)(1)=2(x-2)$$

Optimum:

$$y'=2(x-2)=0 \implies x=2$$
And:
$$y=5$$

This is in fact a minimum of the function y.

2. Window size optimisation problem:

A window of the following shape needs to be constructed:
Window optimisation.png - 2kB
The window maker has only 12 m of frame material to work with. What are the dimensions x and y so that the window has maximum surface area S?

The circumference of the window is:
$$L=2x+2y+\pi x=12$$
The surface area is given by:
$$S=2xy+\frac{\pi}{2} x^2$$
Extract y from the first equation:
$$y=6-x-\frac{\pi}{2}x$$
And insert it into the second one:
$$S=2x(6-x-\frac{\pi}{2}x)+\frac{\pi}{2}x^2$$
$$S=12x-2x^2-\pi x^2+\frac{\pi}{2}x^2$$
If we assume this function has an optimum, then:
$$\frac{dS}{dx}=12-4x-2\pi x+\pi x=0$$

$$x=\frac{12}{4+\pi}=1.68\:\mathrm{m}$$

$$y=1.68\:\mathrm{m}$$

3. Can optimisation problem:

A manufacturer wants to produce a 1500 cm<sup>3</sup> capacity can, using as little material as possible:

Can optimisation.png - 2kB

Total surface area of the can:
$$A=2\pi r^2+2 \pi rh$$
Total volume of the can:
$$V=\pi r^2h=1500\:\mathrm{cm^3}$$
Extract h from the second equation:
$$h=\frac{1500}{\pi r^2}$$
And insert it into the second one:
$$A=2\pi r^2+2 \pi r \frac{1500}{\pi r^2}=2\pi r^2+\frac{3000}{r}$$
To see if there’s an optimum, derive A to r:
$$\frac{dA}{dr}=4\pi r+\frac{0.r-3000}{r^2}=4\pi r-\frac{3000}{r^2}$$
Set the derivative to zero:
$$\frac{dA}{dr}=\frac{4\pi r^3-3000}{r^2}=0$$

We know that (always): $$r>0$$

So: $$4\pi r^3-3000=0$$
$$r=\sqrt[3]{\frac{3000}{4\pi}}=6.20\:\mathrm{cm}$$
$$h=12.4\:\mathrm{cm}$$

<hr>

Exercise:

It can be shown that the heat loss q (in Watt per unit of length) of a homogeneously insulated cylinder is given by:

$$q=\frac{\pi \Delta T}{\frac{1}{2k}\ln \frac{D}{d}+\frac{1}{hD}}$$

Insulation optimisation.png - 4kB

(Source)

Where T<sub>c</sub> is cylinder temperature, T<sub>a</sub> is ambient temperature, 2D is total diameter (insulation included), 2d is cylinder diameter. Note that:

$$\Delta T=T_c-T_a=\text{constant}$$

$$k\:\text{and}\:h\:\text{are both constants}$$

$$d=\text constant$$

Determine for which value of D, in function of k and h, q is minimised.

Hint:

Set:

$$q=\frac{\pi \Delta T}{u}$$

Then see if:

$$\frac{1}{u}$$

... has an optimum.


[Edited on 26-3-2016 by blogfast25]

aga - 26-3-2016 at 12:13

Quote: Originally posted by blogfast25  
Let's call:

$$p=\ln(x-2)$$

So:

$$z=p^3$$

$$z'=3p^2 \times p'$$

Gah !

So obvious once you showed it !

It's hard to think outside the bin-bag.

blogfast25 - 26-3-2016 at 12:25

Quote: Originally posted by aga  

So obvious once you showed it !

It's hard to think outside the bin-bag.


It's about seeing the 'structure' of the function: sums/subtractions, quotients and functions that are functions of other functions (chain rule).

aga - 26-3-2016 at 12:37

Quote: Originally posted by blogfast25  
To find the instantaneous speed in every instant t we need to calculate:

$$v(t)=\lim_{\Delta t \to 0} \frac{\Delta x}{\Delta t}=\frac{dx}{dt}$$

v(t) is the rate of position (x) change in time (syn.: as a function of time).

The "lim delta t->0" part is a mystery.

Basically i do not know how it is applied to the delta x/delta v part, so cannot compute the whole thing.

Sorry if my Density appears to be increasing.

 Pages:  1    3  ..  5