Let us consider the first one. Suppose . So y becomes . Suppose Do you know how to differentiate ? Also, do you know the chain rule of differentiation?
Where, exactly, is your difficulty? Do you know how to differentiate these functions, using the chain rule, as Sambit suggested, for the first one and the product rule for the second? Do you know how to form the equation of the tangent line after you have the derivative?