This is for a course, I don't want the answer just a prod in the right direction!
I've got a problem that states
let n be an integer such that $$n\gt0$$ $$\text{Prove: }\sum_{k=0}^n |\cos k| \ge \frac n2$$
I'm using induction to prove this. First I showed my base case:
When $P(0)$ $\sum_{k=0}^0 |\cos o| \ge \frac 02$
Which simplifies down into $|1|\ge 0$ which holds true. So I moved to the induction step.
Assume: $P(n)$ is true such that $\sum_{k=0}^n |\cos k| \ge \frac n2$
WTS: P(n+1) is true such that $\sum_{k=0}^{n+1} |\cos k| \ge \frac n2$
So I broke the summation up into two parts
$\sum_{k=0}^{n+1} |\cos k|=\sum_{k=0}^n |\cos k|+ \cos(n+1)$ Which I can substitute back in and get
$\sum_{k=0}^n |\cos k|+ \cos(n+1) \ge \frac {n+1}2$
I know, well I think, that this is where I use my Induction Hypothesis $\sum_{k=0}^n |\cos k| \ge \frac n2$
But I don't now how to show my next step.
Can I just substitue $\frac n2$ in for $\sum_{k=0}^n |\cos k|$ and continue to solve? or do I have to show more steps in the middle? or am I completely lost? If anyone can prod me into the right direction it would be much appreciated! Thanks for your help!
First Edit @Bungo
This is the way I've been doing it. Is my logic wrong? Do I need to prove the lower bound? Or is my logic okay?
So I broke the sum down and re wrote it as $\sum_{k=0}^n + |\cos n+1| \ge \frac {n+1}2$
And then substituted from the induction hypothesis and wrote it as $\frac n2 + |\cos n+1| \ge \frac {n+1}2$
Then I simplified and got $|\cos n+1| \ge \frac 12$
So now I'm trying to prove that statement as true. Is this okay? Or should I go back and try with the triplets as you suggested? Thanks!
The statement $$\sum_{k=0}^{n}|\cos(k)| \geq \frac{n}{2}$$ appears to be true, but it is not in general true that $$\frac{n}{2} + |\cos(n+1)| \geq \frac{n+1}{2}$$ (e.g., this is false for $n=1$). So I don't think it will be useful to decompose the sum as $$\sum_{k=0}^{n+1} |\cos(k)| = |\cos(n+1)| + \sum_{k=0}^n |\cos(k)|$$ because we don't have a lower bound for $|\cos(n+1)|$ other than zero.
Instead, one might look at pairs of the form $|\cos(n)| + |\cos(n+1)|$ and try to find a useful lower bound for these. Plotting $|\cos(x)| + |\cos(x+1)|$ at Wolfram Alpha suggests that $|\cos(x)| + |\cos(x+1)| > 0.8$ for all $x$, which is still not good enough: we need a lower bound of $1$ if we add in pairs.
So let's look at triplets: $|\cos(n-1)| + |\cos(n)| + |\cos(n+1)|$. Wolfram Alpha's plot shows that the function $|\cos(x-1)| + |\cos(x)| + |\cos(x+1)|$ stays above $1.5$, so if you can prove that lower bound, breaking the sum into groups of triplets should suffice. I think proving the lower bound will be grungy, though. Hopefully someone can propose a nicer solution.