1

I would like to ask a pair of questions regarding this function.

First question: How is this expression derived?

Let's consider that $f(x)=a\cos x+b\sin x$. Now, I tried hard to derive the expression myself, but it was just a waste of time. I have read two derivations of this, which I doubt are correct:

1) The first one starts by considering $a=R\sin\alpha$ and $b=R\cos\alpha$. How can this statement be true? There are two real numbers $a$ and $b$. How can we make this assertion that both of them can be expressed as the trigonometric functions of the same angle $\alpha$, multiplied by some scalar $R$?

2) The second one starts by considering this: Let $f(x)=a\cos x+b\sin x=R\sin(x+\alpha)$. Again, the problem here is how can we just say that this function is indeed a sine function, multiplied by a scalar, without doing any analysis or graphing it? How is it true? If this were true, can't we do this just with any function, represent it any way we want?

From these two starting points, the rest of the formulae are derived, which are not difficult to derive. So, what is the possible way to prove it?

Second question: Is this formula theoretical or is it derived after rigorously analysing the function?

When I wasn't able to prove it, I felt that thinking something like this would have taken a lot of effort. Because there was no way a normal person can think about facts like "this expression is a special sine or a cosine" without spending days on it. So, is it possible to derive this relationship without analysing the function, for example without graphing it, without trying certain pairs of values for it or something like that?

codetalker
  • 2,419
  • do you agree that - if $a^2+b^2=1$ - then we can always find $\alpha$ such that $a=\sin\alpha$ and $b=\cos\alpha$?
  • – drhab Jul 17 '16 at 12:02
  • @drhab, yes, I do – codetalker Jul 17 '16 at 12:03
  • 1
    Well, if $R^2:=a^2+b^2>0$ then observe that $a'^2+b'^2=1$ if $a':=\frac{a}{R}$ and $b':=\frac{b}{R}$. Secondly $R=0$ must be treated as special case. – drhab Jul 17 '16 at 12:05
  • @drhab, if you would have made that an answer, I would have upvoted and accepted it – codetalker Jul 17 '16 at 12:09
  • Thanks. The pleasure to help exceeds the pleasure of gaining reputation ;-). – drhab Jul 17 '16 at 12:12
  • "a=Rsinα and b=Rcosα. How can this statement be true?" Why shouldn't it be true? Suppose a,b $\ne$ 0. The $a/b \ne 0 \in R$. Then there is some $\alpha = \arctan a/b;$. $\sin \alpha \ne 0$ so let $R = a/\sin \alpha$. Then $a = R \sin \alpha$ and $R \cos \alpha = a \cos \alpha/\sin \alpha = a/\tan \alpha = a/(a/b) = b$. If $a = 0$ then $a = b \sin 0; b = b \cos 0$ and if $b = 0$ the $a = a \sin \pi/2$ and $b = a \cos \pi/2$. – fleablood Jul 20 '16 at 23:32