4

How would you find the period of $$f(x)=\cos(ax) + \sin(bx)$$

*Edit such that $a,b \in \mathbb{Z}$

A step by step proof would be appreciated!

2 Answers2

3

This has a period if and only if $\frac{a}{b}$ is rational.

marty cohen
  • 107,799
  • Why? I tried to justify, but I don't know how to justify that if $h=f+g$, being $f$ of periods $p_1$ and $g$ of periods $p_2$, then for $h$ to be periodic there must be $m, n$ such that $p_1=p_2$. – Pierre Aug 05 '22 at 12:40
2

Period of $cos(ax)$ and $sin(bx)$ are $2π/|a|$ and $2π/|b|$, respectively. Now

The period of the sum of two periodic functions are the LCM of their periods

So here the period of $f(x)= cos(ax) + sin(bx)$ will be LCM($2π/|a|$,$2π/|b|$)

PS: As other answers(or comments) pointed out this only works if $a,b \in$ $\mathbb{Z}$

hxri
  • 174