Im working on a problem and cant seem to figure out how to do it.

The problem is:

Prove the curves y = e^(-x) and y = (e^(-x))(cosx) are tangents to each other at all intersection points.

I did some work and found they both intersect when x = 0 but im not sure how to prove they are tangents to each other at this point.