Initial shape no velocity, divides into left-moving and right-moving halves

Initial shape no velocity, divides into left-moving and right-moving of same shape half size

Problem: Suppose the initial condition is given by and . How does the wave evolve?

Solution: Write the solution in the format . The initial conditions determine two equations:

The first equation implies , which we solve for and plug into the second:

Now plug this in for in the first equation to obtain , and therefore:

This is the equation of a wave with shape moving to the left superposed on a wave with shape moving to the right.