What are the equations of the tangent and the normal to the curve #y=cos(2x)e^-x# at the point where #x=0#?

Solutions:

#y_T=-x+1#
#y_N=x+1#

PLEASE EXPLAIN STEP BY STEP.
Thanks.

1 Answer
May 30, 2018

In order to find the tangent, we need to differentiate #y# to find #dy/dx#. In this case we have a product of functions and so we can consider there to be two different functions, #cos(2x)# and # e^-x#, and they each take their turns being differentiated using the product rule.

#f(x) = cos(2x)#
#f'(x) = -2sin(2x)#
and
#g(x) = e^-x#
#g'(x) = -e^-x#

so #dy/dx = f'(x)g(x) + f(x)g'(x)#

and substituting in what we've just found...

#dy/dx = -2e^(-x)sin(2x) - e^(-x)cos(2x)#

where #x = 0#, #y = cos(2*0)*e^0# so #y =1#
and #dy/dx = -2*e^(0)*sin(0) - e^(0)*cos(2*0)# so #dy/dx = -1#.

Since the derivative of the function gives the gradient at #x#, we know that #m = -1# where #x=0#.

Having found the value of #y# at #x =0#, we can simply plug these numbers into the general equation for a line, #y - b = m(x - a)# for a set of points #(a, b)# and a gradient #m#.

So with our points being #(0, 1)#, we can jump straight in and say #y - 1 = -1(x - 0)# and simplifying that gives #y =- x +1#.

Now that we have the equation of the tangent line, we can go ahead and say that the normal will be at a right angle to this tangent. Since the product of the gradients of two tangents (when you multiply the values of the tangents of each line together) will always be equal to #-1# for lines which meet at right angles, we know that since the gradient of our tangent is #-1#, then the gradient of the normal will be the number which, when multiplied by #-1# equals #-1#, so it's obviously just #1#. We could make an equation with the gradient of the normal being #x#, and the gradient of the tangent being #-1#,

so #-1*x = -1#

therefore #x = 1# and the gradient of the normal is #-1#

Now that we know the gradient of the normal, we can say that the equation of the tangent line must be
#y = x +1#.

Notice that we still add the #+1# so that the intercept is the same; keep in mind we only want to flip the gradient so that it meets at a right angle, and not move it up or down.

Hope this helps :-)