# Homework Help: Integral of y dx?

1. Dec 22, 2013

### imull

1. The problem statement, all variables and given/known data
Solve the differential equation: dy/dx = y+3

2. Relevant equations

3. The attempt at a solution
When I try to integrate with respect to x, I get âˆ«dy/dxdx - âˆ«ydx=âˆ«3dxâ†’y-âˆ«ydx=3x
So what does one do about the integral of y with respect to x? There is nothing in the text about this type of thing.

2. Dec 22, 2013

### SammyS

Staff Emeritus
Start with $\displaystyle \frac{dy}{dx}=y+3$ .

Multiply both sides by $\displaystyle \frac{1}{y+3}$ .

Then integrate (both sides) with respect to $x$ .

3. Dec 22, 2013

### D H

Staff Emeritus
What text? What class?

This is a simple problem that can easily be attacked by a number of approaches. Does your text talk about homogeneous and particular solutions? There is an easy-to-find particular solution of y'(x)=y+3. What is the form of the solutions to the homogeneous ODE y'(x)=y?

4. Dec 22, 2013

### imull

Ron Larson
Bruce Edwards
Calculus 10E

5. Dec 24, 2013

### Staff: Mentor

SammyS has mapped out a clear approach which you should closely follow.

Multiply both sides by ....
and tidy up by performing any 'cancels'

Multiply both sides by dx
and tidy up by performing any 'cancels' (maybe you didn't know you can cancel dx/dx )

Now, write an integral sign in front of the expressions on each side

Look closely at what you have on each side

Perform the easy integrations involved on each side

Good luck with your study! http://imageshack.us/scaled/landing/109/holly1756.gif [Broken]

Last edited by a moderator: May 6, 2017
6. Dec 24, 2013

### HallsofIvy

To answer your question: "So what does one do about the integral of y with respect to x? "
one does NOTHING. y is an unknown function of x so we can't integrate.

We can, as SammyS said, write it as $\frac{dy}{y+ 3}= dx$ and integrate.

7. Dec 24, 2013

### Antiderivative

I see you're talking about a well-known and widely-used single-variable calculus textbook here, OP. I presume it's for Calc II or a high school AP Calculus course?

In any case, perhaps your teacher/professor did not cover it yet, but the best way (and the easiest way) to solve such things is something known as the method of separation of variables (forgive me if you already know this and I sound idiotic right now).

Try to put all the same variables on one side:

$\frac{dy}{dx} = y + 3$

$\frac{dy}{y + 3} = dx$

Let $u = y + 3$. Then, $\frac{du}{dy} = 1$ and $du = dy$. Make these substitutions:

$\frac{du}{u} = dx$

Integrate: $\int \frac{du}{u} = \int dx$

$ln\left|u\right| = x + c$, where $c$ is a constant dependent on initial conditions. Now just plug back in to have an equation for $y$ in terms of $x$.

$ln\left|y + 3\right| = x + c$

$\left|y + 3\right| = e^{x + c} = e^{x}e^{c}$

Solving gives: $y + 3 = \pm e^{c}e^{x}$

Since $\pm e^{c}$ is just another constant (a constant raised to a constant's power), we'll rename it as "$k$". Then we can solve and arrive at our final answer:

$\boxed{y = -3 + ke^{x}}$, where $k$ is a constant dependent on initial conditions for $y$. Note: You do NOT lose out on solutions by ignoring the $\pm$. This is accounted for in the fact that $k$ can be negative or positive.

8. Dec 24, 2013

### Staff: Mentor

Antiderivative, why are you doing the student's homework? It is for him to work through, it's his homework. He asked how to proceed and has been given ample guidance. It is now up to him to apply that and to do the actual computations himself. That is the whole point of the homework forums.

Presenting the OP with a fully worked solution is verboten.

9. Dec 24, 2013

### imull

Thanks for the help guys. I didn't even think about doing what SammyS did, but I got it now and I've moved on. BTW, I'm self studying Calc 2.

10. Dec 24, 2013

### Antiderivative

My fault, I wasn't aware of that in the PF guidelines. I'll refrain from posting fully-worked-out solutions in the future. Sorry about that guys.