Is it acceptable to ask an unknown professor outside my dept for help in a related field during his office hours?

In general, yes. Personally I've been pretty open to answering questions about my field of expertise from "random" students during my office hours. But:

  • Ask first: "I was working on X and am wondering about Y. Do you think you would have time to answer a few questions?" Be prepared to hear "No, I'm sorry, I don't."
  • Ask the right person. Don't assume that a CS professor who teaches machine learning will know anything about Apache logs.
  • Come prepared with a specific question - don't expect me to explain an entire topic to you from beginning to end, or spend an hour walking you through a tutorial on some programming concept you want to learn.
  • Don't abuse office hours as a substitute for doing basic research on your own (e.g. "I know I could easily find the answer to my question online, but it was quicker to come ask you during office hours.")
  • Professors may want to give "priority" to students who are actually enrolled in their classes. If the office hours are busy, try not to monopolize the professor's time - or come back at a less busy time, like the week after the midterm exam instead of the week before ;)

Although I certainly do aim to be civil to students who "drop in", and, yes, am able to gauge earnestness... : the point is that anything that comes up in undergrad engineering or undergrad math classes or first or second-year grad courses is (almost surely) standard. That is, many sources exist for it, on-line and off. That does not entail that an experienced expert can't add any insights to the standard sources, but it does mean that a student who hasn't looked at (or found...) the standard sources is asking (probably inadvertently) for tooooo much help. That is, very likely looking at any one of the standard sources would instantly resolve the question, and truly expert insights are irrelevant and unnecessary (and a waste of an expert's time).

One advantage of on-line sites like MathStackExchange is the asynchronousness: I only look at them when I'm in the mood, and no one is offended if I don't respond at all, and, indeed, I can give whatever response I want and then I'm done.

In that regard, I almost prefer drop-ins to appointments, since, in fact, appointments consume more mental resources than spur-of-the-moment things. Nevertheless, of course, all my time is planned out for nearly every day. Thus, "drop in" questions by email are preferable to in-person. But/and, yes, my email response may be that this is standard and one can easily look it up... e.g., in notes I've written that are on-line.

The worst-case scenario is non-math people (e.g., engineering students, sorry) vastly under-estimating the effort often required to really prove things, if that's what they believe that they want. It is a happy miracle that mathematics works so well, especially at "modest scales" in the physical world, and, mostly, it is easy to obtain physical corroboration for heuristic mathematics. That is, plausibility arguments are often straightforward, even if requiring some wishful thinking. Part of the "miracle" is that, historically, it has often proven difficult to distill a physical narrative into genuine mathematical terms that no longer depend on literal physical intuition for their sense or proof. (Sure, for physical scientists, there may indeed be no reason to even attempt to abstract mathematics from the physical.)


You can certainly ask a professor politely if he/she would be willing to talk to you about some research topic that might be of mutual interest to you. Don't be too surprised if the professor isn't interested in discussing it with you though- what's interesting to you might well not be interesting to that professor.

Furthermore, it is unreasonable to expect a professor to help you with a class that you are taking from some other professor or in a different academic department. You have an instructor for that other course, and you probably also have access to a tutoring center where you can get help from people whose job it is to provide tutoring.