# Show that the function y = f(x) is a solution of the given differential equation

• Feb 15th 2011, 06:26 AM
fastcarslaugh
Show that the function y = f(x) is a solution of the given differential equation
$y = \frac{1}{x} \int_1^x\frac {e^t}{t} dt$ , $x^2y' + xy = e^x$

I tried to take the derivative of y equation to get the right equation but I'm keep getting $(x^2)y' = \frac{-e^x}{x}$
Can someone explain this why I can't get to $(x^2)y' + xy = e^x$
• Feb 15th 2011, 07:25 AM
TheEmptySet
Quote:

Originally Posted by fastcarslaugh
$y = \frac{1}{x} \int_1^x\frac {e^t}{t} dt$ , $x^2y' + xy = e^x$

I tried to take the derivative of y equation to get the right equation but I'm keep getting $(x^2)y' = \frac{-e^x}{x}$
Can someone explain this why I can't get to $(x^2)y' + xy = e^x$

You need to use the product rule when you take the derivative of

$\displaystyle y = \underbrace{\frac{1}{x}}_{f(x)} \underbrace{\int_1^x\frac {e^t}{t} dt}_{g(x)}$

So $y'=f'(x)g(x)+f(x)g'(x)$

Now lets compute the parts

$\displaystyle f'(x)=-\frac{1}{x^2}$ and

$\displaystyle g'(x)=\frac{e^x}{x}$ This is from the Fundamental theorem of calculus.

Can you finish from here?
• Feb 15th 2011, 07:34 AM
fastcarslaugh
But how should I solve the $\int_1^x\frac{e^t}{t}dt$

I am stuck at $y' = \frac{-1}{x^2}\int_1^x\frac{e^t}{t}dt + \frac{e^x}{x^2}$
• Feb 15th 2011, 08:12 AM
DrSteve
You don't need to evaluate that integral. It will "cancel" when you substitute into the DE.
• Feb 15th 2011, 12:14 PM
fastcarslaugh
I tried this problem from another perspective.

$y = \frac{1}{x}\int_1^x\frac{e^t}{t}dt$

$xy = \int_1^x\frac{e^t}{t}dt$

$xy' + y = \frac{e^x}{x}$

$x^2y' + xy = e^x$

This method that I used is a lot easier.

Ps. should i make this solved?
Also regarding TheEmptySet post, after looking at it third time that I realized that it just cancels out. So thank you TheEmptySet for your help.
• Feb 15th 2011, 12:16 PM
Ackbeet
Quote:

Originally Posted by fastcarslaugh
I tried this problem from another perspective.

$y = \frac{1}{x}\int_1^x\frac{e^t}{t}dt$

$xy = \int_1^x\frac{e^t}{t}dt$

$xy' + y = \frac{e^x}{x}$

$x^2y' + xy = e^x$

This method that I used is a lot easier.

Ps. should i make this solved?
Also regarding TheEmptySet post, after looking at it third time that I realized that it just cancels out. So thank you TheEmptySet for your help.

Very elegant!