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
Solution
By using the given slope , we get a linear differential equation of the form dxdy+Py=Q
To solve such equations , first we need to find the integrating factor I.F=e∫Pdx and the general solution of the linear differential equation is given by ye∫Pdx=∫Qe∫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 dxdy.
So, now from the given condition, we have that
⇒dxdy=y+2x
Now let’s bring the y to the left-hand side
⇒dxdy−y=2x…………………(1)
Step 2:
We know that the general form of the linear differential equation is,
.dxdy+Py=Q.
Now equation (1) is of the form of the linear differential equation where P=−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=e∫Pdx
Here P=-1
⇒I.F=e∫−1dx ⇒I.F=e−∫dx
Now integrating dx in terms of x ,we get
I.F=e−x
Step 4:
The general solution is given by
ye∫Pdx=∫Qe∫Pdx+c
Here,we know that e∫Pdx=e−x and Q=2x
⇒ye−x=∫2x.e−xdx+c…………….(3)
Step 5:
Now we need to integrate 2∫xe−xdx
Since we have two different expressions x and e−x as the integrand .we can use integration by parts
⇒∫udv=uv−∫vdu
Here our u=x and dv =e−x
From this our du is obtained by differenting u
⇒du=dx
And v is obtained by integrating dv
⇒v=∫dv=∫e−xdx=−e−x+c
Now lets substitute the values
⇒∫xe−xdx=x∗−e−x−∫−e−xdx
Now lets integrate ∫e−xdx again
⇒∫e−xdx=−e−x+c
Therefore
⇒∫xe−xdx=xe−x+(−e−x)+c ⇒∫xe−xdx=xe−x−e−x+c
Step 6
Now lets substitute the above equation in equation (3)
⇒ye−x=2(xe−x−e−x)+c ⇒ye−x=e−x(2x−2)+c
Now lets multiply by e−x on both sides
⇒y=2x−2+cex………………(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=0−2+c ⇒c=2
Substituting the value of c in (4)
⇒y=2x−2+2ex ⇒2x−y−2+2ex=0
This is the required equation of the curve.
Additional information
- For the circle x2+y2=a2, the equation of the tangent whose slope is ‘m’, is given by y=mx±a1+m2
- This equation is referred to as the ‘slope form’ of the tangent. Given the slope, we can obtain the equation of the tangent
- 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.