A function such as 1-cos(x) or 1-cos3(x) can be represented as a power series: an infinite sum of the form
[tex]f(0) + \frac{f'(0)x^1}{1} + \frac{f''(0)x^2}{2 * 1} + \frac{f'''(0)x^3}{3*2*1} + ...[/tex]
where [itex]f'(0)[/itex] is the first derivative of the function at 0, and [itex]f''(0)[/itex] the second derivative at 0, and so on. I used the * to mean "times". This sum is called the Taylor series representation of the function "expanded at 0". (A Taylor series expanded at 0 is also called a MacLaurin series.)
You can approximate the function with some finite number of terms in this series. For any given number of terms, and any given degree of accuracy (any error you're willing to accept), you can always make your approximation accurate to within that amount of error by chosing a small enough value of x (a value of x close enough to 0).
For your first example, the first non-zero term in the sum is
[tex]\frac{x^2}{2}[/tex]
Try it out on your other example. What's the first non-zero term this time?