Solving Chain Rule & Trig. Power Equations

  • Thread starter Thread starter SUDOnym
  • Start date Start date
  • Tags Tags
    Chain Chain rule
Click For Summary

Homework Help Overview

The discussion revolves around the application of the chain rule and trigonometric identities in the context of partial derivatives of a function involving sine functions. The original poster seeks to find the partial derivatives of the function n with respect to variables A and D, which includes both chain rule and power of trigonometric functions.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants explore the use of the chain rule and quotient rule for finding partial derivatives. There are attempts to simplify trigonometric expressions and clarify the relationship between different forms of sine functions. Some participants question the correctness of the original poster's attempts and suggest alternative methods.

Discussion Status

Several participants have provided feedback on the original poster's calculations and suggested different approaches to the problem. There is ongoing exploration of how to simplify the trigonometric expressions, and some participants have pointed out potential errors in the original poster's reasoning. The discussion remains open with various interpretations being explored.

Contextual Notes

The original poster mentions that the function n is related to finding the refractive index of a material using a prism, indicating that the context of the problem is tied to practical applications in physics. There is also a focus on error propagation related to the variables A and D.

SUDOnym
Messages
88
Reaction score
1
I always get muddled when I'm dealing with chain rule of any degree of complexity and also when dealing with powers of trig. functions - this problem contains both:

find [tex]\frac{\partial n}{\partial A}[/tex] and [tex]\frac{\partial n}{\partial D}[/tex] of the following function:

[tex]n=\frac{\sin(\frac{A+D}{2})}{\sin(\frac{A}{2})}[/tex]

also find [tex]|\frac{\partial n}{\partial D}|^{2}[/tex] [tex]|\frac{\partial n}{\partial A}|^{2}[/tex]

My Attempt:

[tex]n=\frac{\sin(\frac{A+D}{2})}{\sin(\frac{A}{2})}[/tex]
[tex]\implies n=\sin(\frac{A+D}{2})[\sin(\frac{A}{2})]^{-1}[/tex]
[tex]\implies\frac{\partial n}{\partial A}=\frac{1}{2}\cos(\frac{A+D}{2})[\sin(\frac{A}{2})]^{-1}+\sin(\frac{A+D}{2})(-1)[\sin(\frac{A}{2})]^{-2}(\frac{1}{2})\cos(\frac{A}{2})[/tex]

[tex]=\frac{1}{2}\frac{\cos(\frac{A+D}{2})}{\sin(\frac{A}{2})}-\frac{1}{2}\frac{\sin(\frac{A+D}{2})\cos(\frac{A}{2})}{[\sin(\frac{A}{2})]^{2}}[/tex]

[tex]=\frac{1}{2\sin(\frac{A}{2})}[\cos(\frac{A+D}{2})-\sin(\frac{A+D}{2})\arctan(\frac{A}{2})][/tex]

[tex]\implies|\frac{\partial n}{\partial A}|^{2}=\frac{1}{4\sin^{2}(\frac{A}{2})}[\cos^{2}(\frac{A+D}{2})+\sin^{2}(\frac{A+D}{2})\arctan^{2}(\frac{A}{2})-2\cos(\frac{A+D}{2})\sin(\frac{A+D}{2})\arctan(\frac{A}{2})][/tex]

*Correction that last arctan term should read [tex]\arctan(\frac{A}{2})[/tex]

At this point I tried to simplify the trig. a bit... (but a don't think I did a great job!):

[tex]=\frac{1}{4\sin^{2}(\frac{A}{2})}[\frac{1}{2}\cos(A+D)+1]+[\frac{1}{2}(-\cos(A+D)+1)]\arctan^{2}(\frac{A}{2})-\sin(A+D)\arctan(\frac{A}{2})[/tex]

Main issues I have with the above are: I am never any good with chain rule and also re. the trig. I keep getting confused as to whether for example the function:
[tex]\sin^{x}(A)[/tex]
is in all cases completely equivalent to:
[tex][\sin(A)]^{x}[/tex]

ie. are there some cases where they are not equivalent? - this confusion may or may not have caused errors in my attempt above...

OK, now [tex]\frac{\partial n}{\partial D}[/tex] is a little easier:

[tex]\frac{\partial n}{\partial D}=\frac{1}{2}\cos(\frac{A+D}{2})[\sin(\frac{A}{2})]^{-1}[/tex]

[tex]\implies|\frac{\partial n}{\partial D}|^{2}=\frac{1}{4}\cos^{2}(\frac{A+D}{2})[\sin(\frac{A}{2})]^{-2}[/tex]All advice and corrections are greatly appreciated.
 
Last edited:
Physics news on Phys.org
Your original function is pretty complex.

[tex]n=\frac{\sin(\frac{A+D}{2})}{\sin(\frac{A}{2})}[/tex]

I will show you how to find find

[tex]\frac{\partial n}{\partial A}[/tex] of [tex]n=sin(\frac{A+D}{2})[/tex]after seeing this then you can apply it to the problem as a whole using quotient rule.

[tex]\frac{\partial n}{\partial A}[/tex]=[cos(0.5A+0.5D)](0.5)

Think, this is a partial derivative with respect to A, this means that A is the only variable and that everything else including D will be held constant.

Chain rule goes like this: derivative of the outside, inside stays the same then derivative of the inside, repeat until you don't have anymore insides.

The outside was sin() and the inside was (0.5A+0.5D) and the derivative of the inside as (0.5)
 
I would apply the sum rule, and write n in terms of separate trigonometric functions of A/2 and D/2.

And sin^n(A) means [sin(A)]^n.

ehild
 
... so going by the above comments, I think I used the chain rule correctly (@ehilld I find chain rule easier than sum rule mostly!) - can anyone suggest tips on if there is a way I can simplify the trig. a little?
 
SUDOnym said:
... (@ehilld I find chain rule easier than sum rule mostly!) - can anyone suggest tips on if there is a way I can simplify the trig. a little?

Apply the sum rule. Really.


You can find that sin(a+b) =sin(a)cos(b)+cos(a)sin(b)

The function n=sin((A+B)/2)/sin(A/2) simplifies to

[itex]n=\frac{\sin(A/2) \cos(B/2) + \cos(A/2) \sin(B/2)}{\sin(A/2)}=\cos(B/2)+\sin(B/2) \cot(A/2)[/itex].


When squaring, you can remove the half-angles by using the identities

sin2(A/2)=0.5(1-cos(A)),
cos2(A/2)=0.5(1+cos(A)), which you have tried, but did something wrong. cos^2((A+D)/2)+sin^2((A+D)/2)=1 instead that complicated something you wrote.

By the way, you replaced cos(A/2)/sin(A/2) with arctan(A/2), which is wrong. It is cotangent, cot(A/2).


ehild
 
@ehild

OK, so from my original formula:

[tex]n=\frac{\sin(\frac{A+D}{2})}{\sin(\frac{A}{2})}[/tex]

[tex]\implies n=\cos(\frac{D}{2})+\cot(\frac{A}{2})\sin(\frac{D}{2})[/tex]

[tex]\implies\frac{\partial n}{\partial A}=[-\frac{1}{\sin^{2}(\frac{A}{2})}](\frac{1}{2})\sin(\frac{D}{2})=-\frac{1}{2}\frac{\sin(\frac{D}{2})}{\sin^{2}(\frac{A}{2})}[/tex]

[tex]\implies|\frac{\partial n}{\partial A}|^{2}=\frac{1}{4}[\frac{\sin(\frac{D}{2})}{\sin^{2}(\frac{A}{2})}]^{2}[/tex]

and for:

[tex]\frac{\partial n}{\partial D}[/tex]

[tex]\frac{\partial n}{\partial D}=-(\frac{1}{2})\sin(\frac{D}{2})+(\frac{1}{2})\cot(\frac{A}{2})\cos(\frac{D}{2})[/tex]

[tex]=-(\frac{1}{2})\sin(\frac{D}{2})+(\frac{1}{2})\frac{\cos(\frac{D}{2})}{\tan(\frac{A}{2})}[/tex]

[tex]\implies|\frac{\partial n}{\partial D}|^{2}=(\frac{1}{4})\sin^{2}(\frac{D}{2})-(\frac{1}{2})\frac{\sin(\frac{D}{2})\cos(\frac{D}{2})}{\tan(\frac{A}{2})}+(\frac{1}{4})\frac{\cos^{2}(\frac{D}{2})}{\tan^{2}(\frac{A}{2})}[/tex]

[tex]=(\frac{1}{4})(\frac{1}{2})(1-\cos(D))-(\frac{1}{2})(\frac{1}{2})\frac{\sin(D)}{\tan(\frac{A}{2})}+[\frac{\cos(\frac{D}{2})}{\tan(\frac{A}{2})}]^{2}(\frac{1}{4})[/tex]

[tex]=\frac{1}{4}((\frac{1}{2})(1-\cos(D))-\frac{\sin(D)}{\tan(\frac{A}{2})}+[\frac{\cos(\frac{D}{2})}{\tan(\frac{A}{2})}]^{2})[/tex]

Can you please confirm that this is correct? (although I still used the chain rule... I don't think that sum rule would have made life much easier, but stand to be corrected there...)

please note, this formula for n is for finding refractive index of material using a prism where A and D are two angles... the reason I want square of partial derivatives is so that I can then use them in the error propagation formula along with my error in A and D in order to find error in n. So, I suppose it is not essential that I reduce the trig. to the most simple form possible so long as the final formula is in some way tractable - that said, dealing with trig. has been a weakness of mine for a very long time and so I am eager to improve in this area.
 
The derivative with respect to D is simpler in the original form,
[tex]\frac{\partial n}{\partial D}=\frac{1}{2}\frac{\cos(\frac{A+D}{2})}{sin(\frac{A}{2})}[/tex]. The derivative with respect to A is
[tex]\frac{\partial n}{\partial A}=-\frac{1}{2}\frac{\sin(\frac{D}{2})}{\sin^{2}(\frac {A}{2})}[/tex]
You need not do the squares. When evaluating the squares of the derivatives, the simplest way is to evaluate the derivatives and then square them (the numbers, not the formulae).

ehild
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K