Solveeit Logo

Question

Question: The slope of the tangent to the curve at any point is equal to y+2x.If the curve passes through the ...

The slope of the tangent to the curve at any point is equal to y+2x.If the curve passes through the origin, then find its equation

Explanation

Solution

By using the given slope , we get a linear differential equation of the form dydx+Py=Q\dfrac{{dy}}{{dx}} + Py = Q
To solve such equations , first we need to find the integrating factor I.F=ePdxI.F = {e^{\int {Pdx} }} and the general solution of the linear differential equation is given by yePdx=QePdx+cy{e^{\int {Pdx} }} = \int {Q{e^{\int {Pdx} }} + c} . As the line passes through the orgin , we can substitute (0,0) in the obtained equation to get the value of c . And this gives the equation of the tangent.

Complete step by step answer:

Step 1:
It is given that the slope of the tangent to the curve is y+2x. We know that the slope of the tangent at any point on the curve is dydx\dfrac{{dy}}{{dx}}.
So, now from the given condition, we have that
dydx=y+2x\Rightarrow \dfrac{{dy}}{{dx}} = y + 2x
Now let’s bring the y to the left-hand side
dydxy=2x\Rightarrow \dfrac{{dy}}{{dx}} - y = 2x…………………(1)
Step 2:
We know that the general form of the linear differential equation is,
.dydx+Py=Q\dfrac{{dy}}{{dx}} + Py = Q.
Now equation (1) is of the form of the linear differential equation where P=1,Q=2xP = - 1,Q = 2x
Step 3:
Now we need to solve our differential equation to obtain our required equation.
To solve linear differential equations of this kind we need to find the integrating factor first .
I.F=ePdx\Rightarrow I.F = {e^{\int {Pdx} }}
Here P=-1
I.F=e1dx I.F=edx  \begin{gathered} \Rightarrow I.F = {e^{\int { - 1dx} }} \\\ \Rightarrow I.F = {e^{ - \int {dx} }} \\\ \\\ \end{gathered}
Now integrating dx in terms of x ,we get
I.F=exI.F = {e^{ - x}}
Step 4:
The general solution is given by
yePdx=QePdx+cy{e^{\int {Pdx} }} = \int {Q{e^{\int {Pdx} }} + c}

Here,we know that ePdx=ex and Q=2x{e^{\int {Pdx} }} = {e^{ - x}}{\text{ and }}Q = 2x

yex=2x.exdx+c\Rightarrow y{e^{ - x}} = \int {2x.{e^{ - x}}dx + c}…………….(3)
Step 5:
Now we need to integrate 2xexdx2\int {x{e^{ - x}}dx}
Since we have two different expressions x and exx{\text{ and }}{e^{ - x}} as the integrand .we can use integration by parts
udv=uvvdu\Rightarrow \int {udv = uv - \int {vdu} }
Here our u=x and dv =ex{e^{ - x}}
From this our du is obtained by differenting u
du=dx\Rightarrow du = dx
And v is obtained by integrating dv
v=dv=exdx=ex+c\Rightarrow v = \int {dv = \int {{e^{ - x}}dx} = - {e^{ - x}} + c}
Now lets substitute the values
xexdx=xexexdx\Rightarrow \int {x{e^{ - x}}dx = x* - {e^{ - x}} - \int { - {e^{ - x}}} } dx
Now lets integrate exdx\int {{e^{ - x}}dx} again
exdx=ex+c\Rightarrow \int {{e^{ - x}}dx = - {e^{ - x}} + c}
Therefore
xexdx=xex+(ex)+c xexdx=xexex+c \begin{gathered} \Rightarrow \int {x{e^{ - x}}dx = x{e^{ - x}} + ( - {e^{ - x}}) + c} \\\ \Rightarrow \int {x{e^{ - x}}dx} = x{e^{ - x}} - {e^{ - x}} + c \\\ \end{gathered}
Step 6
Now lets substitute the above equation in equation (3)
yex=2(xexex)+c yex=ex(2x2)+c \begin{gathered} \Rightarrow y{e^{ - x}} = 2(x{e^{ - x}} - {e^{ - x}}) + c \\\ \Rightarrow y{e^{ - x}} = {e^{ - x}}(2x - 2) + c \\\ \end{gathered}
Now lets multiply by ex{e^{ - x}} on both sides
y=2x2+cex\Rightarrow y = 2x - 2 + c{e^x}………………(4)
This is the equation of the curve but it is given that the curve passes through the origin
(x,y)=(0,0)
0=2(0)2+ce0 0=02+c c=2 \begin{gathered} \Rightarrow 0 = 2(0) - 2 + c{e^0} \\\ \Rightarrow 0 = 0 - 2 + c \\\ \Rightarrow c = 2 \\\ \end{gathered}
Substituting the value of c in (4)
y=2x2+2ex 2xy2+2ex=0 \begin{gathered} \Rightarrow y = 2x - 2 + 2{e^x} \\\ \Rightarrow 2x - y - 2 + 2{e^x} = 0 \\\ \end{gathered}
This is the required equation of the curve.
Additional information

  1. For the circle x2+y2=a2{x^2} + {y^2} = {a^2}, the equation of the tangent whose slope is ‘m’, is given by y=mx±a1+m2y = mx \pm a\sqrt {1 + {m^2}}
  2. This equation is referred to as the ‘slope form’ of the tangent. Given the slope, we can obtain the equation of the tangent
  3. The condition for a given line to touch a circle is: Distance of the line from the center of the circle, must be equal to its radius. We’ll refer to this as the ‘condition of tangency’.

Note: Many students tend to stop the sum at equation (4) but since we are given that it passes through a point we need to find c using it and substitute it in the equation (4) to find the curve.