Manipulating sin/cos functions

  • Thread starter HighCommander4
  • Start date
  • Tags
    Functions
In summary, the conversation discusses how to rewrite the function sin x + 2 cos (x - pi/6) in the form r sin (x + theta) and how to prove that A = C and B = D in the equation Asin(x)+Bcos(x)=Csin(x)+Dcos(x). The solution involves using addition formulas and equating coefficients of sin(x) and cos(x) on both sides. The conversation also discusses simpler methods to prove A = C and B = D, such as plugging in specific values of x.
  • #1
HighCommander4
7
0
I'm not sure if this is considered pre- or post-calculus (I am doing it for a calculus course, but I doubt it involves actual calculus) but I'll go ahead and post here.

Homework Statement



I am required to re-write the function sin x + 2 cos (x - pi/6) in the form r sin (x + theta).

Homework Equations



cos (x) = sin (x + pi/2)
perhaps equations for sin (a + b) and cos (a + b)?

The Attempt at a Solution



So I tried to get everything to be sine:
sin x + 2 cos (x - pi/6) = sin x + 2 sin (x - pi/6 + pi/2)
= sin x + 2 sin (x + pi/3)

I now tried to expand the second term using the equation sin(a+b) = sin(a)cos(b) + cos(a)sin(b):
= sin x + 2 [ sin (x) cos(pi/3) + cos (x) sin (pi/3)]
= sin x + 2 [sin(x)(1/2) + cos(x)(sqrt(3)/2)]
= sin x + sin x + sqrt(3) cos x
= 2 sin x + sqrt(3) cos x

But I don't know where to go from here. Trying to convert this new cosine to sine using cos (x) = sin (x + pi/2) just brings you back to the same thing after simplifying.

So where do I go from here to get it to be in the form r sin (x + theta)?
 
Physics news on Phys.org
  • #2
Use the addition formulas to write both sides completely in terms of sin(x) and cos(x). Then equate the coefficients of sin(x) and cos(x) on both sides. This will allow you to determine r and theta. Two equations, two unknowns. The principle involved is that sin(x) and cos(x) are linearly independent functions, but you don't need to know that.
 
  • #3
Thank you for your reply.

I'm guessing you meant to set sin(x) + 2cos(x - pi/6) equal to r sin(x + theta). I tried that and followed your instructions and this is what I got:

sin(x) + 2cos(x - pi/6) = r sin(x + theta)
sin(x) + 2[cos(x)cos(pi/6) + sin(x)sin(pi/6)] = r[sin(x)cos(theta) + cos(x)sin(theta)]
sin(x) + 2[cos(x)(sqrt(3)/2) + sin(x)(1/2)] = r sin(x)cos(theta) + r cos(x)sin(theta)
sin(x) + sqrt(3)cos(x) + sin(x) = r sin(x)cos(theta) + r cos(x)sin(theta)
2sin(x) + sqrt(3)cos(x) = (r cos(theta))sin(x) + (r sin(theta))cos(x)

So now I have everything in terms of sin(x) and cos(x). If I'm understanding correctly, you're telling me to set their coefficients equal to each other, that is,
2 = r cos(theta)
sqrt(3) = r sin(theta)

How do I know I am allowed to do that? More specifically, how do I know that other values of r and theta (different from the ones I get after solving this system of equations) don't exist that also satisfy the equation? I would somehow have to prove that other solutions don't exist before I go on. I would really appreciate if you showed me how I can do that.

Anyways, let's assume I proved that no other solutions exist, I now proceed to solve this system of equations:

r = 2 / cos(theta)
sqrt(3) = (2 / cos(theta))sin(theta)
sqrt(3) = 2 tan(theta)
sqrt(3) / 2 = tan(theta)
theta = arctan(sqrt(3) / 2)
r = 2 / cos(arctan(sqrt(3) / 2))

My equation in the form r sin(x + theta) would then be
(2 / cos(arctan(sqrt(3) / 2))) sin(x + arctan(sqrt(3) / 2))
Am I doing something wrong that I am getting results that are this ugly, or is there perhaps a way of simplifying them?
 
  • #4
Starting from:
2 = r cos(theta)
sqrt(3) = r sin(theta)
there is much easier way to proceed. Square both sides of the equations and add them, you should easily get r. Now divide the two equations by each other. You should easily get theta (as you already did).
The proof that if Asin(x)+Bcos(x)=Csin(x)+Dcos(x), then A=C and B=D involves the notion of linear independence of functions. Have you done that?
 
  • #5
Thank you for your continued help. Squaring and adding does indeed make it much easier. I now get r = sqrt(7), but for theta I still get arcsin(sqrt(3/7)). Is that as good as it gets?

I've done linear independence of vectors in R2 and R3, but not of functions like sine and cosine. If this solution requires knowledge of higher concepts than we have learned, perhaps there is an alternate solution relying on simpler concepts?
 
  • #6
Yep, good as it gets. Here's a simpler proof. Showing if Asin(x)+Bcos(x)=Csin(x)+Dcos(x), then A=C and B=D is equivalent to showing if Asin(x)+Bcos(x)=0 then A=B=0, right? Integrate (Asin(x)+Bcos(x))^2 from 0 to 2pi. I'll save you some time and tell you what you get. It's pi*(A^2+B^2). If that is 0, what do you conclude about A and B?
 
  • #7
I follow your logic, but I haven't done integration yet either. I'm basically just starting my first-year calculus course and I'm expected to solve this problem using what I already learned in high school. Is there a way of solving it using the more basic techniques taught in high school?
 
  • #8
Ok, I'm still with you. Even simpler. Asin(x)+Bcos(x)=0. Put x=0 and tell me what you conclude about B. Put x=pi/2 and tell me what you conclude about A. Sorry I didn't think about how simple it could be earlier. Try the same thing for Asin(x)+Bcos(x)=Csin(x)+Dcos(x) if you don't believe me yet.
 
  • #9
Working with Asin(x)+Bcos(x)=Csin(x)+Dcos(x),
x = 0 yields B = D
x = pi/2 yields A = C
But how does that prove that A = C and B = D in general?
 
  • #10
Your equation is supposed to hold for all x. If it doesn't hold for x=0 and x=pi/2, what's the point in writing it down?
 
  • #11
What I mean to say is, how do I know that A = C and B = D for x = pi/4 or x = 1.23456 or any other value of x?
 
Last edited:
  • #12
A,B,C and D are not functions of x. They are constants. If you solve for the relation between A,B,C and D by plugging in specific values of x, how can they not hold for all x? You've shown A=C and B=D. So A*sin(x)+B*cos(x)=C*sin(x)+D*cos(x) becomes Asin(x)+Bcos(x)=Asin(x)+Bcos(x). Looks to me like that would hold for all x.
 
Last edited:
  • #13
I get it now. A, B, C and D are constants so they don't depend on the value of x.

So I can finally present a well-formed solution to this problem. A big thank you for all your help!
 
  • #14
You are talcum.
 

1. How can I manipulate a sine or cosine function to shift it horizontally?

To shift a sine or cosine function horizontally, you can add or subtract a constant value inside the parentheses of the function. For example, to shift a sine function 2 units to the right, you would use the function y = sin(x-2).

2. Can I manipulate a sine or cosine function to change its amplitude?

Yes, you can manipulate the amplitude of a sine or cosine function by multiplying the entire function by a constant value. This will stretch or compress the function vertically. For example, y = 2sin(x) will double the amplitude of the sine function.

3. How do I manipulate a sine or cosine function to change its period?

To change the period of a sine or cosine function, you can multiply the input of the function (x) by a constant value. This will compress or stretch the function horizontally. For example, y = sin(2x) will have a period of π instead of 2π.

4. Is it possible to manipulate a sine or cosine function to reflect it about the x-axis?

Yes, you can reflect a sine or cosine function about the x-axis by multiplying the entire function by -1. This will invert the graph vertically. For example, y = -sin(x) will reflect the sine function about the x-axis.

5. Can I manipulate a sine or cosine function to change its phase shift?

Yes, you can manipulate the phase shift of a sine or cosine function by adding or subtracting a constant value inside the parentheses of the function. For example, y = sin(x+π/2) will shift the sine function π/2 units to the left.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
596
  • Calculus and Beyond Homework Help
Replies
3
Views
237
  • Calculus and Beyond Homework Help
Replies
2
Views
836
  • Calculus and Beyond Homework Help
Replies
3
Views
474
  • Calculus and Beyond Homework Help
Replies
5
Views
410
  • Calculus and Beyond Homework Help
Replies
3
Views
819
  • Calculus and Beyond Homework Help
Replies
1
Views
220
  • Calculus and Beyond Homework Help
Replies
8
Views
809
  • Calculus and Beyond Homework Help
Replies
10
Views
897
  • Calculus and Beyond Homework Help
Replies
6
Views
860
Back
Top