Calculus question involving sine and relative extrema

In summary, the function f(x) = x sin(π/x) has an infinite number of relative extrema, as shown by the fact that the equation k = tan(k) has an infinite number of solutions. These solutions are points of interception between the line y = k and the curve y = tan(k), and since the curve has infinitely many vertical asymptotes, there will be infinitely many interceptions. Additionally, the second derivative of f(x) is nonzero at all of these points, making them all relative extrema.
  • #1
pc2-brazil
205
3

Homework Statement


Show that the function [tex]f(x) = x\sin\left( \frac{\pi}{x} \right)[/tex] has an infinite number of relative extrema.

Homework Equations



The Attempt at a Solution


Using the product rule and chain rule to find the derivative f'(x):
[tex] f'(x) = \sin\left( \frac{\pi}{x} \right) - \frac{x\pi}{x^2} \cos\left( \frac{\pi}{x} \right) [/tex]
[tex] f'(x) = \sin\left( \frac{\pi}{x} \right) - \frac{\pi}{x} \cos\left( \frac{\pi}{x} \right) [/tex]

To try to find the relative extrema, I will determine for which values f'(x) = 0.
[tex] \sin\left( \frac{\pi}{x} \right) - \frac{\pi}{x} \cos\left( \frac{\pi}{x} \right) = 0 [/tex]
[tex] \sin\left( \frac{\pi}{x} \right) = \frac{\pi}{x} \cos\left( \frac{\pi}{x} \right) [/tex]
[tex] \frac{\sin\left( \frac{\pi}{x} \right)}{\cos\left( \frac{\pi}{x} \right)} = \frac{\pi}{x} [/tex]
[tex] \frac{\pi}{x}=\tan\left( \frac{\pi}{x} \right ) [/tex]
Now I can replace π/x with k, if k ≠ 0:
[tex] k=\tan(k) [/tex]
The solution to the equation above are the points of interception between the line y = k and the curve y = tan(k). Since there is an infinite number of interceptions, the equation above has an infinite number of solutions.
There is an infinite number of interceptions because, in the function y = tan(k), there are infinitely many vertical asymptotes, so, the line y = k will intercept the curve y = tan(k) in infinitely many points.
So, f(x) = x sin(π/x) has an infinite number of relative extrema.

Is this correct? Is there some important step missing in the middle?

Thank you in advance.
 
Physics news on Phys.org
  • #2
That is ok, but I have one annoying point.

That [itex]f^\prime(x)=0[/itex] does NOT mean that there is a relative extremum at x. Indeed, look at the function [itex]f(x)=x^3[/itex]. This has derivative 0 at 0, but it is no extremum there.

In order to be a relative extremum, you additionaly need [itex]f^{\prime\prime}(x)\neq 0[/itex].
 
  • #3
To know that, try plotting k=tan(k) and f(x)=x sin(x/pi) in the same graph.

the sin function gives you the maximum value when sin(pi/x)=1--> pi/x=(2n+1)*pi/2 for n= 0,1,...

So 1/x= n+1/2--> x=2/(2n+1)

(2n+1)pi/2= tan(pi*(2n+1)/2)For small k the equation tank=k is an identity
 
  • #4
abr_pr90 said:
For small k the equation tank=k is an identity

No it is never an identity for small k (only for k=0). That it is a good approximation does NOT mean that it is equal.
 
  • #5
micromass said:
That is ok, but I have one annoying point.

That [itex]f^\prime(x)=0[/itex] does NOT mean that there is a relative extremum at x. Indeed, look at the function [itex]f(x)=x^3[/itex]. This has derivative 0 at 0, but it is no extremum there.

In order to be a relative extremum, you additionaly need [itex]f^{\prime\prime}(x)\neq 0[/itex].

That's true, the points where f''(x) = 0 cannot be relative extrema. In order to be a relative extremum f''(x) has to be nonzero. If f''(a) > 0, then the function is concave upwards in f(a), and, if f''(a) < 0, it's concave downwards in f(a). In f(x) = x³, f(0) is an inflection point, not a relative extremum, since f''(0) = 0 and f''(x) changes sign in x = 0.
Calculating f''(x) using product rule and chain rule:
[tex]f''(x)=-\frac{\pi\cos\left(\frac{\pi}{x}\right)}{x^2}-\pi \left( -\frac{\cos\left(\frac{\pi}{x}\right)}{x^2}+\frac{\pi\sin\left(\frac{\pi}{x}\right)}{x^3} \right)[/tex]
[tex]f''(x)=-\frac{\pi^2\sin\left(\frac{\pi}{x}\right)}{x^3}[/tex]
The expression above will be zero if and only if [itex] \sin\left(\frac{\pi}{x}\right) = 0 [/itex]. This will be true if and only if [itex] \frac{\pi}{x} = n\pi [/itex], where n is any nonzero integer (nonzero because [itex] \frac{\pi}{x} \neq 0 [/itex]).
Since if [itex] \sin\left(\frac{\pi}{x}\right) = 0 [/itex], then [itex] \tan\left(\frac{\pi}{x}\right) = 0 [/itex], the values for which f''(x) = 0 can't be solutions to k = tan(k) where k = π/x. Therefore, all solutions to k = tan(k) are points in which [itex]f''(x) \neq 0[/itex]. Thus, they are relative extrema.
 
  • #6
This is correct! You solved that very neatly! :smile:
 

1. What is the definition of a relative extrema in calculus?

A relative extrema is a point on a function where the slope of the tangent line is equal to zero. It can be either a maximum or minimum point, depending on the behavior of the function around that point.

2. How can I find the relative extrema of a function involving sine?

To find the relative extrema of a function involving sine, you can take the derivative of the function and set it equal to zero. Then, solve for the x-values that make the derivative equal to zero. These x-values will be the coordinates of the relative extrema.

3. Can a function have more than one relative extrema?

Yes, a function can have multiple relative extrema. This can occur when the function has multiple peaks and valleys, or when the function is periodic, such as with sine and cosine functions.

4. How can I determine if a relative extrema is a maximum or minimum point?

To determine if a relative extrema is a maximum or minimum point, you can use the second derivative test. Take the second derivative of the function and substitute the x-value of the relative extrema into the second derivative. If the resulting value is positive, the relative extrema is a minimum point. If the resulting value is negative, the relative extrema is a maximum point.

5. Can a function have a relative extrema at its endpoints?

Yes, a function can have a relative extrema at its endpoints. This can occur when the function is defined on a closed interval and the endpoints are local maximum or minimum points.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
344
  • Calculus and Beyond Homework Help
Replies
1
Views
215
  • Calculus and Beyond Homework Help
Replies
2
Views
916
  • Calculus and Beyond Homework Help
Replies
1
Views
342
  • Calculus and Beyond Homework Help
Replies
5
Views
355
  • Calculus and Beyond Homework Help
Replies
5
Views
684
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
16
Views
564
  • Calculus and Beyond Homework Help
Replies
1
Views
535
  • Calculus and Beyond Homework Help
Replies
3
Views
559
Back
Top