Manipulating sin/cos functions

  • Thread starter Thread starter HighCommander4
  • Start date Start date
  • Tags Tags
    Functions
Click For Summary

Homework Help Overview

The discussion revolves around rewriting the function sin x + 2 cos (x - pi/6) in the form r sin (x + theta). Participants explore the relationships between sine and cosine functions and their coefficients.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss using addition formulas to express the function in terms of sine and cosine, equating coefficients to find r and theta. Questions arise about the uniqueness of solutions and the implications of linear independence of sine and cosine functions.

Discussion Status

The conversation is active, with participants offering various methods to approach the problem, including squaring and adding equations to simplify the process. Some participants express uncertainty about the necessity of higher-level concepts and seek simpler methods aligned with their current knowledge.

Contextual Notes

Participants note that they are expected to solve the problem using techniques learned in high school, indicating a constraint on the methods they can employ.

HighCommander4
Messages
7
Reaction score
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
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.
 
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?
 
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?
 
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?
 
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?
 
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?
 
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.
 
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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
1K
Replies
4
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
5K
Replies
3
Views
2K