Please see the schematic. I know the points (x1, y1) and (x2,y2) located on a line y1=c. There is another line (y2=mx+c2) which intersect y1 at a point which does not lie on or between(x1, y1) and (x2,y2). I would like to know the function y3 which takes a form of sine function (y3 = Bsin(xpi/d - x1 ) +y1 , where d is the distance between points (x1, y1) and (x2,y2)) and touches the line (y2=mx+c2) at some point but not intersect it. Let me know if this make sense or what part doesn't make sense. Any help/lead would do.
Older version: Please see the schematic. I know points (x1, y1) and (x2,y2) and equations y1 and y2 (m and c). I want to figure out the curve y3, which is a sine curve with amplitude B and touches y2 only at one point. How can I approach this problem. Any lead?