Question regarding these two extreme values problems...

So I'm on the last two problems of this assignment and I've worked them both out as far as I can and I can't seem to figure out where I'm going wrong. Both of them have to do with extreme values and the 1st and 2nd Derivative Tests.

Here's the first:

$\displaystyle f(x) = \cos (x) + \frac{\sqrt{2}}{2} x$

The function has two critical numbers, A being less than B, over the interval $\displaystyle [0, 2\pi ]$

A = ( ? )

B = ( ? )

f''(A) = ( ? )

f''(B) = ( ? )

Thus f(x) has a local ( ? ) at A and a local ( ? ) at B.

To start out, I got this for the derivative:

$\displaystyle f'(x) = -\sin (x) + \frac{1}{\sqrt{2}}$

$\displaystyle 0 = -\sin (x) + \frac{1}{\sqrt{2}}$

$\displaystyle \frac{-1}{\sqrt{2}} = -\sin (x)$

$\displaystyle \frac{1}{\sqrt{2}} = \sin (x)$

And now I have to solve for x and I'm not really sure how. I took the second derivative and got $\displaystyle f''(x) = -\cos (x)$. I don't feel like I did the problem right at all... where am I going wrong? Where do I go next?

Here's the second problem:

$\displaystyle f(x) = x(\sqrt{{x}^{2} + 4})$ on the interval $\displaystyle [-5,4]$

-f(x) is concave down on the region ( ? ) to ( ? )

-f(x) is concave up on the region ( ? ) to ( ? )

-The inflection point for the function is at ( ? )

-The minimum for the function occurs at ( ? )

-The maximum for the function occurs at ( ? )

Again I started by taking the derivative:

$\displaystyle f'(x) = \frac{2{x}^{2} + 4}{ \sqrt{{x}^{2} + 4}}$

Now, that $\displaystyle \sqrt{{x}^{2} + 4}$ should just simplify to x + 2 right? In that case, I continued:

$\displaystyle \frac{2{x}^{2} + 4}{x + 2}$

One of the x's cancels...

$\displaystyle \frac{2x + 4}{2}$

And if I keep going and solve for x I find that x = 2. The only problem is that the question is asking for multiple intervals on which the function is increasing and decreasing and with this single critical point it's impossible to find those intervals. I know I'm definitely doing something wrong in this problem.

Any tips on either of these would be greatly appreciated... (Worried)

P.S. And also how do I get rid of the </br> for every time I use the Latex thing? Moderator Edit: Its weird, it inserted the html command for breaks <br /> if you create a new line after declaring the first [tex] bracket and hit enter before the second [tex] bracket. I'll look into this more...