The Student Room Group

[A-Level] Derivative of Transcendental Function

I have this function:
h(x) = ln(sin x)
I computed the derivative through this extended method of the chain rule:
D3EE605C-12C0-4187-9C5B-B9D315DF1D81.jpg.jpeg

The problem is when I try finding the value of dh/dx when x = 5 I get different answers.

cos(5)/sin(5) = 11.4300523 from my calculator

But using the derivative function on my calculator I get a different output:
89D92CCF-1EF9-4340-80E6-C00C4F105C76.jpg.jpeg

I’m not sure where I’ve gone wrong or If I’m missing something, the calculator is working in degrees for both.

I’m starting A-Levels in September so please be light with me when replying.

Thanks
Original post by BrandonS15
I have this function:
h(x) = ln(sin x)
I computed the derivative through this extended method of the chain rule:
D3EE605C-12C0-4187-9C5B-B9D315DF1D81.jpg.jpeg

The problem is when I try finding the value of dh/dx when x = 5 I get different answers.

cos(5)/sin(5) = 11.4300523 from my calculator

But using the derivative function on my calculator I get a different output:
89D92CCF-1EF9-4340-80E6-C00C4F105C76.jpg.jpeg

I’m not sure where I’ve gone wrong or If I’m missing something, the calculator is working in degrees for both.

I’m starting A-Levels in September so please be light with me when replying.

Thanks

The derivative looks correct to me.
Reply 2
Original post by MediocreSince01
The derivative looks correct to me.

Then why my substitution of x = 5 into the derivative computed and the calculator computing the derivative itself and giving me the output of x = 5 different? Thats the bit I'm confused on, I'm not sure if I've missed something because I did only start learning the chain rule a few hours ago.
Original post by BrandonS15
Then why my substitution of x = 5 into the derivative computed and the calculator computing the derivative itself and giving me the output of x = 5 different? Thats the bit I'm confused on, I'm not sure if I've missed something because I did only start learning the chain rule a few hours ago.

I'm not sure, perhaps try again by retyping - you may have accidentally missed something!

I know it's correct because there's a cheat way of differentiating functions of the form ln[f(x)]

The derivative is simply f'(x) divided by f(x)
Reply 4
Original post by MediocreSince01
I'm not sure, perhaps try again by retyping - you may have accidentally missed something!

I know it's correct because there's a cheat way of differentiating functions of the form ln[f(x)]

The derivative is simply f'(x) divided by f(x)

I already have tried and checked, it seems to be entered into the calculator the same and computing cos(5)/sin(5) does give the same output. The calculator is set to work in degrees, I'm still confused.
Original post by BrandonS15
I already have tried and checked, it seems to be entered into the calculator the same and computing cos(5)/sin(5) does give the same output. The calculator is set to work in degrees, I'm still confused.

The correct value is 11.4300523.. I'm not sure why the Classwiz isn't giving you the correct answer then.
Original post by BrandonS15
I already have tried and checked, it seems to be entered into the calculator the same and computing cos(5)/sin(5) does give the same output. The calculator is set to work in degrees, I'm still confused.

Put your calculator on radians mode.
Reply 7
Original post by NotNotBatman
Put your calculator on radians mode.


3A329D5F-A65C-4B72-91FE-CABAE4122B98.jpg.jpeg

Returns
4D18A356-739B-4E4D-986F-494568D7BBB5.jpg.jpeg
Original post by BrandonS15
I have this function:
h(x) = ln(sin x)
I computed the derivative through this extended method of the chain rule:
D3EE605C-12C0-4187-9C5B-B9D315DF1D81.jpg.jpeg

The problem is when I try finding the value of dh/dx when x = 5 I get different answers.

cos(5)/sin(5) = 11.4300523 from my calculator

But using the derivative function on my calculator I get a different output:
89D92CCF-1EF9-4340-80E6-C00C4F105C76.jpg.jpeg

I’m not sure where I’ve gone wrong or If I’m missing something, the calculator is working in degrees for both.

I’m starting A-Levels in September so please be light with me when replying.

Thanks


The derivatives of trig functions are only valid in radians! Set it in radians
"Correct" answer is cos(5 radians)/(sin(5 radians)) which is about -0.2958... Calculus is almost invariably done with arguments in radians. The derivative of ln(sin(x)) with x measured in degrees is not cot(x) but rather pi/180 cot(x).
(edited 4 years ago)
Original post by _gcx
"Correct" answer is cos(5 radians)/(sin(5 radians)) which is about -0.2958... Calculus is almost invariably done with arguments in radians. The derivative of ln(sin(x)) with x measured in degrees is not cot(x) but rather pi/180 cot(x).

I just set my calculator into radians and computed the same thing - images posted already, why do I get a maths error?
Original post by BrandonS15
3A329D5F-A65C-4B72-91FE-CABAE4122B98.jpg.jpeg

Returns
4D18A356-739B-4E4D-986F-494568D7BBB5.jpg.jpeg


sin(5) is negative, and the log of a negative number gets complicated. In short the derivative doesn't exist at x=5 because we haven't defined ln for negative numbers. The correct answer is cot(5) if you do extend the logarithm (using a branch that is continuous on the positive real axis) to negative arguments but this is beyond A-level.
(edited 4 years ago)
Original post by _gcx
sin(5) is negative, and the log of a negative number gets complicated. In short the derivative doesn't exist at x=5 because we haven't defined ln for negative numbers. The correct answer is cot(5) if you do extend the logarithm (using a branch that is continuous on the positive real axis) to negative arguments but this is beyond A-level.


I see, using geogebra, the function ln(sin x) doesn’t even cross x = 5 so its unable to give a gradient at that point. Thanks
Original post by BrandonS15
3A329D5F-A65C-4B72-91FE-CABAE4122B98.jpg.jpeg

Returns
4D18A356-739B-4E4D-986F-494568D7BBB5.jpg.jpeg

And complex mode, but I assume you haven't learnt the complex logarithm. Beyond A level there is a function called the complex logarithm which is defined everywhere on the complex plane (if you do further maths you'll have heard of this), except at 0 (and for im part k-pi, Pi] if you want continuity).

Now that this is defined we ask what value do we get when we put x=5 and that is Log(-sin(5)) +i*pi, so now we have a function that is defined at that point and can be shown to be differentiable on its domain using cauchy riemman equations.

But this question is presented to you because you can work it out without using any non real complex numbers as the answer is a real number, its just that your calculator can't evaluate at a non real complex part or maybe it can if your calculator is in complex mode?
Original post by NotNotBatman
And complex mode, but I assume you haven't learnt the complex logarithm. Beyond A level there is a function called the complex logarithm which is defined everywhere on the complex plane (if you do further maths you'll have heard of this), except at 0 (and for im part k-pi, Pi] if you want continuity).

Now that this is defined we ask what value do we get when we put x=5 and that is Log(-sin(5)) +i*pi, so now we have a function that is defined at that point and can be shown to be differentiable on its domain using cauchy riemman equations.

But this question is presented to you because you can work it out without using any non real complex numbers as the answer is a real number, its just that your calculator can't evaluate at a non real complex part or maybe it can if your calculator is in complex mode?


you'll get discontinuities at places other than zero. if you choose the imaginary part to fall in (-pi,pi] you'll get a branch cut (line of discontinuity) on the negative real axis because the imaginary part flips sign as you cross the axis. there exists a holomorphic logarithm on any connected open subset not containing 0 though.
Original post by _gcx
you'll get discontinuities at places other than zero. if you choose the imaginary part to fall in (-pi,pi] you'll get a branch cut (line of discontinuity) on the negative real axis because the imaginary part flips sign as you cross the axis. there exists a holomorphic logarithm on any connected open subset not containing 0 though.

Mixed words up, you want Im part to be in (-pi, pi) for analyticity, you can include the negative real line but this doesn't define an injective function, which gives us more useful properties.

Quick Reply

Latest