Sine-squared function

From Calculus
Revision as of 20:13, 3 September 2011 by Vipul (talk | contribs) (→‎Graph)

This article is about a particular function from a subset of the real numbers to the real numbers. Information about the function, including its domain, range, and key data relating to graphing, differentiation, and integration, is presented in the article.
View a complete list of particular functions on this wiki

Definition

This function, denoted sin2, is defined as the composite of the square function and the sine function. Explicitly, it is the map:

x(sinx)2

For brevity, we write (sinx)2 as sin2x.

Key data

Item Value
Default domain all real numbers, i.e., all of R
range [0,1], i.e., {y0y1}
absolute maximum value: 1, absolute minimum value: 0
period π, i.e., 180
local maximum value and points of attainment All local maximum values are equal to 1, and are attained at odd integer multiples of π/2.
local minimum value and points of attainment All local minimum values are equal to 0, and are attained at integer multiples of π.
points of inflection (both coordinates) odd multiples of π/4, with value 1/2 at each point.
derivative xsin(2x)=2sinxcosx, i.e., double-angle sine function.
second derivative x2cos(2x)
nth derivative 2n1 times an expression that is ±sin or ±cos of 2x, depending on the remainder of n mod 4
antiderivative xx2sin(2x)4+C
mean value over a period 1/2
expression as a sinusoidal function plus a constant function (1/2)cos(2x)/2
important symmetries even function (follows from composite of even function with odd function is even, the square function being even, and the sine function being odd)
more generally, miror symmetry about any vertical line of the form x=nπ/2, n an integer.
Also, half turn symmetry about all points of the form (nπ/2+π/4,1/2).
interval description based on increase/decrease and concave up/down For each integer n, the interval from nπ to (n+1)π is subdivided into four pieces:
(nπ,nπ+π/4): increasing and concave up
(nπ+π/4,nπ+π/2): increasing and concave down
(nπ+π/2,nπ+3π/4): decreasing and concave down,
(nπ+3π/4,(n+1)π): decreasing and concave up
power series and Taylor series The power series about 0 (which is hence also the Taylor series) is
k=1(2)2k1(1)k1x2k(2k)!
It is a globally convergent power series.

Graph

Here is the graph on the interval [2π,2π], drawn to scale:

Here is a close-up view of the graph between π and π. The dashed horizontal line indicates the mean value of 1/2:

The red dotted points indicate the points of inflection and the black dotted points indicate local extreme values.

Integration

First antiderivative: using double angle formula

We use the identity:

sin2x=1cos(2x)2

We can now do the integration:

sin2xdx=1cos(2x)2dx=12dxcos(2x)2dx=x2sin(2x)4+C

First antiderivative: using integration by parts

We rewrite sin2x=(sinx)(sinx) and use integration by parts in its recursive version:

sin2xdx=(sinx)(cosx)(cosx)(cosx)dx=sinxcosx+cos2xdx

We now rewrite cos2x=1sin2x and obtain:

sin2xdx=sinxcosx+(1sin2x)dx

Setting I to be a choice of antiderivative so that the above holds without any freely floating constants, we get:

I=sinxcosx+xI

Rearranging, we get:

2I=xsinxcosx

This gives:

I=xsinxcosx2

So the general antiderivative is:

xsinxcosx2+C

Using the double angle sine formula sin(2x)=2sinxcosx, we can verify that this matches with the preceding answer.

Definite integrals

The x/2 part in the antiderivative signifies that the linear part of the antiderivative of sin2 has slope 1/2, and this is related to the fact that sin2 has a mean value of 1/2 on any interval of length equal to the period. It is in fact clear that the function is a sinusoidal function about x=1/2.

Thus, we have:

aa+nπsin2xdx=nπ2

where n is an integer.

Higher antiderivatives

It is possible to antidifferentiate sin2 more than once. The nth antiderivative is the sum of a polynomial of degree n and a trigonometric function with a period of π.

Power series and Taylor series

Computation of power series

We can use the identity:

sin2x=1cos(2x)2

along with the power series for the cosine function, to find the power series for sin2.

The power series for the cosine function converges to the function everywhere, and is:

cosx=1x22!+x44!x66!+=k=0(1)kx2k(2k)!

The power series for cos(2x) is:

cos(2x)=1(2x)22!+(2x)44!(2x)66!+=k=0(1)k22kx2k(2k)!

The power series for 1cos(2x) is:

1cos(2x)=(2x)22!(2x)44!+(2x)66!=k=1(1)k122kx2k(2k)!

Dividing by 2, we get the power series for sin2x:

sin2x=21x22!23x44!+25x66!=k=1(1)k122k1x2k(2k)!

Here's another formulation with the first few terms written more explicitly:

sin2x=x2x43+2x645

Some limits based on the power series

We get the following limit from the power series:

limx0sin2xx2=1

In particular, the zero of sin2 at 0 has order 2. This makes sense in many ways:

  • We know that the zero of sin at 0 has order 1, and so the zero of sin2 should have order 2.
  • sin2 has a local minimum at zero, so we know the zero there should have even order.

Further, we have, again from the power series:

limx0x2sin2xx4=13