Finding the derivative of cosx from first principles

  • Thread starter BOAS
  • Start date
  • Tags
    Derivative
In summary: \lim_{\delta x \to 0} \frac{-2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\delta x}cos(x + \delta x) = cosx cos \delta x - sinx sin \delta x-\frac{2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\delta x} = -2sinx sin \frac{\delta x}{2} \frac{sin\frac{\delta x}{2}}{\delta x}= -2sinx sin \frac{\delta x}{2} \frac{sin\frac{\delta x}{2}}{\frac{\delta
  • #1
BOAS
553
19
Hello,

i'm confused by a certain step in my working for finding the derivative of cosx, I don't know for sure that it's right, but I'm following the same approach my book uses to show the derivative of sinx.

Homework Statement



Find [itex]\frac{d}{dx}[/itex][itex]cosx[/itex] from first principles.

Homework Equations


The Attempt at a Solution



I don't know how to show my limits in LaTeX so please excuse that. They are shown in my written working.

[itex]\frac{d}{dx}[/itex][itex]f(x)[/itex] = [itex]\lim_{\delta x \to 0}[/itex] [itex]\frac{f(x + \delta x) - f(x)}{\delta x}[/itex]

If [itex]f(x)[/itex] = [itex]cosx[/itex]

[itex]\frac{d}{dx}[/itex][itex]cosx[/itex] = [itex]\lim_{\delta x \to 0}[/itex] [itex]\frac{cos(x + \delta x) - cosx}{\delta x}[/itex]

[itex]cos(x + \delta x) - cosx \equiv -2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}[/itex] (the factor formulae)

[itex]\frac{d}{dx}[/itex][itex]cosx[/itex] = [itex]\lim_{\delta x \to 0}[/itex] [itex]-sin(x + \frac{\delta x}{2}) \frac{sin\frac{\delta x}{2}}{\frac{\delta x}{2}}[/itex]

It is that last step that I don't follow entirely. Frankly, I did it because a similar thing is done in my textbooks derivation of d/dx sinx. Specifically, I don't follow what they have done with the 2 that was in front of the trig identity. The bottom of the equation looks weird to me.

I go on to say (again the limits are shown in my written working)

[itex]\lim_{\delta x \to 0}[/itex] [itex] [-sin(x + \frac{\delta x}{2})][/itex] = [itex] -sinx[/itex]

[itex]\lim_{\delta x \to 0}[/itex] [itex][\frac{sin\frac{ \delta x}{2}}{\frac{\delta x}{2}}][/itex] = [itex]1[/itex] (i'm also a little unsure of why this last bit is equal to 1).

[itex]\frac{d}{dx}[/itex][itex]cosx[/itex] = [itex]-sinx[/itex]

I hope the bits that are confusing me are clear...

Thanks.

EDIT - To add in the limits
 
Last edited:
Physics news on Phys.org
  • #2
multiplying by 2 is the same as dividing by 1/2

ie to refactor the 2 multiply by the factor (1/2) / (1/2) so the two is canceled out and a 1/2 is left in the denominator of the fraction.
 
  • #3
So what's going on there is this;

[itex]cos(x + \delta x) - cosx \equiv -2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}[/itex]

[itex]\frac{-2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\delta x}* \frac{1/2}{1/2}[/itex] = [itex]\frac{-sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\delta x *1/2}[/itex] = [itex]\frac{-sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\frac{\delta x}{2}}[/itex]

[itex]\frac{d}{dx}[/itex][itex]cosx[/itex] = [itex]-sin(x + \frac{\delta x}{2}) \frac{sin\frac{\delta x}{2}}{\frac{\delta x}{2}}[/itex]

I think that makes sense.

Thanks.
 
  • #4
BOAS said:
So what's going on there is this;

[itex]cos(x + \delta x) - cosx \equiv -2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}[/itex]

[itex]\frac{-2sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\delta x}* \frac{1/2}{1/2}[/itex] = [itex]\frac{-sin(x + \frac{\delta x}{2})sin\frac{\delta x}{2}}{\delta x *1/2}[/itex] = [itex]\frac{-sin(x + \frac{\deltqa x}{2})sin\frac{\delta x}{2}}{\frac{\delta x}{2}}[/itex]

[itex]\frac{d}{dx}[/itex][itex]cosx[/itex] = [itex]-sin(x + \frac{\delta x}{2}) \frac{sin\frac{\delta x}{2}}{\frac{\delta x}{2}}[/itex]

I think that makes sense.

Thanks.

What you wrote is not correct:
[tex] \frac{d}{dx} \cos(x) \neq -\sin(x + \delta x /2)
\frac{\sin(\delta x /2)}{\delta x /2},[/tex]
because
[tex] \frac{d}{dx} \cos(x) \neq \frac{\cos(x + \delta x) - \cos(x)}{\delta x}[/tex]
What is true is
[tex] \frac{d}{dx} \cos(x) = \lim_{\delta x \to 0} \frac{\cos(x + \delta x) - \cos(x)}{\delta x}[/tex]
In other words, you need to take a limit.
 
  • #5
Ray Vickson said:
What you wrote is not correct:
[tex] \frac{d}{dx} \cos(x) \neq -\sin(x + \delta x /2)
\frac{\sin(\delta x /2)}{\delta x /2},[/tex]
because
[tex] \frac{d}{dx} \cos(x) \neq \frac{\cos(x + \delta x) - \cos(x)}{\delta x}[/tex]
What is true is
[tex] \frac{d}{dx} \cos(x) = \lim_{\delta x \to 0} \frac{\cos(x + \delta x) - \cos(x)}{\delta x}[/tex]
In other words, you need to take a limit.

If you read my op again you'll notice I apologise for not including limits because I didn't know how to write them in LaTeX, but they are included in my written work.

Looking at your post, I do now know how to write them though :)

With that in mind, is my work still 'wrong'?

EDIT - I'll go back and put them in the relevant places
 
  • #8
BOAS said:
If you read my op again you'll notice I apologise for not including limits because I didn't know how to write them in LaTeX, but they are included in my written work.

Looking at your post, I do now know how to write them though :)

With that in mind, is my work still 'wrong'?

EDIT - I'll go back and put them in the relevant places

Your basic work was OK, but instructors usually frown upon the use of an '=' sign between things that are not equal; doing that is a good way to lose marks for no good reason.

To get a limit expression in LaTeX, use "\ lim_{h \to 0} " (with no space between the '\' and the word 'lim').If you don't use a backslash it won't look very good---just like your 'sin' and 'cos' do not look good. Here is what I mean:
[tex] lim_{h \to 0} sin(h)/h \text{ using ``lim_{h \to 0} sin(h)/h'' } \\
\\
\lim_{h \to 0} \sin(h)/h \text{ using ``\lim'' and ``\sin'' } [/tex]
 
  • #9
boas said:
hello,

i'm confused by a certain step in my working for finding the derivative of cosx, i don't know for sure that it's right, but I'm following the same approach my book uses to show the derivative of sinx.

Homework Statement



find [itex]\frac{d}{dx}[/itex][itex]cosx[/itex] from first principles.

Homework Equations





The Attempt at a Solution



i don't know how to show my limits in latex so please excuse that. They are shown in my written working.

[itex]\frac{d}{dx}[/itex][itex]f(x)[/itex] = [itex]\lim_{\delta x \to 0}[/itex] [itex]\frac{f(x + \delta x) - f(x)}{\delta x}[/itex]

if [itex]f(x)[/itex] = [itex]cosx[/itex]

[itex]\frac{d}{dx}[/itex][itex]cosx[/itex] = [itex]\lim_{\delta x \to 0}[/itex] [itex]\frac{cos(x + \delta x) - cosx}{\delta x}[/itex]

I think you are OK to this point. I suggest you expand cos(x+δx) using the identity for the cosine of the sum of two angles, then substitute and take the limit as δx goes to zero.
 
  • #10
How you show that [itex]\lim_{x\to 0} \frac{sin(x)}{x}=1[/itex] depends strongly upon how you have defined sine and cosine to begin with! Maajdl's suggestion, defining sine and cosine on a unit circle is most common in Calculus texts but it is also possible to define sine and cosine in terms of power series or as solutions to a differential equation.
 
Last edited by a moderator:
  • #11
But it's
[tex]\lim_{x \rightarrow 0} \frac{\sin x}{x}=1.[/tex]
 
  • #12
Yes, thanks. I have corrected that.
 
  • #13
Much simpler to use the addition identity for the cosine.
 
  • #14
I think, it's easier to define all elementary functions via power series and then their inverse functions. The geometrical meaning of functions like the trigonometric functions and the hyperbolic functions then is easily treated with analytical geometry in Euclidean [itex]\mathbb{R}^2[/itex]. You can also easily prove the addition identities etc. with help of the series expansions.
 
  • #15
That may be true if you are trying to derive all of mathematics from a few basic definitions. But all the OP needs to do is show how the derivative of the cosine may be derived from the basic definition. The cosine addition identity can be established with simple geometry. There is no need to prove the limit of sin(x)/x as x goes to zero, etc. Like Occam said, why eat the whole banquet when all you want is a donut?
 
  • #16
IMHO :rolleyes: too much of an unnecessary big meal is made of the proof of this (which in my day we did at school not uni) and all anyone needs for proof is here: https://www.physicsforums.com/showpost.php?p=3670158&postcount=6 Just geometrical. I don't say some of the other things mentioned, e.g. the series, are not valuable, but IMHO they are valuable additionally, get to them from this not vice versa.
 
  • #17
Thank you for all the responses/discussion - apologies for the late reply.

I understand the proof now - I don't know if i'll ever need to use it, but it's nice to know.

@epenguin I am working through an A-level textbook, not a university one. Although I am at university, I'm doing a foundation physics year since I did not take A-level maths and subsequently regretted it.
 
  • #18
SteamKing said:
There is no need to prove the limit of sin(x)/x as x goes to zero.
Just wanted to note that this particular result is commonly established when the concept of limits is reviewed as a precursor to introducing the concept of derivatives, so it's not unreasonable to assume students should know this limit when trying to find the derivative of cosine using the definition.
 
  • #19
But it's also not necessary to know it if you use the identity for the cosine of the sum of two angles, either.
 
  • #20
Really? Because I see that limit show up twice if you do it that way. Maybe we're thinking of different identities.
 
  • #21
epenguin said:
IMHO :rolleyes: too much of an unnecessary big meal is made of the proof of this (which in my day we did at school not uni) and all anyone needs for proof is here: https://www.physicsforums.com/showpost.php?p=3670158&postcount=6 Just geometrical. I don't say some of the other things mentioned, e.g. the series, are not valuable, but IMHO they are valuable additionally, get to them from this not vice versa.

Since ##dx\neq|ab|## in the picture, your "proof" is unconvincing.

Some fairly minor modifications to your argument would establish the desired results, so it's definitely salvageable. I would point out, though, that this is very similar to the standard argument that is used to demonstrate ##\lim\limits_{x\rightarrow 0}\frac{\sin x}{x}=1##.

From a pedagogical standpoint, I'd say it's maybe not a terrible idea to reinforce geometry ideas in the proof of the sinc limit and then reinforce some trig identities, limit laws, and definition of the derivative in the proof of the derivative formulas.
 
Last edited:

FAQ: Finding the derivative of cosx from first principles

1. What is the definition of derivative of cosx from first principles?

The derivative of cosx from first principles is the mathematical process of finding the rate of change of the cosine function at a specific point by using the limit definition of the derivative.

2. How is the derivative of cosx calculated using first principles?

The derivative of cosx is calculated by taking the limit of the difference quotient (f(x+h) - f(x)) / h as h approaches 0, where f(x) = cosx.

3. Why is it important to find the derivative of cosx from first principles?

Finding the derivative of cosx from first principles allows us to understand the behavior of the cosine function and its rate of change at any given point. It also serves as the foundation for more advanced calculus concepts.

4. What are the steps to finding the derivative of cosx from first principles?

The steps to finding the derivative of cosx from first principles are:
1. Write out the limit definition of the derivative using the cosine function.
2. Simplify the difference quotient expression.
3. Take the limit as h approaches 0.
4. Apply trigonometric identities to simplify the expression.
5. The resulting expression is the derivative of cosx.

5. Can the derivative of cosx be found using other methods besides first principles?

Yes, the derivative of cosx can also be found using other methods such as the power rule, chain rule, and product rule. However, using first principles is important for understanding the fundamental concept of the derivative and its relationship to the cosine function.

Similar threads

Replies
14
Views
887
Replies
40
Views
591
Replies
12
Views
662
Replies
2
Views
1K
Replies
1
Views
737
Replies
9
Views
2K
Replies
8
Views
698
Back
Top