How can I determine the potential extrema on a function with a discontinuity?

  • Thread starter Thread starter fishspawned
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around finding potential extrema of the function y = |sin(x)| + (1/x) over the interval [-2π, 2π]. Participants note the presence of a discontinuity at x=0 and explore the implications for determining extrema.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the derivative f'(x) and its critical points, noting that extrema may occur where f'(x) = 0 or at points of discontinuity. There is a focus on the complexity introduced by the absolute value and the need to consider different cases based on the sign of sin(x).

Discussion Status

Some participants have suggested breaking the function into cases to simplify the analysis of the derivative. Others have raised questions about the original function's definition and the challenges of finding an analytic solution, indicating that numerical methods may be necessary for finding stationary points.

Contextual Notes

There is a recognition of the complexity of the problem, particularly in relation to the function's behavior around the discontinuity at x=0 and the implications for finding extrema on a closed interval.

fishspawned
Messages
66
Reaction score
16

Homework Statement



i am looking for the potential extrema on the function y = |sinx(x)| + (1/x) between [-2pi, 2pi]

Homework Equations



extrema will be likely located at f'(x) = 0 or u/d

The Attempt at a Solution



first it is noted that there is a discontinuity at x=0
then determining f'(x) by using |sin(x)| as sqrt(sin2x) instead
we get f'(x) = sin(x)cos(x)/|sinx(x)| - x-2

first the easy one : we can see that f'(x) = u/d where sin(x) = 0 [looking only at the denominator here]
that will be at x= -2pi, -pi, pi, and 2pi

My problem is the second part
f'(x) = 0 when the whole equation = 0
0 = sin(x)cos(x)/|sinx(x)| - x-2
therefore
sin(x)cos(x)/|sinx(x)| = x-2
using |sin(x)| as sqrt(sin2x) instead
we get
sin(x)cos(x)/(sqrt(sin2x)) = x-2
a little algebra and then we get
x4 = sec2(x)

and now... i am stuck.
is there a way to solve this particular equation?
 
Physics news on Phys.org
fishspawned said:

Homework Statement



i am looking for the potential extrema on the function y = |sinx(x)| + (1/x) between [-2pi, 2pi]

Homework Equations



extrema will be likely located at f'(x) = 0 or u/d
An extremum can also occur at an endpoint of a closed interval.
fishspawned said:

The Attempt at a Solution



first it is noted that there is a discontinuity at x=0
then determining f'(x) by using |sin(x)| as sqrt(sin2x) instead
we get f'(x) = sin(x)cos(x)/|sinx(x)| - x-2

first the easy one : we can see that f'(x) = u/d where sin(x) = 0 [looking only at the denominator here]
that will be at x= -2pi, -pi, pi, and 2pi

My problem is the second part
f'(x) = 0 when the whole equation = 0
0 = sin(x)cos(x)/|sinx(x)| - x-2
therefore
sin(x)cos(x)/|sinx(x)| = x-2
using |sin(x)| as sqrt(sin2x) instead
we get
sin(x)cos(x)/(sqrt(sin2x)) = x-2
a little algebra and then we get
x4 = sec2(x)

and now... i am stuck.
is there a way to solve this particular equation?
Rather than replace ##|\sin(x)|## by ##\sqrt{\sin^2(x)}##, it might be simpler to look at your function on the two intervals for which ##\sin(x) \ge 0## and on the two intervals on which ##\sin(x) \le 0##. This would make the derivatives a bit simpler, but I think you will still have a hard time finding a solution algebraically.
 
fishspawned said:

Homework Statement



i am looking for the potential extrema on the function y = |sinx(x)| + (1/x) between [-2pi, 2pi]

Homework Equations



extrema will be likely located at f'(x) = 0 or u/d

The Attempt at a Solution



first it is noted that there is a discontinuity at x=0
then determining f'(x) by using |sin(x)| as sqrt(sin2x) instead
we get f'(x) = sin(x)cos(x)/|sinx(x)| - x-2

first the easy one : we can see that f'(x) = u/d where sin(x) = 0 [looking only at the denominator here]
that will be at x= -2pi, -pi, pi, and 2pi

My problem is the second part
f'(x) = 0 when the whole equation = 0
0 = sin(x)cos(x)/|sinx(x)| - x-2
therefore
sin(x)cos(x)/|sinx(x)| = x-2
using |sin(x)| as sqrt(sin2x) instead
we get
sin(x)cos(x)/(sqrt(sin2x)) = x-2
a little algebra and then we get
x4 = sec2(x)

and now... i am stuck.
is there a way to solve this particular equation?
First, I am a little confused. In your original problem statement you said ##y = |sinx(x)| + (1/x)##, but the problem you have actually been working on is ##y = |sin(x)| + (1/x)##. So which is it?

A couple of suggestions: When you have an absolute in an equation, it can be helpful to consider each case separately. So in this problem for example, you could rewrite the function ##y = |sin(x)| + (1/x)## as

##y = \begin{cases}
sin(x) + (1/x) & \text{if } -2π \leq x < -π\text{ or }0 \leq x < π\\
-sin(x) + (1/x) & \text{if } -π \leq x < 0\text{ or }π \leq x < 2π
\end{cases}##

Now you can find the derivative for each case.

Sketching a plot of the function and it's derivative also helps in figuring out problems like this.

In answer to your question, no there is not an analytic solution to this problem. You could use a root-finding method like Newton-Raphson to find approximate solutions.
 
first off - OOPS - no we are using |sin(x)| - my apologies for the typo.

i was considering a linear approximation method. separating them into the two parts seems the easiest method.
thanks all.

this is one of those situations where i threw out a question to my students and never checked the solution first. we all just randomly picked a function for a curve sketch analysis. i was just running through it before class tomorrow and got to that point and realized i gave those little dudes something of far more complexity than i imagined.
 
Last edited by a moderator:
fishspawned said:
first off - OOPS - no we are using |sin(x)| - my apologies for the typo.

i was considering a linear approximation method. separating them into the two parts seems the easiest method.
thanks all.

this is one of those situations where i threw out a question to my students and never checked the solution first. we all just randomly picked a function for a curve sketch analysis. i was just running through it before class tomorrow and got to that point and realized i gave those little dudes something of far more complexity than i imagined.

As suggested in #3, look at the function in each of the four sub-intervals, so that you eliminate the absolute value signs. Then look at the derivative in each sub-interval, and either find stationary point(s) or look explicitly at the interval's end-points, because on a bounded interval, a max or min may not be where the derivative vanishes. Finding the stationary points will require numerical methods.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K