Q. 86

Question

In Problem 85 and 86 graph each of the function

g(x)=2sinx             if 0xπcosx+1         ifπ<x2π

Step-by-Step Solution

Verified
Answer

Graph of the given function

1Step 1.Given information

The given function g(x)=2sinx             if 0xπcosx+1         ifπ<x2π

Now graph each function as follows.
The given function is a composite function of function y=2sinx for the interval 0xπ

and function y=cosx+1 for the interval π<x2π.

Here domain of the function g(x) is [0,2π] and its range is 1 to - 1.  

2Step 2.Calculate some points for sin x in their given domain

Choose different x-values and calculate the corresponding y=sinx values.

  x  y=2sinx  (x,y)
  0  2sin0=0 (0,0)
  π4  2sinπ4=222             =2(π4,2)
  π2   2sinπ2=2(1)             =2 (π2,2)
  3π4    2sin3π4=222               =2 3π4,2
   π  2sinπ=0  π,0
3Step 3.Calculate some points for cos x in their given domain
Choose different -xvalues and calculate the y=cosx+1 corresponding  values.
  x  y=cosx+1    (x,y)
  5π4 cos5π4+1=-22+1                    =0.293 5π4,0.293 
    3π2  cos3π2+1=0+1                    =1  3π2,1
  7π4    cos7π4=22+1              =1.7071  7π4,1.7071
   2π   cos(2π)+1=1+1                 =2 2π,2



4Step 4.Plot the above ordered pairs on the graph and connect them with a smooth curve.

Thus function g(x) is graphed as a composite function of y=2sinx in blue and y=cosx+1 in pink shown below: