Derivative of square root of sine x by first principles
By Murray Bourne, 29 Mar 2011
Recently I had several mails from readers asking how you find the derivative of various trigonometric functions using first principles. One of them almost cried out for an article in response. Barun wrote:
How do you find using 1st principle of differentiation?
Normally, most text books list the derivatives of the trig functions and say something like "these were found from differentiation by first principles", but don't actually explain how. Let's find out.
First, some background.
Derivative from First Principles
Many of the concepts of differentiation and integration were known and understood by the ancient Greek mathematicians, but we had to wait until the time of Isaac Newton and Gottfried Leibniz for the thinking (and algebra) we use today.
To find the derivative (the "rate of change") of the function f(x), we need to find the following limit:
Using this, we can find derivatives of polynomial expressions like:
(See some examples on this page: Derivative from First Principles)
I'm using h instead of Δx or δx for easier reading and to be consistent with my notation in Derivative from First Principles.
If we just substitute h = 0, we always get , which of course is undefined. We need to do some algebra to get the fraction into a form where we can evaluate the limit as h approaches 0.
Let's do a simpler trigonometry example first, before trying to do the derivative of √(sin x).
A. Derivative of sin(x) by First Principles
We need a few results before we can find this derivative.
(A1) Limit of sin θ/θ as x → 0
First, we need this common and well-known limit.
First, we draw a graph of y = sin θ/θ and can see the limit of the function as θ approaches 0 is 1. (Of course there is a "hole" in the graph at θ = 0.)
So we have:
You can see an exploration of this result here.
(A2) Difference of 2 Sines
We also need the following trigonometric identity. (You can prove this one by expanding out the sine and cosine terms on the right.)
(A3) Fraction on a fraction
This one always confuses students. One divided by half is 2.
This is true because:
On with the Derivative of sine x
We are now ready to find the derivative of sin(x) from first principles.
Setting aside the limit for now, our first step is to evaluate the fraction with f(x) = sin x.
On the right hand side we have a difference of 2 sines, so we apply the formula in (A2) above:
Simplifying the right hand side gives:
Now to put it all together and consider the limit:
We make use of (3), fraction on a fraction, to bring that 2 out front down to the bottom:
Now, the limit of a product is the product of the limits, so we can write this as:
Now, the first limit is in the form of Limit of sin θ/θ that we met in (A1) above.
We know it has value 1.
For the right hand limit, we simply obtain cos x.
So we can conclude that
B. Derivative of square root of sin x from first principles
Before we start this one, we'll need to establish some important algebraic identities.
(B1) Rationalizing the Denominator
We aim to remove any square roots from the denominator. We multiply top and bottom of the fraction by the conjugate of the denominator. As a reminder, the conjugate of (3 + √2) is (3 − √2).
Example: We aim to rationalize the denominator of
Multiplying top and bottom by (3 − √2) gives:
(B2) Rationalizing the Numerator
This is just the same as B1, but we are trying to remove square roots from the top of the fraction. We do that by multiplying top and bottom by the conjugate of the top.
(B3) Expanding the sine of a sum
This is one of the early trigonometry identities we learned:
sin (A + B) = sin A cos B + cos A sin B.
(B4) Limit of (cos θ - 1)/θ as x → 0
Here is the graph of
We can see from the graph that the limit is 0.
So we can write:
Now for the derivative of √(sin x) from first principles
We have f(x) = √(sin x)
So applying the first derivatives formula to this function, our derivative will be:
Next, we need to rationalize the numerator. (Why? To get an expression whose limit as x approaches 1 is possible.)
Leaving the limit for now, the right hand side is equivalent to:
Multiplying gives us:
Expanding that sin(x + h) on the top, we have:
We can factor the top and write this as:
Now we are ready to consider the limit as x approaches 0.
On the bottom, we have:
Considering what's left, the first term in the numerator is:
Earlier in B4, we found
So we can conclude
We are left with the second term which is:
Earlier, in A1 we found that
So we can conclude
Putting it all together, we have:
I hope you can see why Newton and Leibniz were keen to find a set of consistent rules so they didn't have to go through all this every time they wanted to find a derivative!
Graph of y = √sin θ
Just to finish, let's see what the graph of y = √(sin θ) looks like, shown in blue here (with y = sin θ shown in green, for comparison). Note y = √(sin θ) is not defined for nπ < θ < 2nπ.
See the 14 Comments below.
1 Apr 2011 at 3:45 pm [Comment permalink]
This is graet i like it.Please continue with this as it is making life interesting
9 Apr 2011 at 3:19 am [Comment permalink]
wow ,well explained.
20 Sep 2011 at 1:14 am [Comment permalink]
very well explained, more example please!
3 Nov 2011 at 4:46 am [Comment permalink]
I love this site! Explains everything so perfectly. Thank you. 🙂
21 Mar 2013 at 4:32 am [Comment permalink]
Dear Mr. Bourne,
Indeed terrific. Just one would possibly appreciate a formal proof of the limit of a function rather than rely on his/her naked eye to read it off the graph of the function, even with the technic aid of zooming in.
At any event, I did enjoy it much.
Thank you very much.
Faithfully
Dr. Jabali
6 May 2013 at 12:15 am [Comment permalink]
very helpful and easly explained
can u help with sin squared x
6 May 2013 at 5:02 pm [Comment permalink]
@Ndlalal: As a starting hint, you would need to make use of the double angle formulas.
18 Jan 2014 at 12:17 am [Comment permalink]
I liked the way each step regarding derivative of root sinx has been explained and it is made so easy to understand.Thanks!
12 Nov 2015 at 11:41 pm [Comment permalink]
very well explained. quite good if it had more hard sums explained further more. anyway thank you............... 🙂 🙂 😉
18 Mar 2016 at 6:35 pm [Comment permalink]
what will be the derivative of sin x^3
19 Mar 2016 at 10:14 am [Comment permalink]
@Ram: Do you mean by first principles?
That would be a good question to post in the IntMath Forum.
25 Jul 2016 at 12:40 pm [Comment permalink]
Thank you I was in search of derivative of root cosx but this help me in solving the derivative if cosx thank you
18 Sep 2016 at 3:20 pm [Comment permalink]
Good explanation 🙂 I didn't know I can do that with derivatives. I always do them with things like chain rule, product rule, etc.
1 Aug 2019 at 5:31 pm [Comment permalink]
Thank you very much for the simplicity of your method