Why Am I Getting a Complex Answer for the Current Through the Resistor?

In summary, a circuit differential equation is a mathematical equation that describes the behavior of an electrical circuit using derivatives and integrals. It takes into account the voltage, current, and resistance of the components in the circuit to determine its overall behavior. It differs from a regular differential equation in that it is specifically used to model electrical circuits and considers the specific properties of these circuits. The variables in a circuit differential equation typically include voltage, current, and resistance, and can also include other factors such as capacitance and inductance. These equations are used in practice to analyze and design electrical circuits, and have many real-life applications in fields such as electronics, power systems, and communication networks.
  • #1
dinospamoni
92
0

Homework Statement



The power supply in the circuit shown has V(t) = (120V)cos(ωt), where ω = 310 rad/s. Determine the current flowing through the resistor at time t = 9.7 s, given R = 600 Ω, C = 18 mF, and I(0) = 0 A. As a reminder, Kirkhoff’s voltage law for this circuit (Eq. 8-1.3 in the book) reduces to: dV/dt = R(dI/dt) + I/C.

Homework Equations

The Attempt at a Solution



I've tried this about ten times and can't seem to get the right answer:

I found dV/dt = -37200 Sin(wt) (i'll call it v' from now on)

Rearranging the equation to make it in standard form:

dI/dt + (1/RC)I = v'/R

P= 1/RC = .0926

Q=v'/R = -62 Sin(wt)

F = ∫p dt

So e^F = e^.0926 t
and e^-F = e^-.0926 t

This equation was given in class for solving this type of DE:

I = (e^-I)∫Q*e^F dt + c1*e^-F

When plug this into mathematica, it gives me an imaginary answer

Any ideas?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
So you have a linear, first-order, inhomogeneous differential equation for i(t):$$i^\prime + \frac{1}{RC}i = f(t)$$where f(t) is some function of time, in this case given by ##v^\prime(t)/R##

The typical way to solve this type of ODE is by the Method of Integrating Factors. This method works as follows. If you multiply both sides of the equation by exp( w(t) dt), where w(t) is the coefficient on the i(t) term, you can turn the left-hand side (LHS) of the equation into an exact differential, where an exact differential is just "something that is the derivative of something else." Once your LHS is just a derivative, you can solve the equation by direct integration w.r.t. time. In this case, w(t) = 1/RC, and so the factor by which you'd be multiplying things would just be exp(dt/RC) = exp(t/RC). That gives us this:$$i^\prime e^{t/RC} + i \frac{1}{RC}e^{t/RC} = e^{t/RC}f(t)$$If you look closely at the LHS, you can see that it looks like something that has already been differentiated using the chain rule.. So, you can "reverse" this differentiation to produce the following:$$\frac{d}{dt}\left[i(t)e^{t/RC}\right] = e^{t/RC}f(t)$$(You can easily verify that taking the derivative of the thing in square brackets will reproduce the LHS of the previous equation). So, now you can solve for i(t) by integrating both sides w.r.t. time (since f(t) is a known function). You'll also have to apply the initial conditions. Can you take it from here?
 
  • #3
That worked beautifully. This is how I was used to doing these, but I figured I'd try my professor's way. Not sure where it went wrong. But thanks!
 
  • #4
dinospamoni said:
This equation was given in class for solving this type of DE:

I = (e^-I)∫Q*e^F dt + c1*e^-F

When plug this into mathematica, it gives me an imaginary answer

Any ideas?
Your professor is using the method of integrating factors as well. You should be able to figure out that the first exponential should be ##e^{-F}##.

My guess is you entered something like Exp[-I] into Mathematica. In Mathematica, "I" stands for ##i##, which is why you're getting a complex answer.
 

FAQ: Why Am I Getting a Complex Answer for the Current Through the Resistor?

What is a circuit differential equation?

A circuit differential equation is an equation that describes the behavior of an electrical circuit using derivatives and integrals. It takes into account the voltage, current, and resistance of the components in the circuit to determine the overall behavior of the circuit.

How is a circuit differential equation different from a regular differential equation?

A circuit differential equation is specifically used to model and analyze electrical circuits, while a regular differential equation is a more general mathematical concept. A circuit differential equation takes into account the specific properties of electrical circuits, such as voltage, current, and resistance, while a regular differential equation can be used to model a wide range of phenomena.

What are the variables in a circuit differential equation?

The variables in a circuit differential equation typically include voltage, current, and resistance. These variables can be represented using symbols, such as V for voltage, I for current, and R for resistance. Other variables, such as capacitance and inductance, may also be included depending on the specific circuit being modeled.

How are circuit differential equations used in practice?

Circuit differential equations are used in practice to analyze and design electrical circuits. They can be used to determine the behavior of a circuit under different conditions, such as varying voltage or changing component values. Engineers and scientists use circuit differential equations to design and optimize circuits for specific applications, such as in electronic devices, power systems, and communication networks.

What are some real-life applications of circuit differential equations?

Circuit differential equations have many real-life applications, including in the design of electronic devices such as smartphones, computers, and medical equipment. They are also used in power systems to ensure the stable and efficient distribution of electricity. Additionally, circuit differential equations are used in communication networks to analyze and optimize data transmission. These equations are also important in fields such as robotics, control systems, and signal processing.

Similar threads

Replies
4
Views
2K
Replies
20
Views
4K
Replies
22
Views
969
Replies
16
Views
1K
Replies
2
Views
1K
Replies
2
Views
2K
Back
Top