Finding the Range of a Trig Function with Cauchy-Schwarz

  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    Function Range
Click For Summary

Homework Help Overview

The problem involves finding the range of the function, ##f(x)=\cos x(\sin x+\sqrt{\sin^2x+\sin^2\alpha})##, where ##\alpha \in [0,\pi]##. Participants are exploring the implications of this function and its components.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss breaking down the function into parts and consider the possibility of finding an inverse function. Some express uncertainty about how to simplify the expression or approach the problem effectively.

Discussion Status

There are various lines of reasoning being explored, including the use of the Cauchy-Schwarz inequality and the implications of the quadratic formula on the function's range. Some participants have provided hints and suggestions, but no consensus has been reached on the approach.

Contextual Notes

Participants note potential issues with the function's behavior at certain values, such as when ##x=0## or when ##\cos(y)=0##, which may affect the validity of the inverse function. There is also mention of the discriminant condition for the quadratic form derived from the function.

Saitama
Messages
4,244
Reaction score
93

Homework Statement


##\forall x \in R##, find the range of function, ##f(x)=\cos x(\sin x+\sqrt{\sin^2x+\sin^2\alpha})##; ##\alpha \in [0,\pi]##.


Homework Equations





The Attempt at a Solution


Honestly, I cannot think of how to approach this problem. I don't see how would I simplify the given expression. I require a few hints to start with.

Any help is appreciated. Thanks!
 
Physics news on Phys.org
My advice would be to break it down and look at each part individually. Another strategy that probably won't work here is that the range of f(x) is the same as the domain of f^-1(x) [f-inverse]. Since domain is easier to find, that might work.
 
drewfstr314 said:
My advice would be to break it down and look at each part individually. Another strategy that probably won't work here is that the range of f(x) is the same as the domain of f^-1(x) [f-inverse]. Since domain is easier to find, that might work.

I did think of finding the inverse but then I couldn't find a way to do that.
 
[itex]f(x) = \cos x (\sin x + \sqrt{\sin^2 x + \sin^2 \alpha})[/itex]

Well, to find the inverse, switch x and y, and solve for y = f^-1(x):

[itex]x = \cos y (\sin y + \sqrt{\sin^2 y + \sin^2 \alpha})[/itex]

I think the first step is to get rid of the square root by isolating it:

[itex]x\sec y - \sin y = \sqrt{\sin^2 y + \sin^2 \alpha}[/itex]

Can you solve for y now?

Squaring each side,

[itex]x^2\sec^2 y - 2x\sec y \sin y + \sin^2 y = \sin^2 y + \sin^2 \alpha[/itex]

sec y sin y = sin y * 1/cos y = tan y, so

[itex]x^2\sec^2 y - 2x\tan y = \sin^2 \alpha[/itex]

Then, there's a trig identity 1 + tan^2 x = sec^2 x, so

[itex]x^2(1 + \tan^2 y) - 2x\tan y - \sin^2 \alpha = 0[/itex]

Distributing and rearranging,

[itex]x^2\tan^2 y - 2x\tan y + x^2 - \sin^2 \alpha = 0[/itex]

You might recognize this as a quadratic equation, not in x, but in tan y. We can use the quadratic formula:

[itex]\tan y = \frac{2x \pm \sqrt{4x^2 - 4(x^2)(x^2 - \sin^2 \alpha)}}{2(x^2)}[/itex]

[itex]\tan y = \frac{2x \pm \sqrt{4x^2 - 4x^4 + 4x^2\sin^2 \alpha}}{2x^2}[/itex]

Factoring out an 4x^2 from the square root,

[itex]\tan y = \frac{2x \pm \sqrt{x^2(1 - x^2 + \sin^2 \alpha}}{2x^2}[/itex]

Then, [itex]\sqrt{a^2b} = a\sqrt{b}[/itex], so

[itex]\tan y = \frac{2x \pm 2x\sqrt{1+\sin^2 \alpha - x^2}}{2x^2}[/itex]

Simplifying this,

[itex]\tan y = \frac{1 \pm \sqrt{1+\sin^2 \alpha - x^2}}{x}[/itex]

Then, (tan y = tan(y + pi) = tan(y + 2pi) = ...),

[itex]y = \arctan\left(\frac{1 \pm \sqrt{1+\sin^2 \alpha - x^2}}{x} \right) + k\pi[/itex]

where arctan(x) is the principal value of the inverse-tangent.

And we can finally see what the domain will be.

Domain of arctan(x): all reals

Domain of inside parts:
- The value under the square root has to be non-negative:
[itex]1+\sin^2 \alpha - x^2 \geq 0[/itex]
[itex]x^2 \leq 1+\sin^2 \alpha[/itex]

For these kinds of inequalities (x^2 <= constant), the interval is always [-sqrt(constant), sqrt(constant)], so

[itex]-\sqrt{1 + \sin^2 \alpha} \leq x \leq \sqrt{1+\sin^2 \alpha}[/itex]

- The denominator cannot be zero.
[itex]x \neq 0[/itex]

So the domain of y is simply where both of these is true. But we need to figure out what sin^2(α) is. The bounds are completely irrelevant, since sin^2(x) has range [0, 1]. So the values under the square roots is 1 + [0, 1] = [1, 2]. The smallest negative value in the range is when sin^2(α) = 1, and -sqrt(1+1) = -sqrt(2). The largest positive value in the range is also when sin^2(α) = 1 and sqrt(1+1) = sqrt(2). But we can't include zero. So the range is [itex][-\sqrt{2}, 0) \cup (0, \sqrt{2}][/itex].

I've looked at WolframAlpha on this problem, but the graph does go through zero (which is easy to see by setting f(x) = 0. cos x is zero at pi/2 + 2pi*k, so it goes through zero infinitely many times). The actual range is [-sqrt(2), sqrt(2)] with zero, but I don't know why there is an x in the denominator leaving it out of the domain.
 
According to the given answer, range is ##[ -\sqrt{1+\sin^2\alpha},\sqrt{1+\sin^2\alpha}]## but the inverse include x in denominator so the range should not be equal to zero. :confused:

Anyways, thanks a lot drewfstr314! :)
 
you can see it in the first line of the calculation of the inverse.
##xsec(y)-sin(y)= \sqrt{sin^2(y)+sin^2( \alpha )}##
Now, it looks like x=0 is not allowed, since we want to have an arbitrary alpha. But there is also the possibility that sec(y) goes to infinity. Or, in a more mathematically rigorous way, when we have cos(y)=0 then we are not allowed to divide by cos(y). So, really the 'inverse' is not allowed for certain values.

edit: blech, I'm talking rubbish. It would still be possible to have ##x=0## and ##\alpha=0## and this is still allowed. But anyway, I think that somewhere in the calculation there will be a step similar to this, which effectively does something that is not allowed for certain x values.

edit2: yeah ok, I found it. it is when the quadratic formula is used to give:
##\tan y = \frac{2x \pm \sqrt{4x^2 - 4(x^2)(x^2 - \sin^2 \alpha)}}{2(x^2)}##
But this 'quadratic formula' already assumes that x is not zero. i.e. it does not faithfully 'replicate' the true function at x=0.
 
Last edited:
Pranav-Arora said:

Homework Statement


##\forall x \in R##, find the range of function, ##f(x)=\cos x(\sin x+\sqrt{\sin^2x+\sin^2\alpha})##; ##\alpha \in [0,\pi]##.

Pranav-Arora said:
According to the given answer, range is ##[ -\sqrt{1+\sin^2\alpha},\sqrt{1+\sin^2\alpha}]##

Let [itex]y = \cos x(\sin x+\sqrt{\sin^2x+\sin^2\alpha})[/itex]. Then we can re-arrange this as in drewfstr314's post (without first interchanging x and y) to get
[tex]y^2 \tan^2 x - 2y\tan x + y^2 - \sin^2\alpha = 0[/tex]
This is a quadratic in [itex]\tan x[/itex]. Given [itex]y[/itex], there will exist [itex]x[/itex] such that [itex]f(x) = y[/itex] if and only if that quadratic has real roots (because for any [itex]C \in \mathbb{R}[/itex] there exists [itex]x \in \mathbb{R}[/itex] such that [itex]\tan x = C[/itex]). This will be the case if and only if the discriminant is non-negative. This in turn gives you an inequality which [itex]y^2[/itex] must satisfy, and the range of [itex]f[/itex] is exactly the set of [itex]y[/itex] which satisfy that inequality.
 
Let [tex]y = f(x) = \cos x \left(\sin x + \sqrt{\sin^2 x+\sin^2 \alpha}\right)[/tex]

[tex]y = \sin x.\cos x+\cos x.\sqrt{\sin^2 x+\sin^2 \alpha}[/tex]

Now Using Cauchy-Schwartz Inequality, We Get

[tex]\left(\sin^2 x+\cos^2 x\right).\left(\cos^2 x+ \left(\sqrt{\sin^2 x+\sin^2 \alpha}\right)^2\right)\geq \left(\sin x.\cos x+\cos x.\sqrt{\sin^2 x+\sin^2 \alpha}\right)^2[/tex]

[tex]\left(1+\sin^2 \alpha\right) \geq \left(\sin x.\cos x+\cos x.\sqrt{\sin^2 x+\sin^2 \alpha}\right)^2[/tex]

OR [tex]\left(\sin x.\cos x+\cos x.\sqrt{\sin^2 x+\sin^2 \alpha}\right)^2 \leq \left(\sqrt{1+\sin^2 \alpha}\right)^2[/tex]

So [tex]y^2 \leq \left(\sqrt{1+\sin^2 \alpha}\right)^2[/tex]

So [tex]-\sqrt{1+\sin^2 \alpha} \leq y \leq +\sqrt{1+\sin^2 \alpha}[/tex]

So [tex]y \in \left[-\sqrt{1+\sin^2 \alpha},+\sqrt{1+\sin^2 \alpha}\right][/tex]
 
  • Like
Likes   Reactions: 1 person
Excellent solution juantheron! :cool:

Never thought I could apply Cauchy-Schwarz here. Thanks a lot!
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
8
Views
5K
  • · Replies 16 ·
Replies
16
Views
3K