Solve the differential equation: e^(2y) * (dy/dx) + tan(x) = 0, given that y = 0 when x = 0. Give your answer in the form y = f(x).

This is a question taken from a core 4 paper and is a typical example of a differential equation question.

The first thing to notice about this equation is that it is "separable", meaning we can rearrange it to get 

e^(2y) dy = - tan(x) dx

Now we can solve this by integrating both sides. We know how to integrate the left hand side, and we get (1/2)e^(2y), but how can we integrate -tan(x)?

To see how we can do this, we write

-tan(x) = -sin(x) / cos(x)

Then, we realise that the numerator is the derivative of the denominator, and so integrating -tan(x) gives ln(|cos(x)|) + C, where C is the constant of integration. 

So, we now have that

(1/2)e^(2y) = ln(|cos(x)|) + C

Now we apply the condition that y(x=0) = 0, giving

1/2 = C

Subbing this in, we have

(1/2)e^(2y) = ln(|cos(x)|) + 1/2

Therefore 

e^(2y) = 2ln(|cos(x)|) + 1

The question asked for the answer to be written in the form y = f(x), and so we need to get the y out of the exponent, which we can do by taking ln of both sides to give

2y = ln( 1 + 2ln(|cos(x)|)  )

And so the final answer is

y = (1/2) ln( 1 + 2ln(|cos(x)|) )

DD
Answered by Dominic D. Maths tutor

12275 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

if f is defined on with f(x)=x^2-2x-24(x)^0.5 for x>=0 a) find 1st derivative of f, b) find second derivative of f, c) Verify that function f has a stationary point when x = 4 (c) Determine the type stationary point.


Use integration by parts to find the integral of xsinx, with respect to x


express the following fraction in the form of m + (n)^1/2. the fraction is ((3*(5)^1/2)^2 - 7)/(3 + 7*(5)^1/2). where m,n are real numbers.


The region R is bounded by the curve y=sqrt(x)+5/sqrt(x) the x-axis and the lines x = 3, x = 4. Find the volume generated when R is rotated through four right-angles about the x-axis. Give your answer correct to the nearest integer.


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning