Asinx + bcosy into single trig function

  • Thread starter Thread starter RsZrg
  • Start date Start date
  • Tags Tags
    Function Trig
Click For Summary
The discussion centers on the possibility of expressing the sum Asin(x) + Bcos(x) as a single trigonometric function. It is established that while it can be expressed in the form A(cos(y)sin(x) + sin(y)cos(x)), this requires specific relationships between A, a, and b that do not hold for all values. The general solution is explored, with suggestions to use Fourier methods, but limitations are acknowledged. A method is proposed to find angle φ such that a1 = cos(φ) and b1 = sin(φ), leading to the expression A*sin(φ + x). Ultimately, it is noted that there exists a unique angle y for each non-zero a and b, allowing for the conversion under certain conditions.
RsZrg
Messages
2
Reaction score
0
I know that asinx + bcosx can be put into a single trig fom, but can also the above sum be put into a single trig function?
 
Physics news on Phys.org
If you could convert it to this format:

A(cosy*sinx + siny*cosx)

then yes it could be converted to Asin(y+x) as an example.

However, that requires that a and b must have the following relationships:

a=Acosy and b=Asiny

which will not be true in the general case for any a and b.
 
Thanks Jedi
I am looking for a general solution for any a and b. Is this possible? I have tried the above method but currently limited by the above restrictions.
 
I don't think there is any hope here. Usually this kind of problem might push someone to use Fourier methods but again your initial solution is probably optimal.

I am not one of the Math mentors but perhaps @Mark44 or @HallsofIvy would have a better answer to your problem.
 
Off the top of my head: Let A=\sqrt{a^{2}+b^{2}} and a_{1}=\frac{a}{A}, b_{1}=\frac{b}{A}. Then a_{1}^{2}+b_{1}^{2}=1, therefore you can find an angle φ such that a1=cos(φ) and b1=sin(φ).
∴a⋅sin(x)+b⋅cos(x) = A(cos(φ)sin(x)+sin(φ)cos(x))=A⋅sin(φ+x).
 
jedishrfu said:
If you could convert it to this format:

A(cosy*sinx + siny*cosx)

then yes it could be converted to Asin(y+x) as an example.

However, that requires that a and b must have the following relationships:

a=Acosy and b=Asiny

which will not be true in the general case for any a and b.

Actually it is: \tan y = b/a (there exists exactly one such y \in (-\pi/2, \pi/2) for each possible choice of a and b \neq 0) and A = \sqrt{a^2 + b^2}.

See also here.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
Replies
14
Views
6K
Replies
1
Views
17K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
16
Views
2K
Replies
2
Views
2K